Skip to main content
POST
/
api
/
huggingface
/
papers
/
trending
/huggingface/papers/trending
curl --request POST \
  --url https://api.anysite.io/api/huggingface/papers/trending \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "date": "2025-01-15"
}
'
[
  {
    "id": "<string>",
    "url": "<string>",
    "title": "<string>",
    "@type": "@huggingface_paper",
    "summary": "<string>",
    "authors": [],
    "published_at": "<string>",
    "upvote_count": 123,
    "comment_count": 123,
    "discussion_id": "<string>",
    "ai_summary": "<string>",
    "ai_summary_model": "<string>",
    "ai_keywords": [],
    "project_page": "<string>",
    "github_repo": "<string>",
    "image": "<string>",
    "submitted_by": "<string>",
    "linked_models": [],
    "linked_datasets": [],
    "linked_spaces": [],
    "num_total_models": 123,
    "num_total_datasets": 123,
    "num_total_spaces": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max result count

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
date
string | null

Restrict to a single day (YYYY-MM-DD)

Example:

"2025-01-15"

Response

Successful Response

id
string
required
url
string
required
title
string
required
@type
string
default:@huggingface_paper
summary
string | null
authors
HuggingfacePaperAuthor · object[]
published_at
string | null
upvote_count
integer | null
comment_count
integer | null
discussion_id
string | null
ai_summary
string | null
ai_summary_model
string | null
ai_keywords
string[]
project_page
string | null
github_repo
string | null
image
string | null
submitted_by
string | null
linked_models
HuggingfaceLinkedRepo · object[]
linked_datasets
HuggingfaceLinkedRepo · object[]
linked_spaces
HuggingfaceLinkedSpace · object[]
num_total_models
integer | null
num_total_datasets
integer | null
num_total_spaces
integer | null