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

Posted about 6 years ago by bcheekati

Post a topic
Answered
b
bcheekati

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

0 Votes

nestor

nestor posted about 6 years ago Admin Best Answer

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

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

0 Votes


3 Comments

Sorted by
nestor

nestor posted about 6 years ago Admin

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

0 Votes

b

bcheekati posted about 6 years ago

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

0 Votes

nestor

nestor posted about 6 years ago Admin Answer

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

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

0 Votes

Login to post a comment