Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter on created-date #555

Open
priyam-maheshwari opened this issue Apr 29, 2021 · 1 comment
Open

Filter on created-date #555

priyam-maheshwari opened this issue Apr 29, 2021 · 1 comment
Assignees

Comments

@priyam-maheshwari
Copy link

I want to use Crossref API to get any new content added for a journal the day before. I have a script which runs once daily and checks for any content added the day before for this journal.
I am thinking of using created-date timestamp filter for this
https://api.crossref.org/journals/2572-1054/works?filter=from-created-date:2021-04-23,until-created-date:2021-04-23

I am not using published-online because it seems it's possible when the content is submitted to Crossref the published-online date is in past and therefore it might happen when I look for particular date range, that paper hasn't been added and then it might be added 2 days later but then the published-online date I am filtering on is only yesterday's timestamp.

@ppolischuk
Copy link
Collaborator

Hello. It sounds like from-created-date and until-created-date are the right date filters to use in your case.

It's possible that processing delays might prevent content appearing in the Crossref REST API on the created-date timestamp, so if you're looking for everything with a created date of 2021-04-23 on 2021-04-24, you might not retrieve everything.

The incident you mentioned in your third bullet point is an example of the above. We've since resolved the issue, and I wouldn't have expected 2021-04-23 to be impacted by this incident. It doesn't look like more than one record has been deposited in that journal since the beginning of the year. https://api.crossref.org/journals/2572-1054/works?filter=from-created-date:2021-01-01,until-created-date:2021-04-23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants