From 0cad1eeb89a2b602f17f9fdbd25eee3af03b8ae8 Mon Sep 17 00:00:00 2001 From: Omar Sanseviero Date: Wed, 19 Jun 2024 10:19:00 +0200 Subject: [PATCH] Document paper endpoints (#1310) * Update api.md * Update docs/hub/api.md Co-authored-by: Julien Chaumond --------- Co-authored-by: Julien Chaumond --- docs/hub/api.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/hub/api.md b/docs/hub/api.md index 7b9cd54dc..f3fb341e2 100644 --- a/docs/hub/api.md +++ b/docs/hub/api.md @@ -161,6 +161,7 @@ This is equivalent to `huggingface_hub.space_info(repo_id, revision)`. ## Repo API The following endpoints manage repository settings like creating and deleting a repository. + ### POST /api/repos/create Create a repository. It's a model repo by default. @@ -258,6 +259,18 @@ headers = { "authorization" : "Bearer $token" } This is equivalent to `huggingface_hub.whoami()`. +## Paper Pages API + +The following endpoint gets information about a paper. + +### GET /api/arxiv/{arxiv_id}/repos + +Get all the models, datasets, and Spaces that refer to a paper. + +### GET /api/daily_papers + +Get the daily papers curated by AK and the community. It's the equivalent of [https://huggingface.co/papers](https://huggingface.co/papers). + ## Collections API Use Collections to group repositories from the Hub (Models, Datasets, Spaces and Papers) on a dedicated page.