# searchDrugLabels

**Identifier:** `openfda_searchDrugLabels`

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

Search U.S. FDA drug labeling (SPL) including prescribing information, warnings, indications, and dosage. Returns structured product labels for prescription and OTC drugs.

## Run it with the CLI

```bash
kirha tools run openfda_searchDrugLabels \
  --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_searchDrugLabels",
  "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": {
    "drugName": {
      "description": "Brand or generic name",
      "type": "string"
    },
    "indication": {
      "description": "Search in indications/usage section",
      "type": "string"
    },
    "limit": {
      "default": 5,
      "maximum": 8,
      "minimum": 1,
      "type": "integer"
    },
    "manufacturer": {
      "type": "string"
    },
    "offset": {
      "default": 0,
      "description": "Labels to skip, for paging with nextOffset",
      "maximum": 25000,
      "minimum": 0,
      "type": "integer"
    },
    "warning": {
      "description": "Keyword matched in the warnings and boxed warning text, e.g. pancreatitis. Not a section selector: every label already returns its warnings and boxed warning",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "labels": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "boxedWarning": {
            "type": "string"
          },
          "brandName": {
            "type": "string"
          },
          "dosageAndAdministration": {
            "type": "string"
          },
          "genericName": {
            "type": "string"
          },
          "indicationsAndUsage": {
            "type": "string"
          },
          "manufacturer": {
            "type": "string"
          },
          "ndc": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "productType": {
            "type": "string"
          },
          "route": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rxcui": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "setId": {
            "type": "string"
          },
          "warnings": {
            "type": "string"
          }
        },
        "required": [
          "setId"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "nextOffset": {
      "description": "offset for the next page; labels are returned whole, so a page can hold fewer than limit",
      "type": "number"
    },
    "rxcuis": {
      "description": "Join key to rxnorm-mcp",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "setIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "total": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "total",
    "labels",
    "setIds",
    "rxcuis"
  ],
  "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)

-----

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