Python script queries Google Patents without an API key

Google Patents has no official API, and the paid SerpAPI route or free official options each cover only a single patent office. The Google Patents site loads its results from a JSON endpoint that accepts plain HTTP requests without a key. The article shows a Python implementation using only the standard library, along with the filters the endpoint accepts and what its responses look like. The results arrive nested in two levels and contain HTML-escaped text, which the author cleans with a regex and html.unescape. Keyword matching is loose rather than exact-phrase, so the author recommends reviewing top results and refining queries instead of relying on the total count.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in