Auto-Complete Search Service

The PubChem REST auto-complete API service supports fuzzy matching of input strings against a number of query dictionaries.

 

Query URL Format

https://pubchem.ncbi.nlm.nih.gov/rest/autocomplete/<dictionary>/<search_term>/<output_format>?<options>

 

Available Dictionaries

  • Compound
  • Assay
  • Gene
  • Taxonomy

 

Example Queries

https://pubchem.ncbi.nlm.nih.gov/rest/autocomplete/compound/aspirin/jsonp?limit=6

callback({
    "status": {
        "code": 0
    },
    "total": 6,
    "dictionary_terms": {
        "compound": [
            "aspirin",
            "Aspirine",
            "Aspirin sodium",
            "Aspirin anhydride",
            "Aspirin methyl ester",
            "Aspirin calcium"
        ]
    }
})

 

https://pubchem.ncbi.nlm.nih.gov/rest/autocomplete/assay/p68/json?limit=8

{
    "status": {
        "code": 0
    },
    "total": 8,
    "dictionary_terms": {
        "assay": [
            "p68 - Protein Target",
            "p68-PAK - Protein Target",
            "p68 kinase - Protein Target",
            "Inhibition of HIV2 reverse transcriptase p68/p54 expressed in Escherichia coli - Assay Name",
            "Inhibition of HIV2 reverse transcriptase p68/p54 expressed in Escherichia coli at 495 uM - Assay Name",
            "RPL21P68 - Gene Target",
            "gp68 - Protein Target",
            "CEP68 - Gene Target"
        ]
    }
}

 

https://pubchem.ncbi.nlm.nih.gov/rest/autocomplete/gene/egfr/jsonp?limit=5

callback({
    "status": {
        "code": 0
    },
    "total": 5,
    "dictionary_terms": {
        "gene": [
            "EGFR",
            "NGFR",
            "OGFR",
            "DHFR",
            "EGR1"
        ]
    }
})

 

https://pubchem.ncbi.nlm.nih.gov/rest/autocomplete/taxonomy/mouse/json?limit=5

{
    "status": {
        "code": 0
    },
    "total": 5,
    "dictionary_terms": {
        "taxonomy": [
            "mouse",
            "mousepox",
            "mousepox virus",
            "mouse-ear cress",
            "Mouse adenovirus"
        ]
    }
}

 

Output Format

  • jsonp
  • json

 

Options

  • limit (default: 10)
    • Maximum number of returned results

 

Was this information helpful?

 

National Library of Medicine
8600 Rockville Pike
Bethesda, MD 20894

Copyright
FOIA
Privacy

PubChem Help
Accessibility
HHS Vulnerability Disclosure

 

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please make sure you spelled the page name correctly or use the search box.