# Drugs.com API: Identify pill by imprint

> Finds possible pill matches on the Drugs.com pill identifier by imprint, optionally narrowed by color and shape, with each pill's labeler.

Unofficial. Not affiliated with or endorsed by Drugs.com.

- Page: https://fous.com/methods/drugs.com/identify-pill
- Method: `drugs.com/identify_pill`, version 1
- Website: drugs.com
- Returns: medicine name, strength, imprint, color, shape, manufacturer (labeler), pill image link, pill page link
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `color` | string | no |  | Pill color, for example white. Default "". |
| `shape` | string | no | `"round"` | Pill shape, for example capsule, oval, or round. Default "". |
| `imprint` | string | yes | `"M"` | Letters or numbers printed on the pill, for example L484. |

## Output

From a run on Oct 31, 2026, shortened. Its input:

```json
{
  "shape": "round",
  "imprint": "M"
}
```

Its output:

```json
{
  "matches": [
    {
      "color": "White",
      "shape": "Round",
      "imprint": "M",
      "strength": "2 mg",
      "manufacturer": "SpecGx LLC",
      "medicine_name": "Levorphanol Tartrate",
      "pill_page_link": "https://www.drugs.com/imprints/m-29950.html",
      "pill_image_link": "https://www.drugs.com/images/pills/custom/pill29950-2/levorphanol-tartrate-2-mg-m-124556.png"
    },
    {
      "color": "White",
      "shape": "Round",
      "imprint": "M",
      "strength": "0.025 mg / 2.5 mg",
      "manufacturer": "Aphena Pharma Solutions - Tennessee, LLC",
      "medicine_name": "Atropine Sulfate and Diphenoxylate Hydrochloride",
      "pill_page_link": "https://www.drugs.com/imprints/m-31501.html",
      "pill_image_link": "https://www.drugs.com/images/pills/custom/pill31501-1/atropine-sulfate-and-diphenoxylate-hydrochloride-0-025-mg-2-5-mg-m-117623.png"
    },
    {
      "color": "White",
      "shape": "Round",
      "imprint": "M",
      "strength": "70 mg",
      "manufacturer": "Radius Health, Inc.",
      "medicine_name": "Binosto",
      "pill_page_link": "https://www.drugs.com/imprints/m-19894.html",
      "pill_image_link": "https://www.drugs.com/images/pills/fio/MIS01010/binosto-70-mg-m-94635.JPG"
    }
  ]
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"drugs.com/identify_pill","input":{"shape":"round","imprint":"M"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- Found a white oval pill with M367 stamped on it in my kid's backpack. What is it?
- On drugs.com, look up a pill with imprint IP 109 and tell me the drug name, strength, and who makes it
- Yellow round tablet marked 'G 3722' — can you figure out what medication this is and link me to a picture?
- Identify a blue capsule-shaped pill with the imprint 'TEVA 3109' and list possible matches with their manufacturers
- Use the Drugs.com pill identifier to find what a pink round pill imprinted '54 733' is

## Input schema

```json
{
  "type": "object",
  "required": [
    "imprint"
  ],
  "properties": {
    "color": {
      "type": "string",
      "default": "",
      "description": "Pill color, for example white."
    },
    "shape": {
      "type": "string",
      "default": "",
      "description": "Pill shape, for example capsule, oval, or round."
    },
    "imprint": {
      "type": "string",
      "minLength": 1,
      "description": "Letters or numbers printed on the pill, for example L484."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "matches"
  ],
  "properties": {
    "matches": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "medicine_name",
          "strength",
          "imprint",
          "color",
          "shape",
          "manufacturer",
          "pill_image_link",
          "pill_page_link"
        ],
        "properties": {
          "color": {
            "type": [
              "string",
              "null"
            ],
            "description": "Color listed for this pill."
          },
          "shape": {
            "type": [
              "string",
              "null"
            ],
            "description": "Shape listed for this pill."
          },
          "imprint": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pill imprint shown for this match."
          },
          "strength": {
            "type": [
              "string",
              "null"
            ],
            "description": "Strength printed in the pill listing, when known."
          },
          "manufacturer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company listed as labeler on the pill page, when available; it may not be the physical manufacturer."
          },
          "medicine_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the identified medicine."
          },
          "pill_page_link": {
            "type": [
              "string",
              "null"
            ],
            "description": "Link to this pill's details."
          },
          "pill_image_link": {
            "type": [
              "string",
              "null"
            ],
            "description": "Link to a photo of the pill, when available."
          }
        }
      },
      "description": "Possible pills that match the description, at most 20."
    }
  }
}
```

## See more

- [Drugs.com API: Get drug overview](https://fous.com/methods/drugs.com/get-drug.md): Looks up a medicine by brand or generic name on Drugs.com and returns a plain-language overview: class, uses, availability, schedule, dosage forms, side effects, and pregnancy and breastfeeding notes.
- [Drugs.com API: Get drug prices](https://fous.com/methods/drugs.com/get-drug-prices.md): Gets the US cash prices Drugs.com lists for a brand or generic medicine by strength, dosage form and quantity, optionally filtered. Where a range is listed the lower price is returned.
- [Drugs.com API: Check drug interactions](https://fous.com/methods/drugs.com/check-drug-interactions.md): Checks 2 to 10 medicine names together on the Drugs.com interaction checker and returns drug-to-drug interactions and food or lifestyle warnings, most severe first, plus the names it could not recognise.
- [FDA API: Get drug label](https://fous.com/methods/open.fda.gov/get-drug-label.md): Finds the latest FDA drug label for a brand or generic medicine and returns its uses, directions, warnings, ingredients and a DailyMed link.
- [FDA API: Search drug recalls](https://fous.com/methods/open.fda.gov/search-drug-recalls.md): Finds FDA drug enforcement recalls by medicine or company name, newest first, with status, class, reason and quantity. Recent recalls may not yet appear.
- [Cost Plus Drugs API: Get drug price](https://fous.com/methods/costplusdrugs.com/get-drug-price.md): Looks up a medicine at Cost Plus Drugs by generic or brand name and returns the listed price and its breakdown for a strength, form and quantity, with the strengths and forms on offer. The drug price excludes shipping and taxes; standard shipping is shown separately.
- [NIH API: Get chemical facts by name or CAS number](https://fous.com/methods/pubchem.ncbi.nlm.nih.gov/get-chemical.md): Looks up a chemical on PubChem by common name or CAS number and returns its formula, molecular weight, names, description, SMILES, InChIKey and 2D structure image link.
- [NHS API: Get medicine guidance](https://fous.com/methods/nhs.uk/get-medicine.md): Looks up a medicine in the NHS medicines A to Z and returns its guidance: uses, key facts, who can take it, how to take it, side effects, pregnancy and interactions. Sections absent from NHS guidance are null; a plain name with separate adult and child pages selects the adult page.
- [All Drugs.com methods](https://fous.com/methods/drugs.com.md)
