I'm collecting patenting data for a study and am having new issues with the legacy API that I'm wondering if someone knows how to solve. I created a package (https://github.com/nateapathy/patentsview2) to easily query the API via CPC Subgroup ID (which is the level of observation for my study). When I search for relatively small CPC Subgroup IDs (e.g., A21C), I don't have any issues. But with larger ones (e.g., A01D) I get a 504 Gateway Timeout error, even though I've tried to make the pagination more manageable (1000 results per page).
Any insights on how to get this to work for larger CPC Subgroup IDs would be much appreciated!
To recreate this yourself locally, here's the R code
devtools::install_github("nateapathy/patentsview2")
library(patentsview2)
patents_view(cpc="A21C",from="2000-01-01") # should return the data frame without issue
patents_view(cpc="A01D",from="2000-01-01") # throws 504 gateway timeout error