Skip to main content
POST
/
api
/
goodrx
/
drugs
/
search
/goodrx/drugs/search
curl --request POST \
  --url https://api.anysite.io/api/goodrx/drugs/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "keyword": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "@type": "@goodrx_search_result",
    "id": "<string>",
    "slug": "<string>",
    "name": "<string>",
    "result_type": "<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
keyword
string
required

Drug or condition search keyword

Minimum string length: 1
Examples:

"lipitor"

"atorva"

count
integer
required

Max number of results to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

@type
string
default:@goodrx_search_result
id
string | null
slug
string | null
name
string | null
result_type
string | null
form
string | null
dosage
string | null
config
string | null