Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Harika Bhupathi
Giga Guru

The Reporting API is used to retrieve the details of the reports using Get HTTP Method.

URL Format:

Default URL

/api/now/reporting

Version URL

/api/now/v1/reporting

 

Parameters:

Parameter

Description

sysparm_contains

Title of the reports

sysparm_sortby

Specify the column value to order by/sort by

sysparm_sortdir

Specify the sort direction, ascending or descending.

sysparm_page

Specify page number starting from 1.

Example if you have 12 reports details in the results/response and sysparm_per_page starts with 1, In the response you will get first report details, to get other report details, you need to specify the sysparm_per_page – 2,3,4 etc.

sysparm_per_page

Specify number to get results per page.

 

 

  •  API Name to be chosen in REST API Explorer - Reporting API 
  • Request and Response Headers accepts application/json, application/xml, text/xml.
  • Output in shown in below steps, using REST API Explorer
  1. Provide the Report name in sysparm_contains, the name which contains similar text in reports.

          Below, I have chosen Name – ‘open incidents by’. I have 12 report names which contains this name.

  1. To sort reports based on type, we need to give column name in sysparm_sortby
  2. To sort the direction, either ascending or descending, we need to specify the value in sysparm_sortdir.

 find_real_file.png

find_real_file.png

 

Response:

 find_real_file.png

  1. To specify, how many reports for each response can be displayed per page, we need to provide value in Sysparm_per_page.find_real_file.png
  2. In the above screenshot, we have given sysparm_per_page – 1, it means now we have 12 pages, each page for each report. Now we need to specify the page number to get result of the report, example below screenshot, we have given number 5, which means we have got response for 5th report I.e., 5th page.
  1. find_real_file.png

 find_real_file.png

6. To cross verify, if all the parameters we have given whether provided us the exact results, below I have applied all of those sorting and search in report table and the fifth report, I have is exactly same which I have got in the above response.

 find_real_file.png

Note: In the response, along with report details, we do also have hasNextPage, hasPreviousPage, total count which means:

  • hasNextPage – if there is a next page based on your current response, it will give true/ false value.
  • hasPreviousPage – if there is a previous page based on your current reponse, it will give you true/false value
  • Total Count – gives the overall count of reports, in the above case it is 12.

If you find this article helpful, please do mark helpful and do bookmark it.

 

Regards,

Harika

 

 

Comments
sekhar kurumoju
Mega Guru

Hai @Harika Bhupathi  Great stuff and  it is Useful thank you

Harika Bhupathi
Giga Guru

@sekhar kurumoju  Thank you 🙂

 

BR,

Harika

Huberto
Tera Contributor

Thanks, @Harika Bhupathi. It appears the Reporting API returns details about a report, and no reported records. Can you confirm? I am looking for a REST API call that can return, for example, a filtered list of individual hardware records.

OrkidehA
Tera Contributor

hey @Huberto  could you find a solution to export reporting data from service now by using api call. 

 

Version history
Last update:
‎03-12-2021 09:16 AM
Updated by: