Skip to main content
POST
/
api
/
goodrx
/
drugs
/
info
/goodrx/drugs/info
curl --request POST \
  --url https://api.anysite.io/api/goodrx/drugs/info \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "drug": "<string>",
  "timeout": 300
}
'
[
  {
    "@type": "@goodrx_drug_info",
    "slug": "<string>",
    "name": "<string>",
    "description": "<string>",
    "generic_name": "<string>",
    "drug_class": "<string>",
    "image": "<string>",
    "prescription_status": "<string>",
    "legal_status": "<string>",
    "administration_route": "<string>",
    "label_url": "<string>",
    "warning": "<string>",
    "used_for": [],
    "faqs": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
drug
string
required

Drug slug or a GoodRx drug URL

Minimum string length: 1
Examples:

"atorvastatin"

"https://www.goodrx.com/lipitor"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

@type
string
default:@goodrx_drug_info
slug
string | null
name
string | null
description
string | null
generic_name
string | null
drug_class
string | null
image
string | null
prescription_status
string | null
administration_route
string | null
label_url
string | null
warning
string | null
used_for
string[]
faqs
GoodrxDrugFaq · object[]