Skip to main content
POST
/
api
/
goodrx
/
drugs
/goodrx/drugs
curl --request POST \
  --url https://api.anysite.io/api/goodrx/drugs \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "drug": "<string>",
  "timeout": 300
}
'
[
  {
    "@type": "@goodrx_drug",
    "id": "<string>",
    "slug": "<string>",
    "name": "<string>",
    "description": "<string>",
    "generic_name": "<string>",
    "is_generic": false,
    "drug_class": "<string>",
    "drug_class_slug": "<string>",
    "image": "<string>",
    "prescription_status": "<string>",
    "legal_status": "<string>",
    "administration_route": "<string>",
    "form": "<string>",
    "dosage": "<string>",
    "config": "<string>"
  }
]

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
id
string | null
slug
string | null
name
string | null
description
string | null
generic_name
string | null
is_generic
boolean
default:false
drug_class
string | null
drug_class_slug
string | null
image
string | null
prescription_status
string | null
administration_route
string | null
form
string | null
dosage
string | null
config
string | null