# Use project locally by api

**URL:** <https://discuss.huggingface.co/t/use-project-locally-by-api/28060>\
**Category:** Beginners\
**Created:** [December 18, 2022, 12:42pm UTC](https://discuss.huggingface.co/t/use-project-locally-by-api/28060 "2022-12-18T12:42:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uranity](https://avatars.discourse-cdn.com/v4/letter/u/9de0a6/32.png) [@uranity](https://discuss.huggingface.co/u/uranity)\
**Post date:** [December 18, 2022, 12:42pm UTC](https://discuss.huggingface.co/t/use-project-locally-by-api/28060/1 "2022-12-18T12:42:59Z")

</div>

Hi,  
It is a possibility to use api (for not my project) and get results locally? I tried but always give 404.

I used:

```auto
r = requests.post(
    url='https://some-project.hf.space/+/api/predict/',
    json={"key": "values"}
)

r.json()

```

But always returns 404. Maybe I don not understand how it may works? It is weird than in api code there is no information about my account api token or something like in replicate.

I understood that I can use huggingface api like replicate api.

Please give me advice 🙂

Best regards,  
Tom
