{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA Drug Labeler Leads",
    "description": "Drug manufacturers, labelers and repackagers from the official openFDA NDC Directory. Search by labeler, drug name, marketing category, form, route or class. Firm-level, one row per labeler. $3/1,000. Not affiliated with FDA.",
    "version": "0.1",
    "x-build-id": "9yUkliOCanZczXhed"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/infocomp~fda-drug-labeler-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-infocomp-fda-drug-labeler-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/infocomp~fda-drug-labeler-leads/runs": {
      "post": {
        "operationId": "runs-sync-infocomp-fda-drug-labeler-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/infocomp~fda-drug-labeler-leads/run-sync": {
      "post": {
        "operationId": "run-sync-infocomp-fda-drug-labeler-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "labelerName": {
            "title": "Labeler / company name contains",
            "type": "string",
            "description": "Optional. Word or phrase matched against the labeler name as FDA lists it, e.g. pfizer or \"teva pharmaceuticals\". Case does not matter.",
            "default": ""
          },
          "productName": {
            "title": "Drug name (generic or brand) contains",
            "type": "string",
            "description": "Optional. Word or phrase matched against the generic name or the brand name of the labeler's products, e.g. ibuprofen or humira. Only matching products are counted in each firm's row.",
            "default": ""
          },
          "marketingCategories": {
            "title": "Marketing category",
            "type": "array",
            "description": "Optional. Keep only products with these FDA marketing categories. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "nda",
                "anda",
                "bla",
                "ndaAuthorizedGeneric",
                "otcMonograph",
                "unapproved",
                "other"
              ],
              "enumTitles": [
                "NDA (brand-name new drug application)",
                "ANDA (generic)",
                "BLA (biologic)",
                "NDA authorized generic",
                "OTC monograph (final, not final, drug)",
                "Unapproved (other, homeopathic, medical gas, shortage)",
                "Other (bulk ingredient, further processing, export only, EUA)"
              ]
            },
            "default": []
          },
          "productTypes": {
            "title": "Product type",
            "type": "array",
            "description": "Optional. Keep only these kinds of products. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "humanPrescription",
                "humanOtc",
                "vaccine",
                "biologic",
                "bulkIngredient",
                "furtherProcessing"
              ],
              "enumTitles": [
                "Human prescription drug",
                "Human OTC drug",
                "Vaccine",
                "Plasma, cellular therapy and allergenics",
                "Bulk ingredient",
                "Drug for further processing"
              ]
            },
            "default": []
          },
          "dosageForms": {
            "title": "Dosage form contains",
            "type": "array",
            "description": "Optional. Words matched against the dosage form, e.g. tablet (also matches film coated tablets), \"injection, solution\", patch. A product matching any entry is kept.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "routes": {
            "title": "Route of administration",
            "type": "array",
            "description": "Optional. FDA route terms, e.g. oral, topical, intravenous, ophthalmic, \"respiratory (inhalation)\". A product matching any entry is kept.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "pharmClasses": {
            "title": "Pharmacologic class contains",
            "type": "array",
            "description": "Optional. Words matched against FDA pharmacologic classes, e.g. opioid, \"nonsteroidal anti-inflammatory\", \"proton pump inhibitor\". Only products with a class in openFDA can match.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "deaSchedules": {
            "title": "DEA schedule",
            "type": "array",
            "description": "Optional. Keep only controlled substances in these DEA schedules.",
            "items": {
              "type": "string",
              "enum": [
                "CI",
                "CII",
                "CIII",
                "CIV",
                "CV"
              ],
              "enumTitles": [
                "Schedule I",
                "Schedule II",
                "Schedule III",
                "Schedule IV",
                "Schedule V"
              ]
            },
            "default": []
          },
          "controlledSubstancesOnly": {
            "title": "Only controlled substances (any DEA schedule)",
            "type": "boolean",
            "description": "Optional. Keep only products that FDA lists with a DEA schedule.",
            "default": false
          },
          "marketedOnly": {
            "title": "Only products currently marketed",
            "type": "boolean",
            "description": "Optional. Skip products whose marketing end date has passed (products with no end date count as marketed).",
            "default": false
          },
          "maxResults": {
            "title": "Max results (firms)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many labeler rows. Each saved row is one $0.003 firm event. Firms come in A-Z order of labeler name.",
            "default": 100
          },
          "maxApiCalls": {
            "title": "Max openFDA API calls per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Safety cap. Each call reads up to 1,000 product records; the whole directory (about 138,000 records) takes about 140 calls. openFDA allows 1,000 calls a day per IP without a key.",
            "default": 200
          },
          "openFdaApiKey": {
            "title": "openFDA API key (optional)",
            "type": "string",
            "description": "Optional. Not needed. If you already have your own free openFDA key you can add it for openFDA's higher daily limit."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}