Query any openFDA endpoint (generic)
openfda_queryGeneric escape hatch to query ANY supported openFDA endpoint with the full parameter set — covers the less-common datasets (device/pma, device/registrationlisting, device/udi, device/covid19serology, drug/orangebook, other/nsde, other/substance, tobacco/problem, etc.). Use the named search tools for the common datasets; use this for everything else or for advanced queries. openFDA REST API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Number of records to skip, for pagination (0–25000; skip+limit reaches up to ~26000 records). | |
| sort | No | Sort order, as `field:asc` or `field:desc`, e.g. 'receivedate:desc'. | |
| count | No | Optional field to aggregate on (returns `results: [{term, count}]`); add '.exact' for whole phrases. | |
| limit | No | Max number of records to return (1–1000). Omit for the API default of 1. | |
| search | No | Lucene-style query over this dataset's fields: 'field:term', AND with '+AND+', OR with a space, exact phrase via a '.exact' field suffix with quotes, ranges as '[low+TO+high]' (dates like '[20040101+TO+20081231]'). Example: e.g. brand_name:"x" (fields vary by endpoint) | |
| endpoint | Yes | The openFDA endpoint to query, e.g. 'drug/event', 'device/510k', 'food/enforcement'. |