
Connectors / Data and analytics · HTTP Connector
Automate Chartbeat with Tray.ai
Submit a one-time query and submit a recurring query in Chartbeat. Connect Chartbeat to the rest of your data and analytics stack with Tray.ai.
What can you do with Chartbeat on Tray.ai?
Chartbeat is an audience analytics tool for publishers and newsrooms that tracks real-time and historical reader engagement with articles and video. Tray.ai connects to Chartbeat through the HTTP Connector, so your workflows can call the Chartbeat API alongside the rest of your stack.
- Get top pages every hour and post the list to the newsroom's team chat.
- Submit a recurring query for daily engagement and load the results into your data warehouse.
- Get referrers for a breaking story and share them with the social team.
- Fetch query results and add them to the weekly audience report in your BI tool.
- Connects through
- HTTP Connector
- Authentication
- An API key in a request header
- Base URL
- https://api.chartbeat.com
Set it up
Connect Chartbeat to Tray.ai
Each step uses Chartbeat's own API details, from its documentation.
Step 1
Save Chartbeat's API key
Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.
Step 2
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.chartbeat.com as the base URL. Or paste a cURL example from Chartbeat's API docs, and Tray.ai fills in the method, URL, and headers.
Step 3
Start with “Check query status”
It's one of 11 documented actions, under Historical queries. The response comes back as data the next step can map into your other apps.
Step 4
Hand it to an AI agent
Wrap “Submit a one-time query” and “Fetch query results” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.
Give your AI agents Chartbeat tools
Build an MCP server on Chartbeat in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- Submit a one-time query
- Submit a recurring query
- Get top pages
- Check query status
- Fetch query results
- List recurring queries
- Fetch recurring results
- Cancel a recurring query
What the Chartbeat API covers
3 resources and 11 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Historical queries
- Submit a one-time query
- Check query status
- Fetch query results
Recurring queries
- Submit a recurring query
- List recurring queries
- Fetch recurring results
- Cancel a recurring query
Real-time traffic
- Get top pages
- Get quick stats
- Get referrers
- Get top locations
Checked against Chartbeat's own documentation on 2026-10-22
How Tray.ai makes this work
Chartbeat plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 10,100+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in Chartbeat — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose Chartbeat actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on Chartbeat data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More data and analytics apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every data and analytics connector →
Frequently asked questions
What can a Tray.ai workflow do in Chartbeat?
+
The Chartbeat API documents 11 actions across 3 resources (Historical queries, Recurring queries, Real-time traffic). For example: Submit a one-time query; Submit a recurring query; Get top pages. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Chartbeat?
+
The Chartbeat API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
See Chartbeat working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks — someone from our team will be in touch soon.