# Fda Orange Book Query

> Fda Orange Book Query is an Agent Skill for research published in the BioTender-max/awesome-bio-agent-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Query or inspect the FDA Orange Book - FDA-Approved Drug Products Listing resource for drug-centric tasks with emphasis on drug knowledgebase Use whenever Codex needs the calling pattern, downloadable entrypoint, or example query flow from this skill example script.

- Skill name: `fda-orange-book-query`
- Category: [Research](https://www.openparable.com/skill/research/1)
- Source: https://github.com/BioTender-max/awesome-bio-agent-skills/blob/HEAD/skills/drugclaw/fda_orange_book/SKILL.md
- Repository: BioTender-max/awesome-bio-agent-skills (115 GitHub stars when collected)

## SKILL.md

# FDA Orange Book - FDA-Approved Drug Products Listing

Use this file as the compact operator guide for the paired `skillexamples` script.
Prefer reading the Python example itself for exact request parameters, field names,
and response handling.

## Paired Example

- Script: `65_FDA_Orange_Book.py`
- Category: `Drug-centric`
- Type: `DB`
- Subcategory: `Drug Knowledgebase`

## API Surface

| Function | Purpose |
|---|---|
| `download_orange_book()` | See `65_FDA_Orange_Book.py` for exact input/output behavior. |
| `search_approved_drugs()` | See `65_FDA_Orange_Book.py` for exact input/output behavior. |
| `get_drug_approval_info()` | See `65_FDA_Orange_Book.py` for exact input/output behavior. |
| `preview_products_file()` | See `65_FDA_Orange_Book.py` for exact input/output behavior. |

## Usage

Read `65_FDA_Orange_Book.py` and copy its call pattern when writing Code Agent query code.
Keep network timeouts short and preserve the script's native access method
(REST, direct download, local file scan, or HTML scraping).

## Validation

- Validation script: `maintainers/smoke/65_FDA_Orange_Book_smoke_test.py`
- Run: `python maintainers/smoke/65_FDA_Orange_Book_smoke_test.py`

## Notes

- Review `if __name__ == "__main__"` in `65_FDA_Orange_Book.py` first when generating runnable query code.
- Primary link from the example: <https://www.accessdata.fda.gov/scripts/cder/ob/>
- The repository does not keep monthly Orange Book snapshots under version control; on network failure the example writes a tiny built-in offline fixture for smoke testing.
- Inspect the validation script directly for its current assertions and sample entities.

## Data Source

- <https://www.accessdata.fda.gov/scripts/cder/ob/>
- <https://api.fda.gov/drug/ndc.json>

---

Source: https://www.openparable.com/skill/research/fda-orange-book-query (OpenParable). Cite the canonical URL above.
