# FDA Orange Book Patent Cliff, USPTO PTA & Trademark API (`parsegrid/uspto-trademark-patent-intelligence-api`) Actor

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.

- **URL**: https://apify.com/parsegrid/uspto-trademark-patent-intelligence-api.md
- **Developed by:** [Parse Grid](https://apify.com/parsegrid) (community)
- **Categories:** AI, Developer tools, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 uspto patent & ip intelligence records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## USPTO Patent-Cliff, Patent Term Adjustment & Trademark Intelligence API

Dual-mode U.S. intellectual property intelligence API by **ParseGrid** (`ops@parsegrid.io`) that joins live **FDA Orange Book** USPTO patent-cliff and regulatory exclusivity schedules with **SEC EDGAR XBRL** quarterly revenue exposure and **ClinicalTrials.gov API v2** lifecycle studies out of the box, plus optional direct **USPTO Open Data Portal (ODP)** Patent Term Adjustment (PTA) file-wrapper and **USPTO TSDR** trademark prosecution enrichment across any industry.

### Dual-Mode Architecture

1. **Zero-Key Default Mode (No API Keys Required):**
   - Downloads and parses the live official FDA Orange Book bulk archive (`products.txt`, `patent.txt`, `exclusivity.txt`) and joins each NDA franchise with live SEC EDGAR (`company_tickers.json`, `submissions`, and single-quarter `us-gaap` XBRL revenue) and active Phase 2/3/4 `ClinicalTrials.gov` lifecycle trials.
   - Emits `PHARMA_LOE_PATENT_RADAR` records containing composition-of-matter (`drugSubstancePatentCount`) vs formulation (`drugProductPatentCount`) patent splits, `effectiveLoeDate`, `yearsToLoe`, `approvedGenericAndaCount`, `annualizedRevenueRunRateUsd`, and `loeUrgencyScore` (`0` to `100`).
2. **Optional Direct USPTO ODP & TSDR Live Enrichment:**
   - Supply `usptoOdpApiKey` (`api.uspto.gov`) to enrich Orange Book patents with official `applicationNumber`, `filingDate`, `ptaTotalDays` (`adjustmentTotalQuantity`), A/B/C delay breakdowns, `applicantDelayDays`, and CPC classifications, or query standalone `patentNumbers` and `patentApplicants` across AI, semiconductors, software, hardware, and life sciences (`USPTO_PATENT_WRAPPER`).
   - Supply `usptoTsdrApiKey` (`tsdrapi.uspto.gov`) with `trademarkSerialNumbers` to inspect live word marks, Section 1(b) Intent-to-Use launch flags (`isIntentToUse1b`), `noticeOfAllowanceDate`, Nice classes, and prosecution status (`USPTO_TRADEMARK_TSDR`).

### Example Zero-Key Input

```json
{
  "tickers": ["AXSM", "MDGL", "BCRX", "HRMY", "INSM"]
}
```

### Example Full USPTO Enrichment Input

```json
{
  "tickers": ["AXSM", "HRMY"],
  "patentNumbers": ["10799500"],
  "patentApplicants": ["NVIDIA"],
  "trademarkSerialNumbers": ["99112441"],
  "usptoOdpApiKey": "<YOUR_USPTO_ODP_KEY>",
  "usptoTsdrApiKey": "<YOUR_USPTO_TSDR_KEY>"
}
```

# Actor input Schema

## `tickers` (type: `array`):

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.

## `ndaNumbers` (type: `array`):

Optional FDA New Drug Application numbers (e.g. 215430, 217785, 211150) to query directly against FDA Orange Book patent and exclusivity tables.

## `tradeNames` (type: `array`):

Optional FDA Orange Book drug trade names (e.g. AUVELITY, REZDIFFRA, WAKIX) to resolve patent cliffs and exclusivity schedules.

## `patentNumbers` (type: `array`):

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.

## `patentApplicants` (type: `array`):

Applicant or assignee organization names (e.g. NVIDIA, INTRA-CELLULAR THERAPIES) across any industry to search USPTO Open Data Portal patent file wrappers.

## `trademarkSerialNumbers` (type: `array`):

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.

## `usptoOdpApiKey` (type: `string`):

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` (type: `string`):

Optional USPTO Trademark Status & Document Retrieval (tsdrapi.uspto.gov) API key used to fetch live trademark serial status records.

## `maxOdpPatentsPerFranchise` (type: `integer`):

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).

## `maxNdasPerTicker` (type: `integer`):

Maximum number of active FDA Orange Book NDA franchises to emit per equity ticker (1 to 50).

## Actor input object example

```json
{
  "tickers": [
    "AXSM",
    "MDGL",
    "BCRX",
    "HRMY",
    "INSM"
  ],
  "maxOdpPatentsPerFranchise": 3,
  "maxNdasPerTicker": 10
}
```

# Actor output Schema

## `results` (type: `string`):

JSON dataset items containing PHARMA_LOE_PATENT_RADAR, USPTO_PATENT_WRAPPER, and USPTO_TRADEMARK_TSDR records with direct USPTO, FDA, and SEC provenance URLs.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tickers": [
        "AXSM",
        "MDGL",
        "BCRX",
        "HRMY",
        "INSM"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("parsegrid/uspto-trademark-patent-intelligence-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tickers": [
        "AXSM",
        "MDGL",
        "BCRX",
        "HRMY",
        "INSM",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("parsegrid/uspto-trademark-patent-intelligence-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tickers": [
    "AXSM",
    "MDGL",
    "BCRX",
    "HRMY",
    "INSM"
  ]
}' |
apify call parsegrid/uspto-trademark-patent-intelligence-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parsegrid/uspto-trademark-patent-intelligence-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/b1oGP4eLvloNxVf4s/builds/7oWKgejeudkN1xdAT/openapi.json
