Items API get items by fieldname

Posted over 4 years ago by leonchughes

Post a topic
Un Answered
l
leonchughes

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?

0 Votes


1 Comments

l

leonchughes posted over 4 years ago

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


0 Votes

Login to post a comment