Fetching latest spider data

Modified on Wed, 3 Feb, 2021 at 7:34 AM

To get the scraped items, you can use the Items API.

In some cases, it's convenient to have a static URL that points to the last job, in a specific format. Here is an example.


CSV of the latest spider data


To get  the items of the latest completed job of a spider in CSV format use the following URL:


https://app.zyte.com/api/items.csv?project=PROJECTNUMBER&spider=SPIDERNAME&include_headers=1&fields=FIELDNAME1,FIELDNAME2&apikey=APIKEY 



Replace:

  • PROJECTNUMBER  with your project number
  • SPIDERNAME with your spider name
  • FIELDNAME1 , FIELDNAME2  with the name of the fields, in the order you want them to appear in the CSV columns
  • APIKEY  with your Apikey

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article