{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA NDC Verifier: Check a Whole List of NDC Codes",
    "description": "Check a whole list of NDC codes against the FDA NDC Directory for $0.65 per 1,000 checked rows on Apify's free plan, and codes with no listing are free. One verdict per code, with the labeler (who sells it), brand, ingredients and billing code.",
    "version": "0.1",
    "x-build-id": "pc61UL2h6hRcKRT9X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pradio~fda-ndc/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pradio-fda-ndc",
        "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/pradio~fda-ndc/runs": {
      "post": {
        "operationId": "runs-sync-pradio-fda-ndc",
        "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/pradio~fda-ndc/run-sync": {
      "post": {
        "operationId": "run-sync-pradio-fda-ndc",
        "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": {
          "ndcs": {
            "title": "NDCs",
            "type": "array",
            "description": "Paste the codes to judge, one per line or several a line split by commas or semicolons; a leading NDC or NDC: label is read. The last part of a code names the package: 67414-449 is the drug, 67414-449-10 one package of it. Each comes back as a row with a verdict and its reason: listed, expired, not listed with your package, or absent from the Directory (the FDA's drug-listing list). The seven codes filled in are a sample, about a third of a cent at the free plan's rate; replace them with yours.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brandNames": {
            "title": "Brand names",
            "type": "array",
            "description": "Optional: brand names to search the FDA's NDC Directory for (the FDA's public list of drug listings), one per line, such as Lipitor. Each returns one row per product code it finds; one that finds nothing comes back as a free row saying so.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "genericNames": {
            "title": "Generic names",
            "type": "array",
            "description": "Optional: generic (non-brand) drug names to search for, one per line, as a prescription names them, such as atorvastatin calcium. Each returns one row per product code it finds; one that finds nothing comes back as a free row saying so.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "labelers": {
            "title": "Labelers",
            "type": "array",
            "description": "Optional: labeler names (the company that markets the drug) to search for, one per line. A word of the name finds every labeler carrying it (Pfizer), and the whole name narrows it (Viatris Specialty LLC). Each returns one row per product code it finds; one that finds nothing comes back as a free row saying so.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "activeIngredients": {
            "title": "Active ingredients",
            "type": "array",
            "description": "Optional: active ingredient names to search for, one per line, as the label's ingredient list writes them, salt or hydrate included, such as ATORVASTATIN CALCIUM TRIHYDRATE. Use this when the exact ingredient matters; use Generic names for the drug as prescribed. Each entry returns one row per product code it finds.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "applicationNumbers": {
            "title": "Application numbers",
            "type": "array",
            "description": "Optional: an FDA application number, or an OTC monograph number (filed under a monograph, not an approval), one per line: NDA (a New Drug Application), ANDA (an Abbreviated New Drug Application, the generic route) or BLA (a Biologics License Application, for a biologic), then the number, as in NDA 020702, ANDA 218386 or BLA 125057. Spaces and lower case are fine. Each returns one row per product code marketed under it; one that finds nothing is a free row that says so.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Advanced: openFDA query lines",
            "type": "array",
            "description": "Optional, and only if you already write openFDA queries; most buyers leave it empty and use the name searches above. Each line is one search, phrased as openFDA's own search takes it: name a field and the value you want, as in brand_name:\"Tylenol\", and it returns one row per listing it finds. Add finished:true to a line to keep only finished dosage forms, and a line openFDA cannot read comes back as a free row that says so. Field names: https://open.fda.gov/apis/drug/ndc/searchable-fields/",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "URLs",
            "type": "array",
            "description": "Optional: web pages whose NDC codes you want checked, one per line. Each page is read once, one page at a time per site, and only where that site's robots.txt file allows readers (the file that says what automatic readers may fetch). Codes are taken from the page's own text.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerUrl": {
            "title": "Maximum codes per URL",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Every code past this cap is named on its own free row, and a page with more than one past it also gets one row counting them. It caps the codes taken from any one page in URLs, so one dense page cannot starve the pages behind it; Maximum items caps the run. At most 1,000.",
            "default": 50
          },
          "maxResultsPerSearch": {
            "title": "Maximum results per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most product codes one search entry returns, so the first name in a list cannot use up the run. Maximum items below still caps the whole run. Raise only this and a long search stops at Maximum items; raise only Maximum items and each search still stops here. Codes you paste are capped by Maximum items alone.",
            "default": 10
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most rows one run returns, across codes and searches. An entry past it is named on a free row of its own, ready to run again, and is not charged or counted here. At most 100,000.",
            "default": 1000
          },
          "includeAlternatives": {
            "title": "Other companies' listings",
            "type": "boolean",
            "description": "For each code found, and for each listing a name search finds, also returns other companies' listings of the same ingredients at the same strength, dosage form and routes, as rows of their own whose alternative_to field names the code they are an alternative to. Each other company's listing found is one more row, charged at your plan's row rate, the same rate as a checked row.",
            "default": false
          },
          "includeApproval": {
            "title": "FDA approval data",
            "type": "boolean",
            "description": "On by default at no extra charge: adds the approval behind each listing, read from the FDA's approvals database: the application's holder, its approval date, whether the FDA files the products as interchangeable (a generic it treats as the same drug), and whether a product of the application is a reference listed drug others are compared with. Some listings have none: monograph drugs (filed under an FDA monograph, not an approval), unapproved drugs, vaccines and blood products.",
            "default": true
          },
          "includeRecalls": {
            "title": "FDA recall reports",
            "type": "boolean",
            "description": "Adds the recall reports the FDA's recall register links to each listing found, whichever register filed the listing: the report number, its class (I, II or III, the FDA's seriousness scale), its status and its reason. The register links a code on only about half its reports, so an empty list is not an all-clear, and the row says so. No extra charge.",
            "default": false
          },
          "productTypes": {
            "title": "Product types",
            "type": "array",
            "description": "Optional: keep only listings of these product types. Every filter here narrows every search above; with no name, number or code given, the filters alone make one search. Codes you paste are never filtered.",
            "items": {
              "type": "string",
              "enum": [
                "HUMAN PRESCRIPTION DRUG",
                "HUMAN OTC DRUG",
                "BULK INGREDIENT",
                "DRUG FOR FURTHER PROCESSING",
                "NON-STANDARDIZED ALLERGENIC",
                "STANDARDIZED ALLERGENIC",
                "PLASMA DERIVATIVE",
                "VACCINE",
                "CELLULAR THERAPY",
                "LICENSED VACCINE BULK INTERMEDIATE",
                "ANIMAL DRUG FOR FURTHER PROCESSING"
              ],
              "enumTitles": [
                "Human Prescription Drug",
                "Human OTC Drug",
                "Bulk Ingredient",
                "Drug For Further Processing",
                "Non-Standardized Allergenic",
                "Standardized Allergenic",
                "Plasma Derivative",
                "Vaccine",
                "Cellular Therapy",
                "Licensed Vaccine Bulk Intermediate",
                "Animal Drug For Further Processing"
              ]
            },
            "default": []
          },
          "finishedOnly": {
            "title": "Finished dosage forms only",
            "type": "boolean",
            "description": "Keep only finished dosage forms and leave out bulk ingredients and other unfinished listings. It narrows a search; codes you paste are never filtered.",
            "default": false
          },
          "marketingCategories": {
            "title": "Categories",
            "type": "array",
            "description": "Optional: keep only listings in these marketing categories. A filter narrows a Directory search only; a code you paste is always answered as you pasted it.",
            "items": {
              "type": "string",
              "enum": [
                "ANDA",
                "NDA",
                "NDA AUTHORIZED GENERIC",
                "BLA",
                "OTC MONOGRAPH DRUG",
                "OTC MONOGRAPH FINAL",
                "OTC MONOGRAPH NOT FINAL",
                "UNAPPROVED HOMEOPATHIC",
                "UNAPPROVED DRUG OTHER",
                "UNAPPROVED MEDICAL GAS",
                "UNAPPROVED DRUG FOR USE IN DRUG SHORTAGE",
                "BULK INGREDIENT",
                "BULK INGREDIENT FOR HUMAN PRESCRIPTION COMPOUNDING",
                "DRUG FOR FURTHER PROCESSING",
                "EXPORT ONLY",
                "EMERGENCY USE AUTHORIZATION"
              ],
              "enumTitles": [
                "ANDA",
                "NDA",
                "NDA authorized generic",
                "BLA",
                "OTC Monograph Drug",
                "OTC Monograph Final",
                "OTC Monograph Not Final",
                "Unapproved Homeopathic",
                "Unapproved Drug Other",
                "Unapproved Medical Gas",
                "Unapproved Drug For Use In Drug Shortage",
                "Bulk Ingredient",
                "Bulk Ingredient For Human Prescription Compounding",
                "Drug For Further Processing",
                "Export Only",
                "Emergency Use Authorization"
              ]
            },
            "default": []
          },
          "dosageForms": {
            "title": "Dosage forms",
            "type": "array",
            "description": "Optional: keep only listings in these dosage forms, as the FDA's NDC Directory names them. Pick every form you want: Tablet does not take in Tablet, Film Coated. A filter narrows a search; codes you paste are never filtered.",
            "items": {
              "type": "string",
              "enum": [
                "AEROSOL",
                "AEROSOL, FOAM",
                "AEROSOL, METERED",
                "AEROSOL, POWDER",
                "AEROSOL, SPRAY",
                "BAR, CHEWABLE",
                "BEAD",
                "CAPSULE",
                "CAPSULE, COATED",
                "CAPSULE, COATED PELLETS",
                "CAPSULE, COATED, EXTENDED RELEASE",
                "CAPSULE, DELAYED RELEASE",
                "CAPSULE, DELAYED RELEASE PELLETS",
                "CAPSULE, EXTENDED RELEASE",
                "CAPSULE, GELATIN COATED",
                "CAPSULE, LIQUID FILLED",
                "CELLULAR SHEET",
                "CHEWABLE GEL",
                "CLOTH",
                "CONCENTRATE",
                "CREAM",
                "CREAM, AUGMENTED",
                "CRYSTAL",
                "DISC",
                "DOUCHE",
                "DRESSING",
                "ELIXIR",
                "EMULSION",
                "ENEMA",
                "EXTRACT",
                "FILM",
                "FILM, EXTENDED RELEASE",
                "FILM, SOLUBLE",
                "FOR SOLUTION",
                "FOR SUSPENSION",
                "FOR SUSPENSION, EXTENDED RELEASE",
                "GAS",
                "GEL",
                "GEL, DENTIFRICE",
                "GEL, METERED",
                "GLOBULE",
                "GRANULE",
                "GRANULE, DELAYED RELEASE",
                "GRANULE, EFFERVESCENT",
                "GRANULE, FOR SOLUTION",
                "GRANULE, FOR SUSPENSION",
                "GRANULE, FOR SUSPENSION, EXTENDED RELEASE",
                "GUM, CHEWING",
                "IMPLANT",
                "INHALANT",
                "INJECTABLE, LIPOSOMAL",
                "INJECTION",
                "INJECTION, EMULSION",
                "INJECTION, LIPID COMPLEX",
                "INJECTION, POWDER, FOR SOLUTION",
                "INJECTION, POWDER, FOR SUSPENSION",
                "INJECTION, POWDER, FOR SUSPENSION, EXTENDED RELEASE",
                "INJECTION, POWDER, LYOPHILIZED, FOR SOLUTION",
                "INJECTION, POWDER, LYOPHILIZED, FOR SUSPENSION",
                "INJECTION, POWDER, LYOPHILIZED, FOR SUSPENSION, EXTENDED RELEASE",
                "INJECTION, SOLUTION",
                "INJECTION, SOLUTION, CONCENTRATE",
                "INJECTION, SUSPENSION",
                "INJECTION, SUSPENSION, EXTENDED RELEASE",
                "INJECTION, SUSPENSION, LIPOSOMAL",
                "INSERT",
                "INSERT, EXTENDED RELEASE",
                "INTRAUTERINE DEVICE",
                "IRRIGANT",
                "JELLY",
                "KIT",
                "LINIMENT",
                "LIPSTICK",
                "LIQUID",
                "LOTION",
                "LOTION, AUGMENTED",
                "LOTION/SHAMPOO",
                "LOZENGE",
                "MOUTHWASH",
                "OIL",
                "OINTMENT",
                "OINTMENT, AUGMENTED",
                "PASTE",
                "PASTE, DENTIFRICE",
                "PASTILLE",
                "PATCH",
                "PATCH, EXTENDED RELEASE",
                "PELLET",
                "PELLETS, COATED, EXTENDED RELEASE",
                "PILL",
                "PLASTER",
                "POULTICE",
                "POWDER",
                "POWDER, DENTIFRICE",
                "POWDER, FOR SOLUTION",
                "POWDER, FOR SUSPENSION",
                "POWDER, METERED",
                "RING",
                "RINSE",
                "SALVE",
                "SHAMPOO",
                "SHAMPOO, SUSPENSION",
                "SOAP",
                "SOLUTION",
                "SOLUTION, CONCENTRATE",
                "SOLUTION, GEL FORMING / DROPS",
                "SOLUTION/ DROPS",
                "SPONGE",
                "SPRAY",
                "SPRAY, METERED",
                "SPRAY, SUSPENSION",
                "STICK",
                "STRIP",
                "SUPPOSITORY",
                "SUSPENSION",
                "SUSPENSION, EXTENDED RELEASE",
                "SUSPENSION/ DROPS",
                "SWAB",
                "SYRUP",
                "SYSTEM",
                "TABLET",
                "TABLET, CHEWABLE",
                "TABLET, CHEWABLE, EXTENDED RELEASE",
                "TABLET, COATED",
                "TABLET, DELAYED RELEASE",
                "TABLET, DELAYED RELEASE PARTICLES",
                "TABLET, EFFERVESCENT",
                "TABLET, EXTENDED RELEASE",
                "TABLET, FILM COATED",
                "TABLET, FILM COATED, EXTENDED RELEASE",
                "TABLET, FOR SOLUTION",
                "TABLET, FOR SUSPENSION",
                "TABLET, MULTILAYER",
                "TABLET, MULTILAYER, EXTENDED RELEASE",
                "TABLET, ORALLY DISINTEGRATING",
                "TABLET, ORALLY DISINTEGRATING, DELAYED RELEASE",
                "TABLET, SOLUBLE",
                "TABLET, SUGAR COATED",
                "TAPE",
                "TINCTURE",
                "TROCHE",
                "WAFER"
              ],
              "enumTitles": [
                "Aerosol",
                "Aerosol, Foam",
                "Aerosol, Metered",
                "Aerosol, Powder",
                "Aerosol, Spray",
                "Bar, Chewable",
                "Bead",
                "Capsule",
                "Capsule, Coated",
                "Capsule, Coated Pellets",
                "Capsule, Coated, Extended Release",
                "Capsule, Delayed Release",
                "Capsule, Delayed Release Pellets",
                "Capsule, Extended Release",
                "Capsule, Gelatin Coated",
                "Capsule, Liquid Filled",
                "Cellular Sheet",
                "Chewable Gel",
                "Cloth",
                "Concentrate",
                "Cream",
                "Cream, Augmented",
                "Crystal",
                "Disc",
                "Douche",
                "Dressing",
                "Elixir",
                "Emulsion",
                "Enema",
                "Extract",
                "Film",
                "Film, Extended Release",
                "Film, Soluble",
                "For Solution",
                "For Suspension",
                "For Suspension, Extended Release",
                "Gas",
                "Gel",
                "Gel, Dentifrice",
                "Gel, Metered",
                "Globule",
                "Granule",
                "Granule, Delayed Release",
                "Granule, Effervescent",
                "Granule, For Solution",
                "Granule, For Suspension",
                "Granule, For Suspension, Extended Release",
                "Gum, Chewing",
                "Implant",
                "Inhalant",
                "Injectable, Liposomal",
                "Injection",
                "Injection, Emulsion",
                "Injection, Lipid Complex",
                "Injection, Powder, For Solution",
                "Injection, Powder, For Suspension",
                "Injection, Powder, For Suspension, Extended Release",
                "Injection, Powder, Lyophilized, For Solution",
                "Injection, Powder, Lyophilized, For Suspension",
                "Injection, Powder, Lyophilized, For Suspension, Extended Release",
                "Injection, Solution",
                "Injection, Solution, Concentrate",
                "Injection, Suspension",
                "Injection, Suspension, Extended Release",
                "Injection, Suspension, Liposomal",
                "Insert",
                "Insert, Extended Release",
                "Intrauterine Device",
                "Irrigant",
                "Jelly",
                "Kit",
                "Liniment",
                "Lipstick",
                "Liquid",
                "Lotion",
                "Lotion, Augmented",
                "Lotion/Shampoo",
                "Lozenge",
                "Mouthwash",
                "Oil",
                "Ointment",
                "Ointment, Augmented",
                "Paste",
                "Paste, Dentifrice",
                "Pastille",
                "Patch",
                "Patch, Extended Release",
                "Pellet",
                "Pellets, Coated, Extended Release",
                "Pill",
                "Plaster",
                "Poultice",
                "Powder",
                "Powder, Dentifrice",
                "Powder, For Solution",
                "Powder, For Suspension",
                "Powder, Metered",
                "Ring",
                "Rinse",
                "Salve",
                "Shampoo",
                "Shampoo, Suspension",
                "Soap",
                "Solution",
                "Solution, Concentrate",
                "Solution, Gel Forming / Drops",
                "Solution/ Drops",
                "Sponge",
                "Spray",
                "Spray, Metered",
                "Spray, Suspension",
                "Stick",
                "Strip",
                "Suppository",
                "Suspension",
                "Suspension, Extended Release",
                "Suspension/ Drops",
                "Swab",
                "Syrup",
                "System",
                "Tablet",
                "Tablet, Chewable",
                "Tablet, Chewable, Extended Release",
                "Tablet, Coated",
                "Tablet, Delayed Release",
                "Tablet, Delayed Release Particles",
                "Tablet, Effervescent",
                "Tablet, Extended Release",
                "Tablet, Film Coated",
                "Tablet, Film Coated, Extended Release",
                "Tablet, For Solution",
                "Tablet, For Suspension",
                "Tablet, Multilayer",
                "Tablet, Multilayer, Extended Release",
                "Tablet, Orally Disintegrating",
                "Tablet, Orally Disintegrating, Delayed Release",
                "Tablet, Soluble",
                "Tablet, Sugar Coated",
                "Tape",
                "Tincture",
                "Troche",
                "Wafer"
              ]
            },
            "default": []
          },
          "routes": {
            "title": "Routes",
            "type": "array",
            "description": "Optional: keep only listings given by these routes, as the FDA's NDC Directory names them. A filter narrows a search; codes you paste are never filtered.",
            "items": {
              "type": "string",
              "enum": [
                "AURICULAR (OTIC)",
                "BUCCAL",
                "CONJUNCTIVAL",
                "CUTANEOUS",
                "DENTAL",
                "ENDOTRACHEAL",
                "ENTERAL",
                "EPIDURAL",
                "EXTRACORPOREAL",
                "HEMODIALYSIS",
                "INFILTRATION",
                "INTERSTITIAL",
                "INTRA-ARTERIAL",
                "INTRA-ARTICULAR",
                "INTRABRONCHIAL",
                "INTRACAMERAL",
                "INTRACANALICULAR",
                "INTRACARDIAC",
                "INTRACAUDAL",
                "INTRACAVERNOUS",
                "INTRACAVITARY",
                "INTRACEREBRAL",
                "INTRACOCHLEAR",
                "INTRACORONARY",
                "INTRADERMAL",
                "INTRAEPIDERMAL",
                "INTRAGASTRIC",
                "INTRALESIONAL",
                "INTRALUMINAL",
                "INTRALYMPHATIC",
                "INTRAMEDULLARY",
                "INTRAMUSCULAR",
                "INTRAOCULAR",
                "INTRAPERITONEAL",
                "INTRAPLEURAL",
                "INTRASINAL",
                "INTRASYNOVIAL",
                "INTRATHECAL",
                "INTRATUMOR",
                "INTRAUTERINE",
                "INTRAVASCULAR",
                "INTRAVENOUS",
                "INTRAVENTRICULAR",
                "INTRAVESICAL",
                "INTRAVITREAL",
                "IRRIGATION",
                "NASAL",
                "OPHTHALMIC",
                "ORAL",
                "OROPHARYNGEAL",
                "PARENTERAL",
                "PERCUTANEOUS",
                "PERINEURAL",
                "PERIODONTAL",
                "RECTAL",
                "RESPIRATORY (INHALATION)",
                "RETROBULBAR",
                "SOFT TISSUE",
                "SUBARACHNOID",
                "SUBCONJUNCTIVAL",
                "SUBCUTANEOUS",
                "SUBGINGIVAL",
                "SUBLINGUAL",
                "SUBMUCOSAL",
                "SUPRACHOROIDAL",
                "TOPICAL",
                "TRANSDERMAL",
                "TRANSMUCOSAL",
                "TRANSTRACHEAL",
                "URETERAL",
                "URETHRAL",
                "VAGINAL"
              ],
              "enumTitles": [
                "Auricular (Otic)",
                "Buccal",
                "Conjunctival",
                "Cutaneous",
                "Dental",
                "Endotracheal",
                "Enteral",
                "Epidural",
                "Extracorporeal",
                "Hemodialysis",
                "Infiltration",
                "Interstitial",
                "Intra-Arterial",
                "Intra-Articular",
                "Intrabronchial",
                "Intracameral",
                "Intracanalicular",
                "Intracardiac",
                "Intracaudal",
                "Intracavernous",
                "Intracavitary",
                "Intracerebral",
                "Intracochlear",
                "Intracoronary",
                "Intradermal",
                "Intraepidermal",
                "Intragastric",
                "Intralesional",
                "Intraluminal",
                "Intralymphatic",
                "Intramedullary",
                "Intramuscular",
                "Intraocular",
                "Intraperitoneal",
                "Intrapleural",
                "Intrasinal",
                "Intrasynovial",
                "Intrathecal",
                "Intratumor",
                "Intrauterine",
                "Intravascular",
                "Intravenous",
                "Intraventricular",
                "Intravesical",
                "Intravitreal",
                "Irrigation",
                "Nasal",
                "Ophthalmic",
                "Oral",
                "Oropharyngeal",
                "Parenteral",
                "Percutaneous",
                "Perineural",
                "Periodontal",
                "Rectal",
                "Respiratory (Inhalation)",
                "Retrobulbar",
                "Soft Tissue",
                "Subarachnoid",
                "Subconjunctival",
                "Subcutaneous",
                "Subgingival",
                "Sublingual",
                "Submucosal",
                "Suprachoroidal",
                "Topical",
                "Transdermal",
                "Transmucosal",
                "Transtracheal",
                "Ureteral",
                "Urethral",
                "Vaginal"
              ]
            },
            "default": []
          },
          "deaSchedules": {
            "title": "Controlled-substance schedules (DEA)",
            "type": "array",
            "description": "Optional: keep only controlled substances in the schedules you pick, the DEA's federal classes from CI (the most tightly controlled) to CV (the least). It narrows the same listings as the other filters; codes you paste are never filtered.",
            "items": {
              "type": "string",
              "enum": [
                "CII",
                "CIII",
                "CIV",
                "CV",
                "CI"
              ],
              "enumTitles": [
                "Schedule II (CII)",
                "Schedule III (CIII)",
                "Schedule IV (CIV)",
                "Schedule V (CV)",
                "Schedule I (CI)"
              ]
            },
            "default": []
          },
          "pharmClasses": {
            "title": "Pharmacologic classes",
            "type": "array",
            "description": "Optional: keep only listings in these drug classes. Type a class as the FDA names it, or a phrase from that name, such as HMG-CoA Reductase Inhibitor or Opioid Agonist. A common word such as statin will not match. The FDA's own class names are the ones that match, and the run reads the four kinds: the established class, the mechanism of action, the physiologic effect and the chemical structure. A filter narrows a search; codes you paste are never filtered.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "marketingStatus": {
            "title": "Marketing end date filed",
            "enum": [
              "any",
              "current",
              "ending"
            ],
            "type": "string",
            "description": "Optional: keep only listings whose marketing end date the labeler has filed, or only those with none filed. This picks a filing state, not a date; for \"ending within N days\" use Ending within days. It narrows a search; codes you paste are never filtered.",
            "default": "any"
          },
          "marketedFrom": {
            "title": "Started on or after",
            "type": "string",
            "description": "Optional: keep only listings whose marketing started on or after this date, as YYYY-MM-DD. It narrows a search; codes you paste are never filtered."
          },
          "marketedTo": {
            "title": "Started on or before",
            "type": "string",
            "description": "Optional: keep only listings whose marketing started on or before this date, as YYYY-MM-DD. It narrows a search; codes you paste are never filtered."
          },
          "endsWithinDays": {
            "title": "Ending within days",
            "minimum": 0,
            "maximum": 36500,
            "type": "integer",
            "description": "Optional, counting days forward from today: a search keeps only listings whose marketing end date (the listing's or one of its packages') falls within this many days. Example: 90 shows what stops being marketed in the next three months. A yearly listing expiration is not used for this filter, and codes you paste are never filtered by it; their rows carry the days left until that end."
          },
          "sortBy": {
            "title": "Order of results",
            "enum": [
              "directory",
              "newest",
              "oldest",
              "expiring",
              "ending"
            ],
            "type": "string",
            "description": "How a Directory search is ordered; it changes only the order, not which listings match. Directory order is the FDA's own order for the search, which for a name search is its relevance ranking, and the two date orders differ: listing expiration is the date the listing's label expires, product marketing end is the date the labeler ended or will end marketing it. A package's end counts too: openFDA orders on one field only. It orders a search's results; codes you paste keep the order you gave them.",
            "default": "directory"
          },
          "prevDatasetId": {
            "title": "Compare with a previous run",
            "type": "string",
            "description": "Optional: the dataset of an earlier run of this Actor. Each row then says whether its listing is new, unchanged or changed since that run, and which fields moved. A code that was not found last run and is listed now reads changed. Leave empty for a plain run."
          },
          "apiKey": {
            "title": "openFDA API key",
            "type": "string",
            "description": "Optional: your own free openFDA API key, sent with every request to the Directory. With one, the daily request allowance is yours alone; without one, a run shares openFDA's keyless allowance with everyone else at the same address. The daily numbers are in the Limits section of this Actor's page. Get one at https://open.fda.gov/apis/authentication/"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}