Alterlab uspto

From AlterLab-IEU/AlterLab-Academic-Skills · View interactive version

Alterlab uspto is an AI agent skill from the GitHub repository AlterLab-IEU/AlterLab-Academic-Skills. Access USPTO patent and trademark data — keyless full-text patent search through USPTO Patent Public Search, patent legal events and recorded assignments from Google Patents pages, and trademark status, owners, goods/services and prosecution history from TSDR status pages — with optional Open Data P

How to use this skill

Skill file

USPTO Database

Overview

USPTO data for patents and trademarks, for IP analysis and prior art searches.

Without any key the skill searches full text of US grants and applications in

USPTO's own Patent Public Search, reads a patent's legal events (status changes,

recorded assignments with reel/frame) from its Google Patents page, and reads a

trademark's status, owner, goods/services and prosecution history from its TSDR

status page. The keyed USPTO Open Data Portal (ODP) at https://api.uspto.gov

adds the complete file-wrapper transaction list, continuity, office actions and

PTAB data; several older services were retired in 2025–2026, so check the status

table below before reusing older code.

When to Use This Skill

Does NOT Trigger

| Scenario | Use Instead |

|----------|-------------|

| Scholarly literature (non-patent prior art), citation counts | alterlab-research-lookup |

| Biomedical literature search | alterlab-pubmed |

| FDA drug/device approvals, labels, 510(k)/PMA | alterlab-fda |

| Company filings and financials from SEC EDGAR | alterlab-edgartools |

| Market sizing / competitive-landscape reports | alterlab-market-research |

| A compound's structure, SMILES, molecular weight or PubChem CID, even when it is named in a patent | alterlab-pubchem |

Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-research-lookup) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.

Keyless Routes (default — verified live 2026-10-22)

| Need | Keyless route | Notes |

|------|---------------|-------|

| Patent / publication search (title, abstract, claims, assignee, inventor, CPC, dates) | python scripts/uspto_public.py search 'google.as. AND G06N$.cpc. AND @pd>=20230101<=20241231' (or --assignee google --cpc G06N --from 2023-01-01 --to 2024-12-31) → 916 grants | USPTO Patent Public Search backend (anonymous session); undocumented JSON, keep volumes modest. Syntax: .ti. .ab. .clm. .as. .aanm. .in. .cpc. .pn., $ truncation, @pd/@ad date ranges; --db USPAT,US-PGPUB |

| One patent: bibliographic data, abstract, claims, cited US references | python scripts/uspto_public.py doc 11234567 | assignee at grant, application number, CPC |

| Application number → grant / pre-grant publication | python scripts/uspto_public.py app 16/123,456 | unpublished or abandoned-before-publication applications are not in Patent Public Search |

| Legal events: USPTO status changes (STPP/STCF), recorded assignments (AS, reel/frame), fees | WebFetch https://patents.google.com/patent/US11234567B2/en ("Legal events" table) | Google blocks scripted fetches; WebFetch worked on 2026-10-22 but later calls got HTTP 503 — retry, and if it stays blocked say so (do not guess events). STPP rows are status snapshots, not the full transaction list |

| Trademark status, owner, goods/services, classes, prosecution history | python scripts/uspto_public.py trademark 87654321 (--registration for a reg. no.) or trademark_client.py --health 87654321 | parses https://tsdr.uspto.gov/statusview/sn87654321 |

| EP bibliographic data (EPO, linked open data) | https://data.epo.org/linked-data/data/publication/EP/1000000/A1/-.json | keyless; EPO OPS needs registration |

Not reachable keylessly from here: the full file-wrapper transaction list of pending

applications, office-action text/rejections, PTAB records (ODP key), and the PatentsView

and bulkdata.uspto.gov hosts. Say which route produced each fact.

USPTO API Status (verified 2026-09-23)

| Need | Current service | Auth | Status |

|------|-----------------|------|--------|

