Drugs.com API
Live read-only access to Drugs.com public drug information: FDA approvals, keyword search, drug detail pages, interaction checks, and pill identifier results.
Endpoint health
Loading verification…
Connect your agent
Connect through MCP so your agent can find this API, read its docs, and call its endpoints.
Add the server from your terminal.
claude mcp add --transport http agent-data https://agent-data.motie.dev/mcpIn Claude Code, run /mcp, select agent-data, then Authenticate. Sign in to your agent-data account in the browser.
Then ask your agent to use the Drugs.com API for your task.
Call it over HTTP
Get an API keySign up free, generate an API key, and set it as AGENT_DATA_API_KEY in your environment. Your first 100 calls each month are free.
curl --request GET --get 'https://api.agent-data.dev/drugs-com/v1/approvals' \
--header "Authorization: Bearer $AGENT_DATA_API_KEY"Endpoints
Inputs and response fields for every endpoint in this API.
GETApprovals/v1/approvals
Get New Drug Approvals
Input
No input parameters.
Response
sourcestringapprovalsobject[]approvals[].urlstringapprovals[].titlestringGETDrugs search/v1/drugs/search
Search Drugs
Input
queryRequiredQuery · stringSearch keyword across the Drugs.com index.
Example: aspirin
Response
querystringtotalintegersourcestringresultsobject[]results[].urlstringresults[].namestringresults[].category?string, default: results[].description?string, default: next_url?string | nullFields marked ? are optional.
GETDrug details/v1/drug-details
Get Drug Details
Input
urlRequiredQuery · stringDrug page path starting with '/'. Use a path returned by search_drugs.
Example: /pro/aspirin.html
Response
urlstringnamestringsourcestringsectionsstring[]drug_classstring[]generic_namestringinteraction_idstringGETDrug interactions/v1/drug-interactions
Get Drug Interactions
Input
drug_idsRequiredQuery · stringComma-separated interaction tokens obtained from get_drug_details (ddc_id-brand_name_id).
Example: 11-2953,1690-1050,1690-1051
Response
titlestringsourcestringdrug_idsstringinteractionsobject[]interactions[].textstringinteractions[].severity?string, default: Fields marked ? are optional.
GETPills search/v1/pills/search
Search Pills
Input
imprintRequiredQuery · stringPill imprint code to search.
Example: 325
colorOptionalQuery · string | nullOptional pill color filter.
Example: white
shapeOptionalQuery · string | nullOptional pill shape filter.
Example: round
Response
color?string | nullpillsobject[]pills[].urlstringpills[].namestringpills[].colorstringpills[].shapestringpills[].imprintstringshape?string | nulltotal?integer | nullsourcestringimprintstringnext_url?string | nullFields marked ? are optional.
Don’t see the endpoint you need?
Ask agent-data to add an endpoint or return more fields. Extensions are free and keep existing endpoints working.
An account is required to submit an extension. Prepare your request, then sign in to build.