Skip to main content
2 posts
Last seen: 06/03/2021 - 00:15
Joined: 05/31/2021 - 05:10
Any best practice to follow to hit the patents endpoint api?

I am sorry if this question is open ended!

I am running a code in python using requests module to get patents data for more than 500 organizations, I had not set any other criteria in the url other than the organization name and I have set the per page parameter to 10,000.

I am getting error 500 while running the loop, I am using try except block to skip errors and continue to query for further companies and it works fine for further companies. 

I ran the loop multiple times and it turns out the error 500 occurs when the organization has large number of patents data but the error is not fixed for a particular organization, can occur while querying for any organization with huge patents data.

What should I do to avoid running into this error?

Please let me know if I need to provide any more details for better understanding of the problem statement. Thanks!

Role: administrator
Last seen: 06/09/2021 - 09:00
Joined: 10/21/2020 - 07:51
Hello !  Our best…

Hello ! 

Our best recommendation is to reduce the size of your query. We are making changes to the backend of PatentsView to better manage the increasing size of the data, however, these revisions are set to begin being released over the summer. 


PatentsView Team