Basic question about the text query endpoint API

50 views
Skip to first unread message

Aaron Tay

unread,
Apr 20, 2021, 10:17:34 PM4/20/21
to Unpaywall discussion
Hi all

Sorry for the basic question on the API

But i was trying out the new text query API endpoint


I know it ranks the results by score but is there a way to get mre results than what is displayed? It seems to show a maximum of 50 results. Is there a way in the API to get the next 50? 

Or is this not possible via the API?

Thanks

Eric Jeangirard

unread,
Apr 22, 2021, 2:55:37 AM4/22/21
to Aaron Tay, Unpaywall discussion
Hi Aaron

According to the FAQ https://support.unpaywall.org/support/solutions/articles/44001977396-how-do-i-use-the-title-search-api- , it does not seem possible to get more than 50 results in the API : 
"Each query returns a maximum of 50 results, no matter how many matches there are. The result set is not paginated. If you need more results, get in touch with us."

Eric

--
You received this message because you are subscribed to the Google Groups "Unpaywall discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unpaywall+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unpaywall/c48bce73-ff19-441e-b731-ab9d84a11395n%40googlegroups.com.

ric...@ourresearch.org

unread,
Apr 22, 2021, 12:01:12 PM4/22/21
to Unpaywall discussion
Hi,

Glad to see the title search getting some use! Like the FAQ says, it's a bare-bones implementation meant to gauge interest and see what features people actually want. Thanks for looking up the FAQ, Eric.

Aaron, we just added pagination and updated the FAQ and API docs. Add a page argument to get results after the first 50. The pagination is stateless; there's no session token to hold on to. It's easier to use, but in the unlikely event that new matching articles are added while you're paging, it's possible to skip or repeat results.

Richard


Doug Bostrom

unread,
Apr 22, 2021, 7:26:30 PM4/22/21
to Unpaywall discussion
I'll just chime in and say that our organization is also using title search and thank you very much for that. :-)

Aaron Tay

unread,
Apr 23, 2021, 12:00:05 AM4/23/21
to Unpaywall discussion
Hi Richard

Thanks for adding this. This is exactly what I was hoping for..

Yes simple is good :) 

Reply all
Reply to author
Forward
0 new messages