Example Drug Shortages queries

To help get you started, we have provided some query examples below. Use the Run query button to call the API and get back results. You can experiment by editing the example queries in the black text box.

Example query

One record

This query searches for all records, and asks for a single one.

  1. Search for all records.

  2. Limit to 1 record.

Example query

One capsule product

This query searches all capsule products, and returns a single record.

Double quotation marks " " surround phrases that must match exactly.

  1. Search for all products which have dosage_form equal to 'Capsule'.

  2. Limit to 1 record.

Example query

Count of update types

This query searches the endpoint for all records, and tells the API to count how many included each update_type.

  1. Count the field update_type.