---
updatedAt: 2026-03-01T18:27:12.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/reporting/llms.txt
---

# Get asynchronous report results

```shell cURL
productFamily="delivery"
reportingArea="traffic"
report="current"
queryId=".kRGhlJDQv5gD34L8J+bfDLmmm6tIipFMHeve7o2udsr1mxoqQ6yHbaNjw43lIyzGX0Pko3ZcsSdFU4iEvETAogoL2ijtS3D385hhKIeQ9fOlgLixkCg9em001KtQIkI3JUCX5RxxkfK3iqBNai0988XYgPEUSpQt69D5gedOjrDMch4Vy.WRpOMQEXqURxrkXSOFVVIw0yDM62VJ8sRG3fsADRpYvpnsOeFz5Eko6lHH0TqzadAXFJEHQzS25Gu"

egcurl --eg-section default --request GET \
  --url "https://$hostname/reporting-api/v2/reports/$productFamily/$reportingArea/$report/queries/$queryId" \
  --header "Accept: application/json"
```

```node Node
const EdgeGrid = require("akamai-edgegrid");
const os = require("os");
const edgercPath = os.homedir + "/.edgerc.txt";
const edgercSection = "default";
const eg = new EdgeGrid({
  path: edgercPath,
  section: edgercSection,
});

const productFamily = "delivery";
const reportingArea = "traffic";
const report = "current";
const queryId =
  ".kRGhlJDQv5gD34L8J+bfDLmmm6tIipFMHeve7o2udsr1mxoqQ6yHbaNjw43lIyzGX0Pko3ZcsSdFU4iEvETAogoL2ijtS3D385hhKIeQ9fOlgLixkCg9em001KtQIkI3JUCX5RxxkfK3iqBNai0988XYgPEUSpQt69D5gedOjrDMch4Vy.WRpOMQEXqURxrkXSOFVVIw0yDM62VJ8sRG3fsADRpYvpnsOeFz5Eko6lHH0TqzadAXFJEHQzS25Gu";

eg.auth({
  path: `/reporting-api/v2/reports/${productFamily}/${reportingArea}/${report}/queries/${queryId}`,
  method: "GET",
  headers: {
    Accept: "application/json",
  },
});
eg.send(function (error, response, body) {
  console.log(JSON.stringify(JSON.parse(body), null, 2));
});
```

```python Python
import requests
import json
from akamai.edgegrid import EdgeGridAuth, EdgeRc
from urlparse import urljoin

edgerc = EdgeRc('~/.edgerc.txt')
section = 'default'
baseurl = 'https://%s' % edgerc.get(section, 'host')

session = requests.Session()
session.auth = EdgeGridAuth.from_edgerc(edgerc, section)
productFamily = "delivery"
reportingArea = "traffic"
report = "current"
queryId = ".kRGhlJDQv5gD34L8J+bfDLmmm6tIipFMHeve7o2udsr1mxoqQ6yHbaNjw43lIyzGX0Pko3ZcsSdFU4iEvETAogoL2ijtS3D385hhKIeQ9fOlgLixkCg9em001KtQIkI3JUCX5RxxkfK3iqBNai0988XYgPEUSpQt69D5gedOjrDMch4Vy.WRpOMQEXqURxrkXSOFVVIw0yDM62VJ8sRG3fsADRpYvpnsOeFz5Eko6lHH0TqzadAXFJEHQzS25Gu"
 

path = '/reporting-api/v2/reports/{}/{}/{}/queries/{}'.format(productFamily, reportingArea, report, queryId)
headers = {
  
  "Accept": "application/json"}  

result = session.get(urljoin(baseurl, path), headers=headers)
print(result.status_code)
print(json.dumps(result.json(), indent=2)) 
```

