Skip to main content

How to Get Reports

'Reports' are aggregations of report template filters on top of raw crawl data. For instance, the "Broken Pages" report template contains a filter similar to "httpStatusCode=404", and when a crawl finishes Lumar will generate the "Broken Pages" report with the totalRows value being the number of URLs that were broken (matched the report template filter).

The Report query is the primary way to retrieve the high level Report aggregations, and can also be used to get the actual URLs that are part of the report (see Get URL Data)

The following query will show you how to retrieve report data from the Lumar API.

Note: as with the getCrawls guide you will need to provide the Crawl ID for the id parameter.

Use the getCrawl query to retrieve high-level report data

The sample query below will return 3 properties (, reportTemplate.code, totalRows) - for the comprehensive list, inspect type Report.

query getCrawl($id: ObjectID!) {
getCrawl(id: $id) {
first: 2
filter: {
datasourceCode: { eq: "crawl_urls" }
reportTypeCode: { eq: "basic" }
segmentId: { isNull: true }
orderBy: { field: reportTemplateCode, direction: ASC }
) {
nodes {
reportTemplate {
Show example variables Show example response Show cURL example Try in explorer