Skip to content

Retrieve Assets Traffic Statistics

GET
https://mapi.storyblok.com/v1/orgs/me/statistics/:assets_traffic

Returns assets traffic usage statistics for the organization. Filter the response by date.

  • start_date string

    Start date for traffic statistics. Provide date in YYYY-MM-DD format.

  • end_date string

    End date for traffic statistics. Provide date in YYYY-MM-DD format.

  • assets object[]

    An array of partial asset objects with the corresponding traffic statistics.

    Show child properties
    • id number

      The numeric ID of the asset.

    • alt string

      The alt text of the asset (default language).

    • asset_folder_id number

      The ID of the folder containing this asset.

    • content_length number

      The asset’s content length in bytes.

    • content_type string

      The MIME type of the asset.

    • deleted_at string

      The asset’s deletion date (format: YYYY-mm-dd HH:MM). Returns null if the file hasn’t been deleted.

    • filename string

      Full path of the asset, including the file name.

    • is_private boolean

      When set to true, the asset is only visible with an access token. Default: false.

    • space_id number

      The space ID the asset belongs to.

    • total_bytes number

      The total bandwidth (in bytes) transferred for this asset on the specified period.

Example Request

curl "https://mapi.storyblok.com/v1/orgs/me/statistics/assets_traffic" \
-H "Authorization: YOUR_OAUTH_TOKEN"
Response Example
{
"assets": [
{
"id": 88042181064935,
"alt": "Image alt text",
"asset_folder_id": 12345,
"content_length": 25600,
"content_type": "image/jpeg",
"deleted_at": null,
"filename": "https://s3.amazonaws.com/a.storyblok.com/f/286977613018464/6ea061149c/premium-appointment.jpg",
"is_private": false,
"space_id": 44203,
"total_bytes": 8400
}
]
}

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.