Top URLs
Top URLs
https://app.contentstack.com/analytics/v2/url?orgUid={organization_uid}&from={YYYY-MM-DD}&to={YYYY-MM-DD}&includeTotalCount={boolean_value}The Top URLs request gets you the number of requests made from your URLs for the given services.
Here’s how your response body would look like when you pass the jobId in the Retrieve Data endpoint.
{
"data": [
{
"url": "https://cdn.contentstack.io/v3/content_types?include_count=false",
"type": "cdn",
"count": "3"
},
{
"url": "https://cdn.contentstack.io/v3/content_types/header/entries/blt63c1bee28ce24ab1?environment=development",
"type": "cdn",
"count": "1"
},
{
"url": "https://cdn.contentstack.io/v3/global_fields",
"type": "cdn",
"count": "1"
},
{
"url": "https://cdn.contentstack.io/v3/content_types/test_111222/entries?environment=development",
"type": "cdn",
"count": "1"
}
],
"urlDataSource": "athena",
"meta": {
"orgUid": "blt**************87",
"from": "2024-01-31",
"duration": "day",
"to": "2024-03-31",
"services": "[\"cdn\"]"
},
"uid": "0f****46-5ee9-4f38-9146-1f********8"
}The response body provides a detailed summary of the number of requests made to various URLs over a specific period. Here’s a breakdown of the key elements:
- url: The specific URL that was accessed.
- type: The service type of the URL, such as "cdn".
- count: The number of requests made to this URL.
This data helps organizations monitor traffic, identify frequently accessed URLs, and optimize performance.
{
"jobId": "job_7******a-c**f-4**9-9**0-c**********6",
"paginated": true
}