Access my private space endpoints without access token

How can I make hf space be private (I don’t want to expose my files) but at the same time not require any access token/authorization when i am making api calls?

1 Like

Because of security policies, you can’t have a private Space accessible via API without authentication on Hugging Face. This ensures that only authorized users can access protected content and features.
Here’s a tip: Keep your Space public and handle sensitive data externally or through environment variables (private). This way, you can offer API access without authentication while keeping your private information safe.

1 Like

Alternatively, you could scrape the data using a browser component.:sweat_smile: This is a very difficult method. Whether you use the method above or this method, it is a method that is quite close to hacking.

Is there a production HF spaces alternative?