| Bibliographic search, status, transactions, continuity, assignments, documents (applications filed 2001-01-01 onward, refreshed daily) | ODP Patent File Wrapper: https://api.uspto.gov/api/v1/patent/applications/search (GET q= or POST JSON) and /{applicationNumberText} plus /meta-data, /transactions, /continuity, /assignment, /documents, /adjustment, /attorney, /foreign-priority, /associated-documents | X-API-KEY (ODP key) | Live — replaces PEDS |

| Office actions: text, citations, rejections, enriched citations | ODP POST https://api.uspto.gov/api/v1/patent/oa/{oa_actions/v1, oa_citations/v2, oa_rejections/v2, enriched_cited_reference_metadata/v3}/records (form fields criteria [Lucene], start, rows) | ODP key | Live on the ODP host since early 2026 |

| PTAB trials, trial decisions/documents, appeals, interferences | ODP /api/v1/patent/trials/proceedings/search, /trials/decisions/search, /trials/documents/search, /appeals/decisions/search, /interferences/decisions/search | ODP key | Live |

| Petition decisions | ODP /api/v1/petition/decisions/search | ODP key | Live |

| Bulk data (grant / pre-grant XML full text, PatentsView tables, OA weekly archives, etc.) | ODP /api/v1/datasets/products/search, /api/v1/datasets/products/{productIdentifier} | ODP key | Live |

| Trademark status and documents | TSDR https://tsdrapi.uspto.gov/ts/cd/casestatus/sn{serial}/info (XML; info.json also served) | USPTO-API-KEY header (TSDR key) | Live; 60 requests/min per key, 4/min for PDF/ZIP |

| Full-text patent search with disambiguated inventors/assignees | PatentsView PatentSearch API (search.patentsview.org) | — | Offline: paused when PatentsView moved to ODP on 2026-03-20; hostname no longer resolves; no announced return date; old PatentsView keys do not work on ODP |

| Examination history | PEDS (ped.uspto.gov), uspto-opendata-python PEDS client | — | Retired 2025-03-14 (host gone) — use Patent File Wrapper |

| Patent / trademark assignment search | assignment-api.uspto.gov | — | Gone (host no longer resolves) — use /{app}/assignment or assignment bulk data |

| Legacy DSAPI endpoints (developer.uspto.gov/ds-api/...) | — | — | Retired — the host redirects to data.uspto.gov |

Consequences: there is currently no public API for full-text claims/abstract

search with disambiguated assignees. Use ODP bibliographic search for discovery,

ODP bulk grant/pgpub XML (or the PatentsView bulk tables on ODP) for full text,

and say so when a user asks for PatentsView-style queries.

Quick Start

Optional API Keys (keyless routes above need none)

sign in at https://data.uspto.gov with a USPTO.gov account (required for ODP

since 2026-06-18) and request a key under APIs → Getting Started. Send it as

X-API-KEY. ODP deletes keys that stay unused for 90 days.

https://account.uspto.gov/api-manager/ and send it as USPTO-API-KEY — an

X-Api-Key header is ignored, so the call is treated as keyless (HTTP 401).

export USPTO_ODP_API_KEY="..."    # ODP scripts (USPTO_API_KEY is read as a fallback)
export USPTO_TSDR_API_KEY="..."   # trademark_client.py

Helper Scripts

TSDR status pages (trademark); standard library only

default, ODP Patent File Wrapper with USPTO_ODP_API_KEY (--backend odp without

a key exits 2 naming the variable instead of answering from another source)

(FileWrapperClient, alias PEDSHelper): status summary, transactions,

office-action events, prosecution statistics, continuity, assignments

prosecution history, health check with the next Section 8/9 deadline; keyless

TSDR status page by default, TSDR API with USPTO_TSDR_API_KEY

The keyed ODP/TSDR paths were checked against the ODP OpenAPI spec and live endpoint

