Query every connected source for every client from your own code, with the same fields and numbers as Jepto reports.
The Jepto API gives your code the same data Jepto reports use: every connected source, for every client, through one set of field names and one query format. You don’t call each platform’s API, manage its tokens or reconcile its formats. You send one query and get rows back, keyed by the field names you asked for.
You can use it as a REST API or a GraphQL API. Both have the same operations, the same sign-in and the same request JSON, and both return the same numbers. Use whichever suits your stack.
https://data.jepto.com. JSON request bodies over HTTPS. See REST API.https://api.jepto.com/graphql. Typed operations and inputs. See GraphQL API.The same data model is also available to AI assistants and agents through Jepto MCP. See MCP.
| Operation | REST | GraphQL | Request JSON |
|---|---|---|---|
| List the clients you can access | GET /clients | clients | none |
| List a client’s fields | POST /schema | analyticsSchema | clientId, source, fieldType |
| Run a query | POST /query | analyticsQuery | clientId, query |
| Get a long-running query’s result | POST /query/result | analyticsQueryResult | queryId |
The request JSON is the REST request body and, unchanged, the GraphQL variables. The API is read-only: it doesn’t change reports, budgets, data sources or anything on the ad platforms.
Four steps from sign-in to rows, shown with curl for both APIs.
Sign in with your Jepto account and copy the access_token. Authentication has a ready-made Python script and a Postman setup. Both APIs take the same token.
export JEPTO_TOKEN="eyJraWQiOi..."curl https://data.jepto.com/clients \ -H "Authorization: Bearer $JEPTO_TOKEN"
curl -X POST https://api.jepto.com/graphql \ -H "Authorization: Bearer $JEPTO_TOKEN" \ -H "Content-Type: application/json" \ -d '{"query": "{ clients { clientId name domain } }"}'
Both return the same list. REST returns { "clients": [ … ] } and GraphQL returns { "data": { "clients": [ … ] } }:
[
{
"clientId": "a1b2c3d4e5f6a7b8",
"name": "Homer’s Donuts",
"domain": "homersdonuts.com"
}
]curl -X POST https://data.jepto.com/schema \ -H "Authorization: Bearer $JEPTO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "clientId": "a1b2c3d4e5f6a7b8", "source": "googleAds", "fieldType": "metrics" }'
{
"query": "query ($clientId: ID!, $source: String, $fieldType: FieldType) {
analyticsSchema(clientId: $clientId, source: $source, fieldType: $fieldType) {
sources { type label }
metrics { name label type aggregation }
}
}",
"variables": {
"clientId": "a1b2c3d4e5f6a7b8",
"source": "googleAds",
"fieldType": "metrics"
}
}curl -X POST https://api.jepto.com/graphql \ -H "Authorization: Bearer $JEPTO_TOKEN" \ -H "Content-Type: application/json" \ -d @request.json
{
"sources": [
{
"dataSourceId": "a1b2c3d4e5f6g7h8",
"type": "googleAds",
"label": "Google Ads"
}
],
"metrics": [
{
"name": "googleAds.spend",
"label": "Cost (spend)",
"kind": "metric",
"type": "number",
"aggregation": "sum"
},
{
"name": "googleAds.clicks",
"label": "Clicks",
"kind": "metric",
"type": "number",
"aggregation": "sum"
}
],
"dimensions": []
}Spend and clicks by campaign for the last 30 complete days, highest spend first. Save the request JSON as body.json. It’s the REST body as is, and the variables of the GraphQL request:
{
"clientId": "a1b2c3d4e5f6a7b8",
"query": {
"measures": ["googleAds.spend", "googleAds.clicks"],
"dimensions": ["googleAds.campaignName"],
"timeDimensions": [
{
"dimension": "googleAds.date",
"dateRange": [
"30DaysAgo",
"yesterday"
]
}
],
"order": [
{
"member": "googleAds.spend",
"direction": "desc"
}
],
"limit": 100,
"total": true
}
}curl -X POST https://data.jepto.com/query \ -H "Authorization: Bearer $JEPTO_TOKEN" \ -H "Content-Type: application/json" \ -d @body.json
{
"query": "query ($clientId: ID!, $query: AnalyticsQueryInput!) {
analyticsQuery(clientId: $clientId, query: $query) {
queryId status data total
}
}",
"variables": <contents of body.json>
}curl -X POST https://api.jepto.com/graphql \ -H "Authorization: Bearer $JEPTO_TOKEN" \ -H "Content-Type: application/json" \ -d @request.json
{
"queryId": "qry_a1b2c3d4e5f6a7b8",
"status": "COMPLETE",
"data": [
{
"googleAds.campaignName": "Brand | Search",
"googleAds.spend": 1840.5,
"googleAds.clicks": 2210
},
{
"googleAds.campaignName": "Donuts Near Me | Search",
"googleAds.spend": 1312.75,
"googleAds.clicks": 1486
}
],
"total": 2,
"annotation": {
"measures": {
"googleAds.spend": {
"label": "Spend"
},
"googleAds.clicks": {
"label": "Clicks"
}
},
"dimensions": {
"googleAds.campaignName": {
"label": "Campaign Name"
}
},
"segments": {},
"timeDimensions": {}
},
"lastRefreshTime": "2026-11-24T03:12:45.123456Z",
"cacheStatus": "computed"
}Both APIs return this result. In GraphQL it’s under data.analyticsQuery, and data and annotation are JSON strings to parse. Most queries finish in under a second when the data is cached, and in a few seconds when Jepto has to fetch from the platform. A query still running after about 25 seconds returns status: "RUNNING" and a queryId to collect later. See Queries → Response.
| Term | Definition |
|---|---|
| Account | Your Jepto workspace. A token belongs to one user in one account. |
| Client | One business in the account, identified by a clientId of exactly 16 lowercase hexadecimal characters, for example a1b2c3d4e5f6a7b8. Every data query is for one client. A schema request can also use "all_clients" to list the fields of every client together. |
| Source | A connected platform for a client, such as googleAds or googleAnalytics4. A client can have several. |
| Field | A metric (a number to aggregate) or a dimension (a value to group or filter by). Its name is the key you use in queries, for example googleAds.campaignName. |
| Query | A JSON object listing measures, dimensions, timeDimensions, filters, order and paging. The format is based on the open-source Cube query format, with the differences listed in Queries. |
| Access | A token sees what its user sees in the Jepto app: the same clients and the same permissions. |
© Jepto 2026. All rights reserved.