Two of the sample queries on the open.fda.gov "API Basics" webpage return what appears to be inconsistent results:
https://api.fda.gov/drug/event.json?search=patient.drug.openfda.pharm_class_epc:"nonsteroidal+anti-inflammatory+drug"
This returns just one patient record with 5 reactions ("ASTHENIA", "DISEASE RECURRENCE", "DIZZINESS", "TRANSIENT ISCHAEMIC ATTACK", "VERTIGO") and one drug ("AGGRENOX").
https://api.fda.gov/drug/event.json?search=patient.drug.openfda.pharm_class_epc:"nonsteroidal+anti-inflammatory+drug"&count=patient.reaction.reactionmeddrapt.exact
This returns counts for 100 reactions (e.g., "ABDOMINAL DISCOMFORT", "ABDOMINAL PAIN UPPER", ... , "WEIGHT DECREASED", "WEIGHT INCREASED").
The results from the second query are to be expected since NonSteroidal Anti Inflammatory Drugs (NSAIDs) are commonly used. My guess is that the 100 record limit is the default.
My question is: why does the first query return only one (random) patient record? The documentation implies that, by default, the API will return up to the first 1000 records.