Livestream: Build better UIs with AI | 3/13

Announcing Visual Copilot - Figma to production in half the time

Builder.io logo
Contact Sales
Platform
Developers
Contact Sales

Blog

Home

Resources

Blog

Forum

Github

Login

Signup

×

Visual CMS

Drag-and-drop visual editor and headless CMS for any tech stack

Theme Studio for Shopify

Build and optimize your Shopify-hosted storefront, no coding required

Resources

Blog

Get StartedLogin

deprecated

With the Analytics API you can query any analytics you have in Builder using SQL.

Tip: For more detailed information, read Programming Custom Dashboards.

To use the Builder Analytics API, you must have a Private API Key. Remember to keep your Private API secret.

To query your analytics in Builder, send a GET request as in the following example:

curl --location --request POST 'https://cdn.builder.io/api/v1/query-metrics?apiKey=API_KEY' \
--header 'Authorization: Bearer PRIVATE_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "query": "SELECT COUNT(*) FROM @events WHERE TYPE = \"CLICK\" "
}'
# Example response
# {
#  "results": [{ COUNT: 123 }]
# }

The Analytics API is only available with Builder Enterprise plans. For full details on usage of the API, please contact the Builder support team.

Was this article helpful?

Product

Visual CMS

Theme Studio for Shopify

Sign up

Login

Featured Integrations

React

Angular

Next.js

Gatsby

Get In Touch

Chat With Us

Twitter

Linkedin

Careers

© 2020 Builder.io, Inc.

Security

Privacy Policy

Terms of Service

Get the latest from Builder.io

By submitting, you agree to our Privacy Policy

  • Platform Overview

  • Integrations

  • What's New

  • From Design to Code Guide

  • Composable Commerce Guide

  • Headless CMS Guide

  • Headless Commerce Guide

  • Composable DXP Guide

  • Design to Code

  • Blog

  • Knowledge Base

  • Community Forum

  • Partners

  • Templates

  • Success Stories

  • Showcase

  • Resource Center

© 2025 Builder.io, Inc.

Security

Privacy Policy

SaaS Terms

Security & Compliance

Cookie Preferences

Gartner Cool Vendor 2024