Bibliographic Data search not working from our application

This space is made available to users of Open Patent Services (OPS) web-service and now also to users of EPO’s bulk data subscription products such as 14. EPO worldwide bibliographic database (DOCDB), 14.11 EPO worldwide legal status database (INPADOC), 14.12 EP full text data, 14.1 EP bibliographic data (EBD)and more.

Users can ask each other questions, exchange experiences and solutions, post ideas. The moderator will use this space to announce changes or other relevant information.
Post Reply

MerinP
Posts: 9
Joined: Tue Nov 07, 2017 3:59 pm

Bibliographic Data search not working from our application

Post by MerinP » Thu Jun 27, 2024 9:19 am

Hi,

We have been using the OPS API integrated with our web application. The Bibliographic Data search stopped working for the last couple of days with an error HTTP 400 Bad Request.

https://ops.epo.org/3.2/rest-services/p ... o?q=pa=[US] and pd within "20231030,20231105" and ic any "A01,A21,A22,A23,A24,A41,A42,A43,A44,A45" and pn=WO&range=1-100

The same URL works fine when we try via the OPS portal
Can someone please help me sort out the issue?

Thanks,
Merin


martien
Posts: 32
Joined: Tue Jul 16, 2013 1:45 pm
Contact:

Re: Bibliographic Data search not working from our application

Post by martien » Tue Jul 09, 2024 1:46 pm

Hi Merin,

without being sure, that the query will be adapted before send out, the query will not work.
Normally this is done by using some module.
Your request will be then something like

Code: Select all


https://ops.epo.org/3.2/rest-services/published-data/search/biblio?q=pa=[US]%20AND%20pd%20within%20%2220231030,20231105%22%20AND%20ic%20any%20%22A01,A21,A22,A23,A24,A41,A42,A43,A44,A45%22%20AND%20pn=WO&range=1-100'

In CQL e.g.:

"((pa = [US] AND pd within \"20231030,20231105\") AND ic any A01,A21,A22,A23,A24,A41,A42,A43,A44,A45) AND pn = WO AND range=1-100"

So my advice is to check/debug the URL just before you start the request.

If you can use your program with curl, you probably may try something like (in my system)

Code: Select all


curl -X POST --data "pretty=1" http://127.0.0.1:80xx/api/3.2/published-data/search/biblio?'q=pa=\[US\]%20AND%20pd%20within%20"20231030,20231105"%20AND%20ic%20any%20"A01,A21,A22,A23,A24,A41,A42,A43,A44,A45"%20AND%20pn=WO'
Here you see, that "[US]" needs special attention.

Hope it helps,

Martien


MerinP
Posts: 9
Joined: Tue Nov 07, 2017 3:59 pm

Re: Bibliographic Data search not working from our application

Post by MerinP » Tue Jul 09, 2024 1:50 pm

Hi Martien,

Thanks for your reply.
Yes, I eventually realized that the URL must be encoded before sending. Its now working.

Regards,
Merin


Post Reply