Kevin LewisK
Apify & Crawleeโ€ข2w agoโ€ข
4 replies
Kevin Lewis

Standby Actors - can they be public without auth?

๐Ÿ–ฅ๏ธPlatform๐Ÿ› ๏ธAPI
Use case: I want any user to be able to hit <url>/random and it work without needing an API key.
Solution
This is not supported, yet.
A possible workaround is creating a scoped token and distribute it together with the URL.
Notice that a token with the permission to run the Actor would allow running it both in Standby and regular modes: there is currently no way of limiting it to one of the two.
Also, the platform does not allow specifying custom rate limits, firewalls, or similar, so having an actor which is publicly accessible could drain your account's resources.

Create a scoped token: https://docs.apify.com/platform/integrations/api#api-tokens-with-limited-permissions
Add the token to the URL as a path parameter: https://docs.apify.com/platform/actors/running/standby#how-do-i-authenticate-my-requests
Learn how to integrate with Apify via API.
API integration | Platform | Apify Documentation
Use an Actor as a real-time API server.
Standby mode | Platform | Apify Documentation
Was this page helpful?