videocamWeb Data Extraction Summit - September 30th, 2021.
Join some of the greatest minds in web scraping to educate, inspire, and innovate.
Register for free!
Start a new topic

Items API get items by fieldname

I do not understand how to retrieve items by fieldname. For example, I have a spider that yields the field 'terms'.

When I use the endpoint to retrieve items by fieldname

curl -u APIKEY: https://storage.scrapinghub.com/items/53/34/7/fieldname

so my version is:

curl -u APIKEY: https://storage.scrapinghub.com/items/projectid/spiderid/jobid/terms

I receive a http 404 error through both python requests and Postman. How am I using this incorrectly?

1 Comment

Your documentation in the Items API needs modification.

curl -u APIKEY: https://storage.scrapinghub.com/items/53/34/7/fieldname

must include the item_no as well:

curl -u APIKEY: https://storage.scrapinghub.com/items/53/34/7/0/fieldname

note the extra '0/' for inclusion of item number


Login to post a comment