Almost EVERYONE who tried headless systems said they saw benefits. Download the state of CMS now!

Storyblok now on AWS Marketplace: Read more

O’Reilly Report: Decoupled Applications and Composable Web Architectures - Download Now

Empower your teams & get a 582% ROI: See Storyblok's CMS in action

Skip to main content

Which API calls count as traffic?

  • FAQ
  • Which API calls count as traffic?

All outgoing traffic, whether cached or uncached, counts as traffic on our end. This includes assets (uploading via Storyblok UI and delivered via Image Service), the APIs (content delivery API, Management API, GraphQL API), Webhook payloads, etc. In essence, every API call contributes to the overall traffic count. And yes, the size of what's being sent matters.

You can review the specifics of your API requests for your space on your dashboard.

Let's explore a couple of examples:

Section titled Understanding Asset Requests Understanding Asset Requests

  • Consider the default size of the image below.
    1
    This default size contributes to the overall traffic size.
  • You can utilize Storyblok's Image Service to reduce the image size.
    1
    2
    Simply adding /m/ at the end of the image URL significantly reduces its size, reducing your overall traffic.
  • For even more traffic savings, if you need a smaller image, check out the example below.
    1
    2
    By specifying the image size, you get a smaller image, saving total traffic and enhancing webpage loading speed for a better-optimized website. Please refer to the Image Service documentation to learn more about further optimization possibilities.

Section titled Understanding API Request Sizes Understanding API Request Sizes

  • Let's examine an API request fetching a single story.
    1
    This represents the size of the JSON payload for a single story retrieval. Excluding fields can help trim down this request's size. Otherwise, this size contributes to your overall traffic.
  • Now, consider another API request fetching all stories.
    1
    The size of this request is depicted in the image above. If you don't require all the stories, utilizing filters can further reduce the JSON size, ultimately saving on your traffic consumption.

By optimizing both asset and API request sizes, you ensure efficient traffic management and contribute to a faster, more optimized website.

learn:

For insights on optimizing your API calls and implementing effective caching strategies, we recommend exploring our comprehensive guide: Optimizing Your Caching Strategy with Storyblok.