{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA NDC Pharmaceutical Labeler & Product Intelligence",
    "description": "Extract official FDA NDC prescription and OTC product listings with labeler filters, full packaging and ingredient arrays, and JSON/CSV exports. One row per unique product.",
    "version": "1.0",
    "x-build-id": "ankNFC7BEIS2nlY6J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/afkdigital~fda-ndc-pharmaceutical-labeler-product-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-afkdigital-fda-ndc-pharmaceutical-labeler-product-intelligence",
        "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/afkdigital~fda-ndc-pharmaceutical-labeler-product-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-afkdigital-fda-ndc-pharmaceutical-labeler-product-intelligence",
        "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/afkdigital~fda-ndc-pharmaceutical-labeler-product-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-afkdigital-fda-ndc-pharmaceutical-labeler-product-intelligence",
        "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": {
          "marketingStartDateFrom": {
            "title": "Marketing start date from",
            "type": "string",
            "description": "Inclusive product-level marketing start date, YYYY-MM-DD or YYYYMMDD. Not the date added to FDA."
          },
          "marketingStartDateTo": {
            "title": "Marketing start date to",
            "type": "string",
            "description": "Inclusive upper bound. Omit either bound for an open-ended range."
          },
          "productType": {
            "title": "Product type",
            "type": "string",
            "description": "Exact FDA value, e.g. HUMAN PRESCRIPTION DRUG, HUMAN OTC DRUG, BULK INGREDIENT or DRUG FOR FURTHER PROCESSING. Omit to include all source product types."
          },
          "dosageForm": {
            "title": "Dosage form",
            "type": "string",
            "description": "Exact FDA value, e.g. TABLET, CAPSULE or SOLUTION. Case-sensitive."
          },
          "labelerName": {
            "title": "Labeler name",
            "type": "string",
            "description": "Exact full labeler name. A labeler is not necessarily the physical manufacturer or a contract packager."
          },
          "maxResults": {
            "title": "Maximum unique products",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "One row per unique product_ndc. Default 20. Hard maximum 10,000; further limited by budgets.",
            "default": 20
          },
          "maxChargeUsd": {
            "title": "Product charge budget (USD)",
            "minimum": 0,
            "maximum": 65,
            "type": "number",
            "description": "Stops before the next $0.0065 product would exceed this cap or the platform spending limit. No startup charge.",
            "default": 1
          },
          "apiKey": {
            "title": "Optional openFDA API key",
            "type": "string",
            "description": "Optional key for your own FDA quota. Secret field; never included in output URLs or logs. Default example works without it subject to shared-IP quotas."
          },
          "pageSize": {
            "title": "FDA page size",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "100 by default; current endpoint accepts up to 1,000. Smaller values can be used to test pagination.",
            "default": 100
          },
          "maxRequests": {
            "title": "Maximum FDA HTTP attempts",
            "minimum": 1,
            "maximum": 900,
            "type": "integer",
            "description": "Includes retries. Default 100, hard cap 900. Shared IP daily quotas may still be exhausted by other runs.",
            "default": 100
          },
          "requestsPerMinute": {
            "title": "Maximum requests per minute",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Sequential request pacing; default 120, hard maximum 180 (below FDA 240/min). Concurrent runs share quotas.",
            "default": 120
          },
          "requestTimeoutSecs": {
            "title": "HTTP request timeout",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Bounded timeout per HTTP attempt.",
            "default": 30
          },
          "maxRetries": {
            "title": "Maximum retries",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Exponential backoff with jitter for HTTP 408/429/5xx and transient network errors. Retries are free.",
            "default": 4
          },
          "maxRuntimeSecs": {
            "title": "Collection time limit",
            "minimum": 10,
            "maximum": 240,
            "type": "integer",
            "description": "Internal collection deadline, at most 240 seconds. Exhausted source/network/request limits fail visibly; saved data stays accessible.",
            "default": 240
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}