PatentRef

Data version 20261117.2, as of 2026-11-17: the build these pages were checked against. API version 1.26.0.

Problems and parts

PatentRef's addition, experimental (S1-D): for each patent, the problem it states and the parts it names, each quoted with its place in the text, and links to other patents whose claims name the same part. Deterministic rules over the published text; no language model runs in any request. Every answer says "experimental": true, and the shape can change from one release to the next while the rules are checked.

Routes
GET /api/v1/structure/units/{patent_id}/, GET /api/v1/structure/relations/{patent_id}/, GET /api/v1/structure/locate/, GET or POST /api/v1/structure/units/
Key
X-Api-Key, as every data path; each call counts toward the monthly allowance
Built
units when they are asked for, from the long-text file; the links from a structure file built once from that file and attached read only
Versions
s1d_version (X-S1D-Version), data_version (X-Data-Version), text_data_version (X-Text-Data-Version) and, for the links and the units query, structure_data_version
Machine-readable
the operations in openapi.json (operationIds StructureUnits, StructureRelations, StructureLocate, StructureUnitsQuery)

Example

curl -s -H "X-Api-Key: $KEY" https://patentref.io/api/v1/structure/units/4063763/
import os, requests

base_url = "https://patentref.io"
headers = {"X-Api-Key": os.environ["PATENTREF_KEY"]}
r = requests.get(base_url + "/api/v1/structure/units/4063763/", headers=headers)
r.raise_for_status()
ans = r.json()
for u in ans["units"]:
    loc = u["locator"]
    back = requests.get(base_url + "/api/v1/structure/locate/", params=loc, headers=headers).json()
    assert back["text"] == u["text"]  # every quote is the text at its locator
    print(u["type"], u.get("part"), loc["field"], loc["start"], loc["end"])

How S1-D reads a patent

The units of one patent

FieldTypeNote
errorboolean
patent_idstring
patent_unit_idstring
s1d_versionstringThe version of the S1-D rules (a string; the claim tree's structure_version is another field)
generatorstringThe S1-D package and the claim parser it runs on
data_versionstring
text_data_versionstring
as_ofstring
experimentalboolean
unitslist of objects
relationslist of objects
countsobject
none_foundlist of stringThe unit types with no unit: the rules found none, not that the patent has none
texts_readobject
left_outintegerItems the quote check took out (0 in normal service)
unreadlist of objectsWhat could not be read and why (empty for almost every patent)
truncatedboolean
omittedobject

A unit

FieldTypeNote
unit_idstringUS<patent_id>-k<n> for a part, US<patent_id>-p<n> for a stated problem
typestring: Component, StatedProblem
partstringThe part's normalized form; null when key_withheld says why the rules give none
textstringThe quote: the text at the locator, checked on the server
term_idstringThe claim tree's term id of the mention that introduces the part
locatorobjectWhere a quote is: the text of field at sequence, from start to end
cuestringThe cue rule that found a stated problem
sectionstringThe heading a stated problem sits under (none, unnamed, field, background, summary, objects, effects, drawings, detailed or other)
key_withheldstring: longer phrase, frequent word, unsure endWhy a part has no normalized form
s1d_versionstringThe version of the S1-D rules (a string; the claim tree's structure_version is another field)

The links

FieldTypeNote
errorboolean
patent_idstring
patent_unit_idstring
s1d_versionstringThe version of the S1-D rules (a string; the claim tree's structure_version is another field)
generatorstringThe S1-D package and the claim parser it runs on
data_versionstring
text_data_versionstring
as_ofstring
experimentalboolean
structure_data_versionstringThe structure file: its text data version and its rules version
relstring: names_same_part, recites, states
relationslist of objects
countinteger
next_afterarrayo.after for the next page of links
link_lookupobject
left_outinteger
unreadlist of objectsWhat could not be read and why (empty for almost every patent)

A link

FieldTypeNote
srcstring
relstring
dststring
shared_countintegerHow many parts the two patents share (all of them, listed or not)
shared_partslist of objects
rankinteger
s1d_versionstringThe version of the S1-D rules (a string; the claim tree's structure_version is another field)

The units query

FieldTypeNote
errorboolean
unitslist of objects
countinteger
total_hitsinteger
total_hits_exactboolean
budget_reachedboolean
next_afterarray
s1d_versionstringThe version of the S1-D rules (a string; the claim tree's structure_version is another field)
generatorstring
data_versionstring
text_data_versionstring
structure_data_versionstring
as_ofstring
experimentalboolean

Errors keep the upstream form, with X-Status-Reason and X-Status-Reason-Code; send Accept: application/problem+json for RFC 9457 problem details. The codes are on the keys, limits and errors page, at /docs/errors/NOT_FOUND and at /docs/errors/ERR_NO_STRUCTURE_FILE.