Try using myvariant.info. You might want to use the Bioconductor package called myvariant.
https://myvariant.info/v1/query?q=rs16532&fields=dbsnp
{
"hits": [
{
"_id": "chr17:g.37349710C>T",
"_score": 16.939035,
"dbsnp": {
"allele_origin": "unspecified",
"alleles": [
{
"allele": "C",
"freq": 0.3898
},
{
"allele": "G",
"freq": 0.6102
},
{
"allele": "T"
}
],
"alt": "T",
"chrom": "17",
"class": "SNV",
"dbsnp_build": 54,
"flags": [
"ASP",
"G5",
"GNO",
"INT",
"KGPhase1",
"KGPhase3",
"SLO"
],
"gmaf": 0.6102,
"hg19": {
"end": 37349711,
"start": 37349710
},
"ref": "C",
"rsid": "rs16532",
"validated": true,
"var_subtype": "unknown",
"vartype": "snp"
}
},
{
"_id": "chr17:g.37349710C>G",
"_score": 16.938734,
"dbsnp": {
"allele_origin": "unspecified",
"alleles": [
{
"allele": "C",
"freq": 0.3898
},
{
"allele": "G",
"freq": 0.6102
},
{
"allele": "T"
}
],
"alt": "G",
"chrom": "17",
"class": "SNV",
"dbsnp_build": 54,
"flags": [
"ASP",
"G5",
"GNO",
"INT",
"KGPhase1",
"KGPhase3",
"SLO"
],
"gmaf": 0.6102,
"hg19": {
"end": 37349711,
"start": 37349710
},
"ref": "C",
"rsid": "rs16532",
"validated": true,
"var_subtype": "unknown",
"vartype": "snp"
}
}
],
"max_score": 16.939035,
"took": 5,
"total": 2
}
The output would look like: