Get inspired at ContentCon. Learn more and register today
Get inspired at ContentCon. Learn more and register today
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • Webinars
  • Podcasts
  • Glossary
  • Content generative library
  • Community
  • Headless CMS
  • Composable AXP
  • Personalization
  • CDP

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Analytics API
  4. Retrieve Data

Retrieve Data

markdownView as Markdown

Retrieve Data

GEThttps://app.contentstack.com/analytics/v2/job/{jobId}/data?orgUid=<string>&page=0

The Retrieve Data request will take the jobId value that was generated in your response, as a part of its URL and returns the result of that job. Because the analytics APIs run asynchronously, the job may still be in progress when you call it. Repeat the request until it returns your data.

Note
  • Replace the jobId value in your URL with the jobId value received in your response. For example: {{api_server}}/analytics/v2/job/job_0******9-b**d-4**b-9**0-4**********2/data
  • The page parameter is optional and defaults to 0. When paginated is true in the job response, pass a whole number (0, 1, 2, and so on) to fetch that page. A page number that does not exist, or a value that is not a whole number, returns a 404 No data found error.
  • A jobId can only be retrieved by the same user who created it, within the same organization. Requests from any other user return a 404 error, so a jobId cannot be handed off between users or integrations.

The response depends on the state of the job. A queued or running job returns a 200 with a status message rather than your data, so read the job state from the response body and not from the status code.

Job stateStatusResponse body
Queued200{"message": "Job waiting", "statusCode": 200}
Running200{"message": "Job active", "statusCode": 200}
Finished200Your data
Failed500{"message": "Job failed"}
Unknown jobId404{"message": "Job not found"}
No such page404{"message": "No data found"}

You will receive the response depending on your request and relevant jobId.

Sample Response
Status|200 OK
123456789101112131415161718
{
    "data": [
        {
            "total_launch_project": 52,
            "total_launch_env": 42,
            "total_launch_domain": 62
        }
    ],
    "meta": {
        "includeCount": "true",
        "services": "[\"cdn\",\"cma\"]",
        "from": "2024-01-01",
        "duration": "day",
        "to": "2024-05-28",
        "orgUid": "blt426dad4d38234fd5"
    },
    "uid": "c13878ab-ff27-4b9c-ae99-a085c8f75f7d"
}
Hide Parameters

URL Parameters

jobIdrequiredstring

Enter your job ID.

Example:

job_0******9-b**d-4**b-9**0-4**********2

Query Parameters

orgUidrequiredstring

Enter the UID of your Organization.

Example:

your_organization_uid
pageoptionalstring

Enter the page number you want to retrieve in the response.

Example:

1

Headers

authtokenrequiredstring

Enter your authtoken.

Example:

your_authtoken