Prerequisites
- A Pav API key in
PAV_API_KEY. See Quickstart. - Python 3.9+ and
pip install requests.
Approach
- Find the owner of the drug from its programs.
- Search families by every name of the drug. Patent
qmatches title, owner name or patent number as a substring, with no synonyms, so search the generic name and code names separately. - Open each live family for its term, members and owners.
- Search by compound class within the owner’s portfolio. Compound patents are often titled by chemical class rather than drug name.
Script
loe_check.py
Example output (September 2026)
q
searches every owner, not just the drug’s sponsor.
Find compound patents by class
The families above are named after the drug. Earlier compound families use the chemical class in their titles. Search the owner’s portfolio for the class, oldest priority last:compound_class.py
Example output (September 2026)
cpc (for example C07K for peptides), granted=true, or
priority_to for the earliest filings.
Add Orange Book patents and exclusivities
The Orange Book lists the patents a sponsor has submitted for an approved drug, with their expiry dates, and the regulatory exclusivities FDA has granted. Pull both from FDA records by the drug’s application numbers. Application numbers are stable across FDA editions;record_key values are not.
orange_book.py
Example output (September 2026)
details.pediatric_extension marks an expiry that includes pediatric
exclusivity. Exclusivity codes are FDA’s, such as NCE (new chemical entity)
and NPP (new patient population).
What to check in each family
members[]: each application’srole(continuation, divisional, …),patent_number,grant_date,status_descriptionandis_dead.ownership[]: recorded assignments, to confirm the current owner.events[]andevents_total: prosecution and maintenance history.has_live_member:falsemeans every member is abandoned or expired.