Start a new topic
Answered

how to run scrapy cloud api run.json in postman rest api testing tool

Hi All,


I am trying to invoke scrapy cloud api "https://app.scrapinghub.com/api/run.json" in postman REST api testing tool to run spider job. but it is always throwing error as  "{"project":["This field is required."],"spider":["This field is required."],"status":"error","message":"project: This field is required."}".


i have used api method as POST and entered all required parameters like api, project and spider


Please find the attached screen shot for your reference.


Thanks,

Bala


Best Answer

POST URL is just https://app.scrapinghub.com/api/run.json

And the rest should go under x-www-form-urlencoded


Answer

POST URL is just https://app.scrapinghub.com/api/run.json

And the rest should go under x-www-form-urlencoded

Hello nestor, - I changed the configuration as suggested, still, getting the same error.

You're still using URL parameters, the parameters should go on the body under x-www-form-urlencoded

Login to post a comment