routing (401 without a key); run them with your own key before relying on them.

Task 1: Searching Patents

Keyless (default): python scripts/uspto_public.py search '<query>' --limit 50 — see

"Keyless Routes". .as. matches the assignee printed at grant; for later ownership

changes read the patent's Google Patents legal events (Task 4).

With an ODP key, POST a JSON body to https://api.uspto.gov/api/v1/patent/applications/search:

import os, requests

body = {
    "q": 'applicationMetaData.inventionTitle:"lidar"',
    "filters": [{"name": "applicationMetaData.applicationTypeLabelName", "value": ["Utility"]}],
    "rangeFilters": [{"field": "applicationMetaData.grantDate",
                      "valueFrom": "2024-01-01", "valueTo": "2024-12-31"}],
    "sort": [{"field": "applicationMetaData.grantDate", "order": "desc"}],
    "pagination": {"offset": 0, "limit": 25},
}
r = requests.post("https://api.uspto.gov/api/v1/patent/applications/search",
                  headers={"X-API-KEY": os.environ["USPTO_ODP_API_KEY"]}, json=body, timeout=60)
for rec in r.json().get("patentFileWrapperDataBag", []):
    meta = rec["applicationMetaData"]
    print(rec["applicationNumberText"], meta.get("patentNumber"), meta.get("inventionTitle"))

The query language is Solr-like (field:value, AND/OR/NOT, wildcards,

quoted phrases). Useful applicationMetaData fields: inventionTitle,

patentNumber, filingDate, grantDate, applicationStatusDescriptionText,

firstApplicantName, firstInventorName, cpcClassificationBag,

groupArtUnitNumber, examinerNameText. A search with no matches returns HTTP

404 ("No matching records found"), not an empty 200. The file wrapper holds

bibliographic data only — not claims or abstracts.

references/patentsearch_api.md documents the offline PatentsView PatentSearch

API (query operators, fields) for reading older code and for when USPTO restores

it; references/usage_examples.md (Task 1) has worked code.

Task 2: Retrieving Patent Examination Data

Keyless: resolve the application to its grant or publication (`uspto_public.py app

16/123,456` → US 10902286 B2, filed 2018-09-06, granted 2021-01-26), then WebFetch its

Google Patents page and read the "Legal events"

