Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

How to extract multiple alert pages from REST API..?

restapi
alerts
api

#1

Dear Team,

I’m facing issue to extract multiple pages of new relic alerts from REST API.

Pls help.

Thanks & regards,
Hadad


#2

I think the NR REST API does support pages in headers.

curl -X GET ‘https://api.newrelic.com/v2/alerts_violations.json
-H ‘X-Api-Key:{api_key}’ -i
-G -d ‘page=2

I think a better question is how do you put all that data together after you get all the pages.


#3

Hey @Hadad.Mardikatama - Was @martinez.zepeda’s response helpful you?


#4

Is it possible to get multiple pages with a single query or change the page size?


#5

Hey @John_Kilmister - In order to optimise API query performance, the number of results returned per page is not editable. You’ll need to run sequential API calls to go from page to page of results.