---
updatedAt: 2026-03-01T18:56:43.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/mpulse/llms.txt
---

# Get a histogram for timer

```c cURL
curl --request GET \
     --url 'https://mpulse.soasta.com/concerto/mpulse/api/v2/XXXXX-YYYYY-ZZZZZ-XXXXX-YYYYY/histogram?timer=PageLoad&format=legacy&series-format=js&date-comparator=Today&timezone=UTC&percentile=50' \
     --header 'Accept: application/json' \
     --header 'Authentication: f373b8e8-bf4a-4473-801a-b5d9b6b0ae5a'
```

```node Node
const sdk = require('api')('@mpulse/v1#clno8615kzifg25u');

sdk['get-histogram']({
  timer: 'PageLoad',
  format: 'legacy',
  'series-format': 'js',
  'date-comparator': 'Today',
  timezone: 'UTC',
  percentile: '50',
  apiKey: 'XXXXX-YYYYY-ZZZZZ-XXXXX-YYYYY',
  Authentication: 'f373b8e8-bf4a-4473-801a-b5d9b6b0ae5a'
})
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

```python Python
import requests

url = "https://mpulse.soasta.com/concerto/mpulse/api/v2/XXXXX-YYYYY-ZZZZZ-XXXXX-YYYYY/histogram?timer=PageLoad&format=legacy&series-format=js&date-comparator=Today&timezone=UTC&percentile=50"

headers = {
    "Accept": "application/json",
    "Authentication": "f373b8e8-bf4a-4473-801a-b5d9b6b0ae5a"
}

response = requests.get(url, headers=headers)

print(response.text)
```

```json Response Example
{
  "chartTitle": "Number of Samples",
  "chartTitleSuffix": "null",
  "datasetName": "RumHistogram",
  "reportType": "RumHistogram",
  "resultName": "null",
  "series": {
    "series": [
      {
        "name": "Number of Samples",
        "kValue": 150,
        "median": 1942,
        "percentile_name": "Median",
        "p95": 14080,
        "p98": 30703,
        "buckets": 134,
        "aPoints": [
          {
            "s": 2,
            "e": 3,
            "c": 4
          },
          {
            "s": 3,
            "e": 4,
            "c": 13
          }
        ]
      }
    ]
  }
}
```

# Get a token

<!-- c@4 -->
<!-- node@11 -->
<!-- python@7 -->

All calls to this API require that you pass in the token you get from the [Generate a token](https://techdocs.akamai.com/mpulse/reference/put-token) operation as an X-Auth-Token request header. See [Get started](https://techdocs.akamai.com/mpulse/reference/get-started) for help to initially call the API or see [Generate a token recipe](https://techdocs.akamai.com/mpulse/recipes/generate-a-token).

# Specify the API key

<!-- c@2 -->
<!-- node@10 -->
<!-- python@3 -->

This is the mPulse App API Key, which can be found in the mPulse UI, under the General tab of the Configure Web App dialog.

# Specify other parameters

<!-- c@2 -->
<!-- node@4-9 -->
<!-- python@3 -->

There are other parameters you can specify to get a more precise histogram. See [Get a histogram for timer](https://techdocs.akamai.com/mpulse/reference/get-histogram) in the API documentation for more information.

# Call the API

<!-- c@1-4 -->
<!-- node@3 -->
<!-- python@1-12 -->

Call GET on the request URL, providing the body request object.

# Get the response

<!-- node@15 -->
<!-- python@13 -->

The response contains the histogram for the specified timer.