STPP/STCF rows (e.g. "NON FINAL ACTION MAILED", "FINAL REJECTION MAILED", "NOTICE OF

ALLOWANCE MAILED", "PATENTED CASE"). Count rejections from them only as a lower bound —

they are status snapshots, and some actions appear only as the response that followed

them — and compute pendency from the filing and grant dates. The full transaction list

(event codes below) needs the ODP key:

GET https://api.uspto.gov/api/v1/patent/applications/{applicationNumberText}/transactions

returns eventDataBag[] items of {eventCode, eventDescriptionText, eventDate};

/meta-data returns status, dates, examiner, and art unit. scripts/peds_client.py

wraps these (get_status_summary, get_transaction_history,

get_office_actions, analyze_prosecution, get_continuity, get_assignments).

Common transaction codes: CTNF (non-final rejection), CTFR (final

rejection), NOA (notice of allowance), WRIT (response filed), ISS.FEE

(issue fee), ABND (abandoned), AOPF (office action mailed). Application

status codes (not event codes) are listed by GET /api/v1/patent/status-codes.

references/peds_api.md covers transaction codes and prosecution analysis;

its PEDS/library sections are historical.

Task 3: Searching and Monitoring Trademarks

Keyless: the TSDR status page

python scripts/uspto_public.py trademark 87654321 (or `trademark_client.py --health

87654321) reads https://tsdr.uspto.gov/statusview/sn87654321` — the page behind the

TSDR web app — and returns mark, TM5 status descriptor, status text and date,

filing/registration dates, owner, goods/services with classes and first use, and the

prosecution history. --health adds alerts and the next Section 8 / Sections 8 & 9

deadline. Verified: 87654321 = BENTOSTACK, Reg. 5553479 (2018-09-04), LIVE, Sections 8

& 15 accepted 2025-01-28, next renewal due 2028-09-04.

Using the TSDR API (optional key)

GET https://tsdrapi.uspto.gov/ts/cd/casestatus/sn{serial}/info (or

rn{registration}) returns the ST96 XML status record; casedocs/{caseid}/info

lists the case documents, and .../content.pdf / download.zip fetch them

(4 per minute). The scripts/trademark_client.py TrademarkClient looks up

marks by serial or registration number, fetches status, runs

check_trademark_health, and supports portfolio monitoring.

Common statuses: REGISTERED, PENDING, PUBLISHED FOR OPPOSITION,

ABANDONED, CANCELLED, SUSPENDED, REGISTERED AND RENEWED.

See references/usage_examples.md (Task 3) for worked code and

references/trademark_api.md for status codes, prosecution history, and

ownership tracking.

Task 4: Tracking Assignments and Ownership

Keyless: WebFetch the patent's Google Patents page (https://patents.google.com/patent/US11234567B2/en)

and read the "Legal events" rows with code AS — each gives the recorded date, owner

(assignee), assignors, conveyance and reel/frame (verified: US11234567B2 → assignment

from the inventors to SharkNinja Operating LLC, reel/frame 047902/0718; security interest

to Bank of America, N.A., 064600/0098, 2023-07-20). Report reel/frame so the record can be

checked at USPTO.

The Assignment Search API host (assignment-api.uspto.gov) is gone. With an ODP key, for a given

application, GET https://api.uspto.gov/api/v1/patent/applications/{app}/assignment

returns assignmentBag[] with reelAndFrameNumber, conveyanceText,

assignmentRecordedDate, assignorBag, and assigneeBag

(scripts/peds_client.py --assignments {app}). For company-wide ownership

questions use the assignment datasets in the ODP bulk-data catalog.

Common conveyance types: ASSIGNMENT OF ASSIGNORS INTEREST (ownership

transfer), SECURITY AGREEMENT, MERGER, CHANGE OF NAME, `ASSIGNMENT OF

PARTIAL INTEREST`.

Task 5: Office Actions, Citations, and PTAB (ODP key)

No verified keyless route; without a key, say so and offer what the keyless routes give

(cited US references from uspto_public.py doc, status events from Google Patents).

statute 101/102/103/112/double patenting, and AI-extracted enriched citations)

are served from the ODP host as form-encoded POSTs with a Lucene criteria

string, e.g. criteria=patentApplicationNumber:12190351, start=0,

rows=25, to https://api.uspto.gov/api/v1/patent/oa/oa_rejections/v2/records.

decisions have ODP search endpoints (table above).

developer.uspto.gov; look for them in the ODP bulk-data catalog.

references/additional_apis.md describes what each dataset contains and how to

combine them.

Complete Analysis Example

For full patent intelligence: find the application through Patent File Wrapper

search, pull /meta-data and /transactions for prosecution history,

/continuity for the family, /assignment for ownership, then the office-action

rejections API for the grounds of rejection. references/usage_examples.md

(Complete Analysis Example) has a worked version.

Best Practices

  1. Keys (optional): keep ODP and TSDR keys in environment variables, never in code

or version control; they are different keys sent in different headers.

  1. Rate limits: TSDR allows 60 requests/minute per key (4/minute for PDF/ZIP);

back off exponentially on HTTP 429 for every USPTO API.

  1. Coverage: Patent File Wrapper holds applications filed from 2001-01-01;

use bulk data for older patents and for claims/description full text.

  1. Data handling: many fields are absent for pending or older applications —

handle missing keys, and parse dates as YYYY-MM-DD strings.

  1. Reproducibility: ODP is refreshed daily; record the query date with results.

Resources

Reference Files

Scripts

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.