Hi,
I have been using the Patents View API for a few months to run a simple code:
code = ["B60W", "A44C"]
year = ["2020"]
url = "https://api.patentsview.org/patents/query"
data = {
"q":{ "_and":[{"patent_year":year},{"cpc_group_id":code}]},
"f":["patent_number","patent_title","patent_abstract","patent_year","cpc_group_id"],
"s":[{"patent_title":"asc"}],
"o":{"page":1,"per_page":10000}
}
resp= requests.post(url, json=data)
text = resp.json()
Today I received this JSONDecodeError:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Looking at the URL in my browser it appears the API url is down (502 Bad Gateway), is this the issue or has there been an update to the query tool?