# searchPurpleBook

**Identifier:** `openfda_searchPurpleBook`

**Provider:** [OpenFDA](https://kirha.com/providers/openfda.md)

Search the FDA Purple Book of licensed biological products (BLAs): reference products, biosimilars and interchangeables, with licensure and interchangeability dates, reference product, and reference-product, first-interchangeable and orphan exclusivity expiries. Use referenceProduct to list every biosimilar of a biologic (e.g. adalimumab, Stelara). One row per BLA; applicationNumber (BLA761378) joins openfda-mcp searchDrugApprovals. Small-molecule drugs are in searchOrangeBook.

## Run it with the CLI

```bash
kirha tools run openfda_searchPurpleBook \
  --input '{}'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "openfda_searchPurpleBook",
  "input": {}
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "approvedAfter": {
      "description": "YYYY-MM-DD",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "type": "string"
    },
    "limit": {
      "default": 10,
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    },
    "newThisMonth": {
      "default": false,
      "description": "Only BLAs newly approved in the latest monthly release",
      "type": "boolean"
    },
    "pathway": {
      "enum": [
        "reference_product",
        "biosimilar",
        "interchangeable"
      ],
      "type": "string"
    },
    "query": {
      "default": "",
      "description": "Proprietary name, proper name, applicant or BLA number, e.g. Humira, ustekinumab, Samsung Bioepis",
      "type": "string"
    },
    "referenceProduct": {
      "description": "Reference product proper or proprietary name; returns its biosimilars/interchangeables, e.g. adalimumab, Stelara",
      "type": "string"
    },
    "sortBy": {
      "default": "relevance",
      "enum": [
        "relevance",
        "approval_date_desc",
        "approval_date_asc",
        "interchangeable_approval_desc"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "applicationNumbers": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "dataRelease": {
      "description": "Purple Book monthly release used, YYYY-MM",
      "type": "string"
    },
    "products": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "applicant": {
            "type": "string"
          },
          "applicationNumber": {
            "type": "string"
          },
          "approvalDate": {
            "type": "string"
          },
          "center": {
            "type": "string"
          },
          "dosageForms": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "firstInterchangeableExclusivityExpiry": {
            "type": "string"
          },
          "firstLicensureDate": {
            "type": "string"
          },
          "interchangeableApprovalDate": {
            "type": "string"
          },
          "licensure": {
            "type": "string"
          },
          "marketingStatuses": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "monthlyChange": {
            "description": "Change flag in the latest monthly release",
            "type": "string"
          },
          "orphanExclusivityExpiry": {
            "type": "string"
          },
          "patentListProvided": {
            "type": "boolean"
          },
          "pathway": {
            "type": "string"
          },
          "properName": {
            "type": "string"
          },
          "proprietaryName": {
            "type": "string"
          },
          "referenceProduct": {
            "description": "Proper name (proprietary name) of the reference product",
            "type": "string"
          },
          "referenceProductExclusivityExpiry": {
            "type": "string"
          },
          "routes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "strengths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "applicationNumber",
          "properName",
          "applicant",
          "pathway",
          "licensure",
          "marketingStatuses",
          "center",
          "patentListProvided",
          "strengths",
          "dosageForms",
          "routes"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "products",
    "applicationNumbers"
  ],
  "type": "object"
}
```

## Related tools

Other OpenFDA tools that this tool refers to, or that refer to it.

- [`searchDrugApprovals`](https://kirha.com/providers/openfda/searchDrugApprovals.md)
- [`searchOrangeBook`](https://kirha.com/providers/openfda/searchOrangeBook.md)

-----

[All OpenFDA tools](https://kirha.com/providers/openfda.md) · [< Back to tools list](https://kirha.com/tools.md)