I am trying to fetch patent data with the "patentsview" package in R but I am always getting an error and I couldn't find the solution anywhere. Here's my code -
query <- with_qfuns(
begins(cpc_subgroup_id = 'G06N'),
gte(patent_year = 2020)
# Create a list of fields
# get_fields(endpoint = "patents")
fields <- c(
# Send an HTTP request to the PatentsView API to get the data
pv_res <- search_pv(query = query, fields = fields, all_pages = TRUE)
The output is -
Error in xheader_er_or_status(resp) : Not Found (HTTP 404).
What am I doing wrong here? And what is the solution?