Automation and scraping · Independent · 20 Oct 2026

smcronin/uspto-cli

Agent-ready CLI for the USPTO Open Data Portal API

← Automation and scraping
USPTO CLI: patent and trademark search. Searches patents and trademarks from the terminal.

In simple English

This tool lets you search for patents and trademarks straight from your terminal window. You can look up patent applications, download official documents, and check trademark statuses without opening a web browser. It is designed to be easily used by automated scripts and coding agents. You need to get free API keys from the patent office website to make it work. The software is free to download and run.

What it is

A single-binary command-line interface written in Go that connects to the USPTO Open Data Portal, Trademark Search, and TSDR APIs. It provides structured JSON and NDJSON outputs, automatic pagination, built-in rate limiters, and document bundle generation.

What it is good for

Solo builders, researchers, and patent analysts who want to build automated workflows or search intellectual property records directly from scripts and terminal commands.

Stars42
LicenceMIT
Latestv0.3.0 (2026-08-06)checked 20 Oct 2026
Last code change2026-08-06
Written inGo
Setup effort
2 / 5
Payoff
4 / 5
Good
  • Single binary with zero runtime dependencies.
  • Structured JSON and NDJSON output formats for automation.
  • Built-in rate limiters coordinate across processes to prevent blocked requests.
Watch for
  • Requires obtaining separate API keys from the patent office for different services.
  • Strict download limits on trademark PDF and ZIP files.
  • Go language requires manual compilation or downloading pre-built binaries.
Replaces

Manual web searches on the USPTO website and custom scripts for downloading patent PDFs.

Works well with

jq for parsing JSON output streams in terminal pipelines.

Similar repositories
Also reviewed on Repo Radar
  • scrapy/scrapy65k stars

    A Python framework for fetching and parsing large numbers of web pages.

  • PrefectHQ/prefect24k stars

    Adds scheduling, retries and a run history to Python functions you already have.

  • alirezamika/autoscraper8.1k stars

    A Python scraper that learns what to extract from one example you give it.

Install
go install github.com/smcronin/uspto-cli/cmd/uspto@latest

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Business Operations & Legal › Company Formation & Legal › Trademarks.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.