Issue with HTTP API on Scrapy Cloud

Posted about 4 years ago by daynetran

Post a topic
Answered
d
daynetran

In Getting Started, I am asked to authenticate using my API key in order to run a spider with curl (the end goal is for a client user on my website to be able to prompt the spiders to run by clicking on a command). However, the websites http://storage.scrapinghub.com/foo and https://storage.scrapinghub.com/foo?apikey=APIKEY (with my API key) return '503 Service Unavailable: No server is available to handle this request.'

0 Votes

nestor

nestor posted about 4 years ago Admin Best Answer

Those are not real endpoints (therefore the "foo" endpoint), the getting started page is only showing you 2 ways of passing your credentials for authentication.

The Jobs API using the /run endpoint is what you're looking for  https://doc.scrapinghub.com/api/jobs.html#run-json 

0 Votes


1 Comments

nestor

nestor posted about 4 years ago Admin Answer

Those are not real endpoints (therefore the "foo" endpoint), the getting started page is only showing you 2 ways of passing your credentials for authentication.

The Jobs API using the /run endpoint is what you're looking for  https://doc.scrapinghub.com/api/jobs.html#run-json 

0 Votes

Login to post a comment