{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA Orange Book Patent Cliff, USPTO PTA & Trademark API",
    "description": "Dual-mode federal IP API joining live FDA Orange Book drug patent cliffs and LOE exclusivity with SEC EDGAR XBRL revenue, ClinicalTrials.gov studies, USPTO PTA, and TSDR marks.",
    "version": "1.0",
    "x-build-id": "7oWKgejeudkN1xdAT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsegrid~uspto-trademark-patent-intelligence-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsegrid-uspto-trademark-patent-intelligence-api",
        "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/parsegrid~uspto-trademark-patent-intelligence-api/runs": {
      "post": {
        "operationId": "runs-sync-parsegrid-uspto-trademark-patent-intelligence-api",
        "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/parsegrid~uspto-trademark-patent-intelligence-api/run-sync": {
      "post": {
        "operationId": "run-sync-parsegrid-uspto-trademark-patent-intelligence-api",
        "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": {
          "tickers": {
            "title": "Equity Tickers (Zero-Key Orange Book + SEC + ClinicalTrials Mode)",
            "type": "array",
            "description": "U.S. SEC-reporting biopharma equity tickers to evaluate for FDA Orange Book USPTO patent expirations, LOE cliffs, generic ANDA competition, and SEC XBRL revenue exposure.",
            "default": [
              "AXSM",
              "MDGL",
              "BCRX",
              "HRMY",
              "INSM"
            ],
            "items": {
              "type": "string"
            }
          },
          "ndaNumbers": {
            "title": "FDA NDA Numbers (Optional)",
            "type": "array",
            "description": "Optional FDA New Drug Application numbers (e.g. 215430, 217785, 211150) to query directly against FDA Orange Book patent and exclusivity tables.",
            "items": {
              "type": "string"
            }
          },
          "tradeNames": {
            "title": "Brand Trade Names (Optional)",
            "type": "array",
            "description": "Optional FDA Orange Book drug trade names (e.g. AUVELITY, REZDIFFRA, WAKIX) to resolve patent cliffs and exclusivity schedules.",
            "items": {
              "type": "string"
            }
          },
          "patentNumbers": {
            "title": "Standalone USPTO Patent Numbers (Optional - Requires ODP Key)",
            "type": "array",
            "description": "Standalone granted USPTO patent numbers (e.g. 10799500) across any industry (AI, semiconductors, software, biotech) to retrieve USPTO Open Data Portal file-wrapper metadata and Patent Term Adjustment (PTA) day counts.",
            "items": {
              "type": "string"
            }
          },
          "patentApplicants": {
            "title": "Standalone USPTO Patent Applicants / Assignees (Optional - Requires ODP Key)",
            "type": "array",
            "description": "Applicant or assignee organization names (e.g. NVIDIA, INTRA-CELLULAR THERAPIES) across any industry to search USPTO Open Data Portal patent file wrappers.",
            "items": {
              "type": "string"
            }
          },
          "trademarkSerialNumbers": {
            "title": "USPTO Trademark Serial Numbers (Optional - Requires TSDR Key)",
            "type": "array",
            "description": "8-digit USPTO trademark application serial numbers (e.g. 99112441) to retrieve live TSDR case status, Intent-to-Use 1(b) flags, Notice of Allowance dates, and Nice classes.",
            "items": {
              "type": "string"
            }
          },
          "usptoOdpApiKey": {
            "title": "USPTO Open Data Portal API Key (Optional)",
            "type": "string",
            "description": "Optional USPTO Open Data Portal (api.uspto.gov) X-API-KEY used to enrich Orange Book patents with live Patent Term Adjustment (PTA) day breakdowns and query standalone patentNumbers or patentApplicants."
          },
          "usptoTsdrApiKey": {
            "title": "USPTO TSDR API Key (Optional)",
            "type": "string",
            "description": "Optional USPTO Trademark Status & Document Retrieval (tsdrapi.uspto.gov) API key used to fetch live trademark serial status records."
          },
          "maxOdpPatentsPerFranchise": {
            "title": "Max ODP-Enriched Patents Per Franchise",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Maximum number of priority Orange Book patents per NDA franchise to enrich with live USPTO ODP Patent Term Adjustment metadata when usptoOdpApiKey is supplied (1 to 15).",
            "default": 3
          },
          "maxNdasPerTicker": {
            "title": "Max NDAs Per Ticker",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of active FDA Orange Book NDA franchises to emit per equity ticker (1 to 50).",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}