CA
Crawlee & Apify8mo ago
dependent-tan

ApifyApiError:API end-point can only be accessed using the following HTTP methods: OPTIONS,GET, PUT

when I call the start method in actor.py of the apify_client, the HTTP request method is 'POST', but it throws an error 'This API end-point can only be accessed using the following HTTP methods: OPTIONS, GET, PUT, DELETE'. Has anyone encountered this issue? I would like to know how to resolve it.
No description
No description
2 Replies
Hall
Hall8mo ago
View post on community site
This post has been pushed to the community knowledgebase. Any replies in this thread will be synced to the community site.
Apify Community
deep-jade
deep-jade8mo ago
Hi @cyyue The starting of run is indeed a POST https://docs.apify.com/api/v2#tag/ActorsRun-actor-synchronously I just tried this and it works:
apify_client = ApifyClient('TOKEN')
run = apify_client.actor('compass/crawler-google-places').start()
print(run)
apify_client = ApifyClient('TOKEN')
run = apify_client.actor('compass/crawler-google-places').start()
print(run)
Apify API | Apify Documentation
UPDATE 2024-07-09: We have rolled out this new Apify API Documentation. In case of any issues, please report here. The old API Documentation is still available here. The Apify API (version 2) provides programmatic access to the Apify platform. The API is organized around [RESTful](https://en.wikipedia.org/wiki/...

Did you find this page helpful?