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