Skip to content

Retrieve a Single Data Source

Retrieve a single data source by id.

GET
https://api.storyblok.com/v2/cdn/datasources/:id
  • :id required string

    The data source’s ID. Examples: labels (Full slug), 66252740648132 (Numeric ID).

  • version string

    Filter by the story’s publication status.

  • cv integer

    Cached version Unix timestamp. Learn more in the Caching concept.

  • token required string

    A preview or public access token configured in a space.

  • datasource Datasource
    Show child properties
    • id integer

      Data source ID.

    • name string

      Data source name.

    • slug string

      Data source slug.

    • dimensions array<Dimension>

      An array listing the dimensions defined for the data source.

      Show child properties
      • id integer

        Dimension ID.

      • name string

        Dimension name.

      • entry_value string

        Dimension value.

      • datasource_id integer

        The id of the data source that contains this dimension.

      • created_at string

        Creation timestamp. Supports ISO 8601.

      • updated_at string

        Latest update timestamp. Supports ISO 8601.

    • created_at string

      Creation timestamp. Supports ISO 8601.

    • updated_at string

      Latest update timestamp. Supports ISO 8601.

  • cv integer | null

    Cached version Unix timestamp. Learn more in the Caching concept.

curl "https://api.storyblok.com/v2/cdn/datasources/:id\
?token=ask9soUkv02QqbZgmZdeDAtt"
Response
{
"datasource": {
"id": 1123,
"name": "Labels",
"slug": "labels",
"dimensions": [
{
"id": 1,
"name": "en",
"entry_value": "en",
"datasource_id": 1123
}
],
"created_at": "2025-02-10T08:12:00.000Z",
"updated_at": "2025-02-10T08:12:00.000Z"
},
"cv": 1541863983
}

Was this page helpful?

What went wrong?

This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.