Apify

Apify and Crawlee Official Forum

b
F
A
J
A

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.
Attachments
image_2.webp
image.webp
L
1 comment
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:
Plain Text
apify_client = ApifyClient('TOKEN')
run = apify_client.actor('compass/crawler-google-places').start()
print(run)
Add a reply
Sign up and join the conversation on Discord
Join