Question on a particular name

76 views
Skip to first unread message

Pietro Dona

unread,
Sep 16, 2022, 2:50:27 PM9/16/22
to arXiv API
I am trying to use the API to list all the papers of a "consortium" on a website using JS. I have a problem with formulating the  correct query string. I need all the papers of a set of authors (OR) in a certain date range.

e.g. All the papers by me OR one of my collaborators are

http://export.arxiv.org/api/query?search_query=au:%28%22Piet…o+Dona%22+OR+%22Pietropaolo+Frisoni%22%29+AND+submittedDate:[202001010000+TO+20220916201850]&start=1&sortBy=submittedDate&sortOrder=descending

My problems come when I try the same logic for my colleague


The query is empty but the standard search is not 


Can anyone point at my mistake?

Thank you very much,
Pietro

Lukas Schwab

unread,
Sep 16, 2022, 4:07:57 PM9/16/22
to arxi...@googlegroups.com
Does this (without quotes/parentheses around the author name) do what you want?


I think the issue has something to do with the grouping/quoting. I'm not sure of the API's rules for having au: key a boolean OR expression. It might be easier to group a several separate au: terms:

(au:One Author OR au:Another Author) AND submittedDate:...

Hard to know what solves the problem without knowing what papers you expect to see. Hope this helps!
Lukas

--
You received this message because you are subscribed to the Google Groups "arXiv API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arxiv-api+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/arxiv-api/7cac93a9-9928-4bbc-b260-7d99a5673205n%40googlegroups.com.

jake

unread,
Sep 16, 2022, 4:35:30 PM9/16/22
to arXiv API

Author name constructions work differently in the API than they do in the normal arXiv search. This is partly because they're based upon our older search. It is most often correct to use a "Surname_FirstInitial" construction. For hyphenated names, use an underscore character. The simple query of: 


does return that author's list of papers. 

Regards,
-Jake Weiskoff (he/him) 
Senior Content & User Support Specialist  

Pietro Dona

unread,
Sep 19, 2022, 12:45:09 AM9/19/22
to arXiv API
Thank you very much, very helpful!
Reply all
Reply to author
Forward
0 new messages