Skip to main content
 
 
 
IN THIS SECTION
4 posts
powerxtreme
Last seen: 10/27/2021 - 05:59
Joined: 12/20/2017 - 05:00
Error in xheader_er_or_status(resp) : Not Found (HTTP 404).

Hi,

I am using patentsview of R for fetching data via patentsview API. Below is a script I used to pull patent data, it's used to work well, but now it's keeping prompting error message, Error in xheader_er_or_status(resp) : Not Found (HTTP 404). Could someone take a look at this?

 

library(patentsview)
library(dplyr)
library(visNetwork)
library(magrittr)
library(stringr)
library(knitr)
library(tidyverse)
library(readxl)

query <- 
  with_qfuns(
    and(
      contains(assignee_organization = "gopro"),
      contains(patent_type = "utility")
    )
  )

#querying patent data
patent_data <- search_pv(
  query = query,
  endpoint = "patents",
  fields = c("patent_number", "detail_desc_length"),
  all_pages = TRUE
)

Thanks,

Shuai

 

Russ
Last seen: 03/15/2024 - 23:34
Joined: 11/14/2017 - 22:15
dev package might help

Hi Shuai,

You might need the development version of the R package.  I have it and your code worked for me.  The api went from http to https a while back and some of the api's redirects may have been removed.  I don't know if the R package was ever updated to https or if it relied on the redirects.  The creator of the R package posted this a while back on using the development version:  https://patentsview.org/forum/7/topic/151#comment-178  You could try it and/or raise an issue in the R package repo.  I raised #17 on the http to https move and it's still open.

The api is supposed to be changing in June so the R package will need to be rebuilt sometime soon. See Upcoming Changes on https://patentsview.org/release-notes

Russ Allen

powerxtreme
Last seen: 10/27/2021 - 05:59
Joined: 12/20/2017 - 05:00
Thank you very much Russ, I…

Thank you very much Russ, I installed the development version and it worked now.

crew102
Last seen: 09/13/2021 - 21:26
Joined: 11/25/2019 - 12:02
Opps, yeah, forgot to…

Opps, yeah, forgot to release a new version after that fix was made. I'll wait until the June changes hit, then publish a new version on CRAN.