Forum

PQ get data through...
 
Notifications
Clear all

PQ get data through web API

3 Posts
2 Users
0 Reactions
59 Views
(@jingjing3991)
Posts: 3
Active Member
Topic starter
 

Hello Mynda,

I would like to extract the data of a list of DOIs from the unpaywall API - https://unpaywall.org/products/api. I can fetch one record each time using the sample query: https://api.unpaywall.org/v2/10.1038/nature12373?email=YOUR_EMAIL , is it possible to batch process a list of DOIs using PQ? (in this example, doi is 10.1038/nature12373)

Thanks,

Jingjing

 
Posted : 06/07/2022 12:07 am
(@catalinb)
Posts: 1937
Member Admin
 

Hi Jingjing,

If you have a table with DOI strings, add a new column calling a custom function (built based on the sample query and pass to the function the DOI parameter).

Function call will look like this in the new column: GetData([DOI])

In the custom function, you can use parameters to build the string used: "https://api.unpaywall.org/v2/" & DOI & "[email protected]"

 
Posted : 06/07/2022 2:11 am
(@jingjing3991)
Posts: 3
Active Member
Topic starter
 

Thanks, Catalin. 

I added a custom column, used the function Json.Document(Web.Contents()), and retrieved the records for all the DOIs. 

-Jingjing

 
Posted : 06/07/2022 12:01 pm
Share: