Skip to content

Conversation

@horizon86
Copy link
Contributor

No description provided.

Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I don't think week or month queries work for the /api/daily_papers endpoint, see this implementation (Hugging Face internal).

They do work for the user-facing /papers URI.

cc @cfahlgren1

@horizon86
Copy link
Contributor Author

Actually, I don't think week or month queries work for the /api/daily_papers endpoint, see this implementation (Hugging Face internal).

They do work for the user-facing /papers URI.

cc @cfahlgren1

Thanks for your reply. I was just puzzled about why the weekly papers obtained through the API are different from those on the website, and the content for two weeks is exactly the same.

@pcuenca
Copy link
Member

pcuenca commented Aug 21, 2025

I removed the misleading line while we wait for @cfahlgren1 to confirm. Thanks for pointing this out @horizon86! 🙌

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@cfahlgren1
Copy link
Contributor

Actually, I don't think week or month queries work for the /api/daily_papers endpoint, see this implementation (Hugging Face internal).

You are correct, currently we don't support weekly / monthly through the API (however I can look at adding).

By default we return papers sorted by publishedAt, which you will usually find is an older date than submittedOnDailyAt

curl -s https://huggingface.co/api/daily_papers | jq '.[] | .paper | {publishedAt, submittedOnDailyAt}'
{
  "publishedAt": "2025-08-18T03:00:55.000Z",
  "submittedOnDailyAt": "2025-08-21T16:24:52.173Z"
}
{
  "publishedAt": "2025-08-20T09:40:06.000Z",
  "submittedOnDailyAt": "2025-08-21T10:32:37.009Z"
}

Let me know if this answers your question 🤗

@pcuenca
Copy link
Member

pcuenca commented Aug 21, 2025

Thanks @cfahlgren1 for the confirmation!

@pcuenca pcuenca merged commit 4b90235 into huggingface:main Aug 21, 2025
1 check passed
@horizon86
Copy link
Contributor Author

horizon86 commented Aug 22, 2025

Actually, I don't think week or month queries work for the /api/daily_papers endpoint, see this implementation (Hugging Face internal).

You are correct, currently we don't support weekly / monthly through the API (however I can look at adding).

By default we return papers sorted by publishedAt, which you will usually find is an older date than submittedOnDailyAt

curl -s https://huggingface.co/api/daily_papers | jq '.[] | .paper | {publishedAt, submittedOnDailyAt}'
{
  "publishedAt": "2025-08-18T03:00:55.000Z",
  "submittedOnDailyAt": "2025-08-21T16:24:52.173Z"
}
{
  "publishedAt": "2025-08-20T09:40:06.000Z",
  "submittedOnDailyAt": "2025-08-21T10:32:37.009Z"
}

Let me know if this answers your question 🤗

Thank you for your answer. If the API supports weekly/monthly papers someday, could you please comment here? Of course, it's perfectly fine if you don't comment. Thank you.🤗

@cfahlgren1
Copy link
Contributor

@horizon86
Copy link
Contributor Author

hi @horizon86 you should be able to do this now!

Thanks for your work and reply 🤗

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

Successfully merging this pull request may close these issues.

4 participants