-
Notifications
You must be signed in to change notification settings - Fork 387
Update API documentation for daily papers #2065
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
Changes from 1 commit
31d909e
a6a0781
f7af62b
89c27bf
f80ce41
b3d8b14
15fcf2c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -462,6 +462,22 @@ Get the daily papers curated by AK and the community. It's the equivalent of [ht | |||||
|
|
||||||
| To filter on a particular date, simply pass the date like so: https://huggingface.co/api/daily_papers?date=2025-03-31. | ||||||
|
|
||||||
| Other keywords that are supported: | ||||||
|
|
||||||
| 1. `limit` - the number of pages returned | ||||||
| 2. `p` - the page number, for paging through results | ||||||
| 3. `submitter` - to filter by summitter | ||||||
tleyden marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| 4. `date`, `week`, `month` - for filtering by date range | ||||||
|
||||||
| 4. `date`, `week`, `month` - for filtering by date range | |
| 4. `date`, `week`, `month` - for filtering by date range |
of the paper release dates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't create the API, and it's not clear to me from the openapi docs. It could be either the paper release date, or the day it was featured on Daily Papers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to DeepWiki
The date parameter refers to when the paper was included in the daily papers on the Hub, not when it was written or originally submitted to arXiv. hf_api.py:1527-1528
This is confirmed by the PaperInfo dataclass, which has two distinct date fields:
published_at: The date the paper was published (on arXiv) hf_api.py:1513-1514
submitted_at: The date the paper appeared in daily papers on the Hub hf_api.py:1527-1528|
I will update it according to that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm it's the publishedAt property (internal link). Somewhat related PR: #1878.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how can they be sorted? by date or?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the openapi docs:
sortCopy link to sort
enum
default:
"publishedAt"
publishedAt
trending
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated this as well
tleyden marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems standalone so no need to number I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as in length of the paper or number of papers returned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, yeah that's what it should say.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated it