Skip to main content
POST
/
api
/
openfda
/
drug
/
events
/
search
/openfda/drug/events/search
curl --request POST \
  --url https://api.anysite.io/api/openfda/drug/events/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "keyword": "nausea",
  "medicinal_product": "BONIVA",
  "generic_name": "ibandronate",
  "brand_name": "Boniva",
  "reaction": "Headache",
  "serious": true,
  "seriousness_death": true,
  "country": "US",
  "received_from": "<string>",
  "received_to": "<string>"
}
'
[
  {
    "safetyreportid": "<string>",
    "@type": "OpenfdaDrugEvent",
    "safetyreportversion": "<string>",
    "serious": false,
    "seriousness": [],
    "received_at": 123,
    "receipt_at": 123,
    "transmission_at": 123,
    "report_type": "<string>",
    "fulfill_expedite_criteria": "<string>",
    "company_number": "<string>",
    "occur_country": "<string>",
    "primary_source_country": "<string>",
    "reporter_country": "<string>",
    "reporter_qualification": "<string>",
    "sender_organization": "<string>",
    "patient": {
      "@type": "OpenfdaEventPatient",
      "onset_age": "<string>",
      "onset_age_unit": "<string>",
      "sex": "<string>",
      "weight": "<string>",
      "reactions": [],
      "drugs": []
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Number of adverse-event reports to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
keyword
string | null

Free-text query across all report fields

Example:

"nausea"

medicinal_product
string | null

Reported medicinal product name

Example:

"BONIVA"

generic_name
string | null

Suspect drug generic name

Example:

"ibandronate"

brand_name
string | null

Suspect drug brand name

Example:

"Boniva"

reaction
string | null

Reported reaction (MedDRA preferred term)

Example:

"Headache"

serious
boolean | null

Only serious (or non-serious) reports

seriousness_death
boolean | null

Only reports where the outcome was death

sex
enum<string> | null

Patient sex

Available options:
Male,
Female
country
string | null

Country where the event occurred

Example:

"US"

received_from
string | null

Report received date from (YYYY-MM-DD); requires received_to

received_to
string | null

Report received date to (YYYY-MM-DD); requires received_from

Response

Successful Response

safetyreportid
string
required
@type
string
default:OpenfdaDrugEvent
safetyreportversion
string | null
serious
boolean
default:false
seriousness
string[]
received_at
integer | null
receipt_at
integer | null
transmission_at
integer | null
report_type
string | null
fulfill_expedite_criteria
string | null
company_number
string | null
occur_country
string | null
primary_source_country
string | null
reporter_country
string | null
reporter_qualification
string | null
sender_organization
string | null
patient
object | null