How do you get a detailed description text on a given patent?

481 views Asked by At

I am looking at PatentsView API and it's unclear how to retrieve the full text of a patent. It contains only the detail_desc_length not the actual detailed description.

I would like to preform the following on both the patent_abstract and the "detailed_desciption".

import httpx
url = 'https://api.patentsview.org/patents/query?q={"_and": [{"_gte":{"patent_date":"2001-01-01"}},{"_text_any":{"patent_abstract":"radar aircraft"}},{"_neq":{"assignee_lastknown_country":"US"}}]}&o:{"per_page": 1000}'
r=httpx.get(url)
r.json()
1

There are 1 answers

0
Parker Hancock On

You should take a look at patent_client! It's a python module that searches the live USPTO and EPO databases using a Django-style API. The results from any query can then be cast into pandas DataFrames or Series with a simple .to_pandas() call.

from patent_client import Patent

result = Patent.objects.filter(issue_date__gt="2001-01-01", abstract="radar aircraft")

# That provides an iterator of Patent objects that match the query.
# You can grab abstracts and detailed descriptions like this:

for patent in result:
    patent.abstract
    patent.description

# or you can just load it up in a Pandas dataframe:

result.values("publication_number", "abstract", "description").to_pandas()

# Produces a Pandas dataframe with columns for the patent number, abstract, and description.


A great place to start is the User Guide Introduction

Patent Client Logo

PyPI | GitHub | Docs

(Full disclosure - I'm the author and maintainer of patent_client)