Skip to content

Commit

Permalink
feat: add new api playground to the documentation (#1073)
Browse files Browse the repository at this point in the history
* feat: add new api playground to the documentation

* update with correct link the hub api image

---------

Co-authored-by: Esteves Enzo <[email protected]>
Co-authored-by: Lucain <[email protected]>
  • Loading branch information
3 people authored Nov 2, 2023
1 parent d58bfa1 commit cb92f23
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/hub/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ We have open endpoints that you can use to retrieve information from the Hub as

The base URL for those endpoints below is `https://huggingface.co`. For example, to construct the `/api/models` call below, one can call the URL [https://huggingface.co/api/models](https://huggingface.co/api/models)

## The Hub API Playground

Want to try out our API?
Try it out now on our [Playground](https://huggingface.co/spaces/enzostvs/hub-api-playground)!

<div class="flex justify-center">
<img class="w-full object-contain" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/hub-api-playground.png"/>
</div>

## Repo listing API

The following endpoints help get information about models, datasets, Spaces, and metrics stored on the Hub.
Expand Down

0 comments on commit cb92f23

Please sign in to comment.