```json Response Example
{
  "data": [
    {
      "edgeBytesSum": 1322,
      "edgeHitsSum": 10,
      "hostname": "example.com",
      "responseCode": 404
    },
    {
      "edgeBytesSum": 321,
      "edgeHitsSum": 1,
      "hostname": "origin.com",
      "responseCode": 404
    },
    {
      "edgeBytesSum": 4331,
      "edgeHitsSum": 122,
      "hostname": "custom.com",
      "responseCode": 200
    }
  ],
  "metadata": {
    "evictionTime": "2024-04-03T13:40:58Z",
    "links": [
      {
        "allow": [
          "GET"
        ],
        "href": "/reporting-api/v2/reports/delivery/traffic/current/queries/.kRGhlJDQv5gD34L8J+bfDLmmm6tIipFMHeve7o2udsr1mxoqQ6yHbaNjw43lIyzGX0Pko3ZcsSdFU4iEvETAogoL2ijtS3D385hhKIeQ9fOlgLixkCg9em001KtQIkI3JUCX5RxxkfK3iqBNai0988XYgPEUSpQt69D5gedOjrDMch4Vy.WRpOMQEXqURxrkXSOFVVIw0yDM62VJ8sRG3fsADRpYvpnsOeFz5Eko6lHH0TqzadAXFJEHQzS25Gu",
        "rel": "first"
      },
      {
        "allow": [
          "GET"
        ],
        "href": "/reporting-api/v2/reports/delivery/traffic/current/queries/.kRGhlJDQv5gD34L8J+bfDLmmm6tIipFMHeve7o2udsr1mxoqQ6yHbaNjw43lIyzGX0Pko3ZcsSdFU4iEvETAogoL2ijtS3D385hhKIeQ9fOlgLixkCg9em001KtQIkI3JUCX5RxxkfK3iqBNai0988XYgPEUSpQt69D5gedOjrDMch4Vy.WRpOMQEXqURxrkXSOFVVIw0yDM62VJ8sRG3fsADRpYvpnsOeFz5Eko6lHH0TqzadAXFJEHQzS25Gu",
        "rel": "self"
      },
      {
        "allow": [
          "GET"
        ],
        "href": "/reporting-api/v2/reports/delivery/traffic/current/queries/.kRGhlJDQv5gD34L8J+bfG++AQaipJ5zBKgT83AhMgEuUKZvnyG9nLz2eqMUAEVD7.lrvyrvOtUwIy9kCBd4Uw8sJKf+qhYKz3BxEZ8pNl9yqtfGreMCWmIOA3n5fKcxRP07cNb7iO5nC98cygroJk+2If7YG8MjWZ4jOMjPLsOUhIB4xeSjvkvTaNDGKhoXoO+K3BYFqSNrPxX37vbI7tFA6av4tWBoXwn4EGTa0GzenqGlx5m4FDcIxi2t2IOU",
        "rel": "next"
      },
      {
        "allow": [
          "GET"
        ],
        "href": "/reporting-api/v2/reports/delivery/traffic/current/queries/.kRGhlJDQv5gD34L8J+bfDLmmm6tIipFMHeve7o2udsr1mxoqQ6yHbaNjw43lIyzGX0Pko3ZcsSdFU4iEvETAogoL2ijtS3D385hhKIeQ9fOlgLixkCg9em001KtQIkI3JUCX5RxxkfK3iqBNai0988XYgPEUSpQt69D5gedOjrDMch4Vy.WRpOMQEXqURxrkXSOFVVIw0yDM62VJ8sRG3fsADRpYvpnsOeFz5Eko6lHH0TqzadAXFJEHQzS25Gu",
        "rel": "last"
      }
    ],
    "name": "CDN traffic report data",
    "requestTime": "2024-03-27T13:39:05.041Z",
    "rows": 3,
    "totalRows": 44
  }
}
```

# Set up authorization



Before you can use this API, you need to [Create authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials).

# Enable the asynchronous mode



[Generate a report](https://techdocs.akamai.com/reporting/reference/post-report-data) with the `async` flag set to `true` in the query parameters. This enables the asynchronous mode of retrieving the data. 

Your data is now being prepared. Note it may take some time before the data is ready to fetch.

# Specify the query ID

<!-- shell@4 -->
<!-- node@13-14 -->
<!-- python@15 -->

With the enabled asynchronous mode, a 303 response to a [Generate a report](https://techdocs.akamai.com/reporting/reference/post-report-data) POST request contains the `Location` header. Pick its value and specify it as a `queryId` to [get the data asynchronously](https://techdocs.akamai.com/reporting/reference/get-report-data-async).

# Specify product family, reporting area, and report name

<!-- shell@1-3 -->
<!-- node@10-12 -->
<!-- python@12-14 -->

Set the `productFamily`, `reportingArea`, and `report` parameters. To see available values, [list all reports](https://techdocs.akamai.com/reporting/reference/get-reports).

# Form the URL

<!-- shell@7 -->
<!-- node@17 -->
<!-- python@18 -->

Inject `productFamily`, `reportingArea`, `report`, and `queryId` into the URL template.

# Call the API

<!-- shell@1-100 -->
<!-- node@1-100 -->
<!-- python@1-100 -->

Call GET on the request URL.

# Review the response



The response returns `200` status and the report data.

Note that it takes some time to process a [Generate a report](https://techdocs.akamai.com/reporting/reference/post-report-data) POST request with the enabled asynchronous mode and prepare the data. If the data isn't ready yet and you call GET to fetch it, you get a 303 response with the `Location` header again. Wait for some time and  retry getting the data .