Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Looping data pull due to API limitation

Hi guys.

 

I am facing a problem with CISCO AMP API. I need to pull data but I am limited to 500 rows and any number greater than 500 gives error:
   DataSource.Error: Web.Contents failed to get contents from 'https://api.eu.amp.cisco.com/v1/computers?limit=501' (400): Bad Request
   Details:
   DataSourceKind=Web
   DataSourcePath=https://api.eu.amp.cisco.com/v1/computers
   Url=https://api.eu.amp.cisco.com/v1/computers?limit=501

I want to try to loop that data pull to give me next 500 rows multiple times to have all of 16k rows.

Can anyone help me with that? This is overwhelming me.

 

2 Replies