Your campaigns.
Your integration.
The Account API lets every account create campaigns, read their statistics, change their settings, and pause or resume them. The same key also connects AI assistants through the MCP server.
Connect from your server
Send your account key in the X-API-KEY header. Keep it out of browser code and source control. Existing read-only keys use the separate Reporting API; they do not gain editing permissions.
GET https://traffic-creator.com/api/v1/account/campaigns X-API-KEY: YOUR_ACCOUNT_KEY
Every request is limited to the projects owned by the key's account, including projects added later. You can also duplicate, archive and delete campaigns. Deleting needs a key with the extra delete permission, which is off unless you tick it when you create the key. Billing controls, account roles, internal service fields and project ownership cannot be changed.
Available operations
All paths below start with /api/v1/account.
| Method | Path | Purpose |
|---|---|---|
| GET | /balance | Available credits by wallet |
| POST | /campaigns/preview | Cost, wallet and balance check for a campaign; creates nothing |
| POST | /campaigns | Create and start a website, Search Console or local campaign |
| GET | /campaigns | List campaigns; limit up to 100 and use next_cursor as after; archived include (default), exclude or only |
| GET | /campaigns/{id} | Settings, status, delivered visits, target and remaining visits |
| GET | /campaigns/{id}/analytics | Dashboard analytics; days 1–90. Search Console and local campaigns: verified clicks, keywords, positions, search locations and rankings |
| GET | /campaigns/{id}/daily | Daily visits, or verified clicks for search campaigns; days 1–90 |
| GET | /campaigns/{id}/hourly | Hourly visits, or verified clicks for search campaigns; hours 1–168 |
| GET | /campaigns/{id}/rankings | Search Console and local campaigns: daily Google position from the city and from the whole country, with the trend; days 1–90 |
| GET | /campaigns/{id}/search-history | Search Console and local campaigns: every verified visit with keyword, position and where the search came from; days 1–90, offset and limit |
| GET | /campaigns/{id}/search-history.csv | Search Console and local campaigns: the click history as a CSV file for Excel (UTF-8 with BOM), the same file as the dashboard export; days 1–90 (default 90), or from and to as YYYY-MM-DD; 10 exports per minute |
| GET | /campaigns/{id}/search-history/export | For AI assistants: row count, columns, the first 5 rows and a download_url for the CSV that works for 15 minutes without a key. Accounts that limit API access to approved server IPs get no link |
| GET | /exports/{token}.csv | The download link from search-history/export. Stops working after 15 minutes, or earlier when the key or AI connection behind it is revoked or the campaign is deleted |
| PATCH | /campaigns/{id} | Edit customer settings, name, daily limit, target or wallet tier |
| POST | /campaigns/{id}/pause | Pause delivery and settle outstanding dispatches |
| POST | /campaigns/{id}/resume | Resume under the normal verification, funding and campaign checks |
| GET | /campaigns/{id}/deletion-preview | What deleting does, and a confirm_token valid 10 minutes; needs campaigns:delete |
| DELETE | /campaigns/{id} | Delete a campaign; see delete a campaign |
| POST | /campaigns/{id}/duplicate | Copy a campaign with its settings; the copy waits for Start. See duplicate a campaign |
| POST | /campaigns/{id}/status | Set the status to active, paused or archived; see archive a campaign |
| GET | /campaigns/{id}/live | Visits of the last hour in 5-minute buckets |
| GET | /campaigns/{id}/hours | Website campaigns: visits per UTC hour of the day; days 1–90 |
| GET | /campaigns/{id}/analytics/search | Website campaigns: every page or city of the report matching q; kind pages or cities |
| GET | /overview | Today (UTC): visits and verified clicks so far, per hour, running campaigns, days of credit left |
| GET | /seo/overview | All Search Console (type=gsc) or local (type=local) campaigns at once; days 7–90 |
| GET | /credits | Credits used and received per day, wallet and campaign; days 7–365 |
| GET | /credits/activity | Wallet entries: purchases, grants and usage; kind, offset, limit |
| GET | /billing/payments | Payments with a summary; kind all, paid, failed or refunds. No card or bank details |
| GET | /billing/subscription | Card subscription status and renewal or cancellation date |
| GET | /notifications | Notification bell of the account plus notices shown to everyone right now |
| GET | /support/tickets | Own support tickets; status, offset, limit |
| GET | /support/tickets/{id} | One ticket with the conversation |
| POST | /support/tickets | Open a ticket (subject, message, category, priority, optional campaign_id); needs campaigns:update |
| POST | /support/tickets/{id}/reply | Answer an own ticket; needs campaigns:update |
| POST | /support/tickets/{id}/close | Close an own ticket; needs campaigns:update |
| GET | /rewards | Level, XP, permanent discount and daily-bonus streak |
| GET | /affiliate | Affiliate tier, earnings, payouts and referred sign-ups (date and status only) |
| GET | /roadmap | Planned features with votes, and the changelog |
| GET | /youtube | YouTube wallet units and campaigns with their orders |
| GET | /profile | Account details, e-mail settings, connected apps and API keys (never a key itself) |
| GET | /prices | Visit plans and SEO packages in USD; with tier, visits and months the exact price after discount |
| GET | /locations | Targetable countries; with country its states and cities |
Create a campaign
Preview first: POST /campaigns/preview takes the same body and returns the wallet, the total, whether your balance covers it and how many days it lasts. Credits are charged as the campaign delivers, one per visit or verified click. Send an Idempotency-Key header so a retried request returns the first campaign instead of creating a second one.
POST /api/v1/account/campaigns
Content-Type: application/json
X-API-KEY: YOUR_ACCOUNT_KEY
Idempotency-Key: launch-2026-10-07
{
"type": "website",
"name": "Spring launch",
"url": "https://example.com/landing",
"daily_visits": 500,
"duration_days": 14,
"countries": { "US": 70, "DE": 30 },
"timezone": "Europe/Berlin",
"source": "Organic, Google Search"
}type is website, search_console (needs keywords) or local (needs keywords and business_name). Leave out duration_days to run until the wallet is empty. Pass tier (economy, professional, expert) to choose the wallet of a website campaign; without it, the highest tier that has credits pays: expert, then professional, then economy. Search campaigns use the SEO wallet and follow the day curve in your timezone. Without a GA4 ID that we can detect on the page, a website campaign waits in status pending_ga. Further settings go in settings, with the same fields as a PATCH; for search campaigns see after the click and page path. Up to five campaigns can be created per minute.
Update settings without overwriting another change
First retrieve the campaign. Include its current settings_version when sending a partial settings update. If the server returns 409, fetch the latest version and review your changes before retrying.
PATCH /api/v1/account/campaigns/YOUR_CAMPAIGN_ID
Content-Type: application/json
X-API-KEY: YOUR_ACCOUNT_KEY
{
"settings_version": 3,
"settings": { "timezone": "Europe/Berlin" },
"daily_limit": 20000
}Use the dedicated pause/resume operations to change status. Unsupported or internal fields are rejected, and so are values the dashboard does not offer, such as a percentage above 100, an unknown traffic source or a page on a private network; the 422 names the field and what it accepts. Values you send back unchanged from GET /campaigns/{id} are always accepted. Proxy settings and the delivery engine can only be changed in the dashboard. Campaign and page URLs must be public websites. Search Console and local campaigns are paused and resumed through the SEO service automatically, exactly as in the dashboard.
Search campaigns: daily amount and balance
A create, or an update that raises the busiest day’s cost, is refused with 422 when that cost is more than your free search credits. An update raises it when it raises, for example, daily_limit, a weekday weight (dayWeights), the daily variation (dailyVariationPct), the impressions on top (gscImpressionsPerDay) or the pogo-sticking share (gscPogoPercent), or when it switches seoGoal from impressions only to clicks. The header X-Error-Code: daily_over_balance identifies this refusal, and the message names the highest amount your balance covers. POST /campaigns/preview returns that amount as max_daily_by_balance, together with balance_available. balance_sufficient is false whenever the daily amount is above it. An update that does not raise the busiest day’s cost is always accepted.
Delete a campaign
Deleting cannot be undone, so it needs its own permission, campaigns:delete. Full-access keys and connected apps do not have it unless you tick Can delete campaigns when you create the key, or Allow deleting campaigns when you connect the app; keys created before this have no delete permission. First call GET /campaigns/{id}/deletion-preview: it deletes nothing and returns the campaign, what it delivered, whether a search is running, the reserved credits that go back to your wallet, and a confirm_token valid 10 minutes. Then send DELETE /campaigns/{id} with the header X-Confirm-Token. The token is optional, but when you send it the campaign must still be as previewed, otherwise you get 409 and should preview again. A running search is stopped first, then delivery stops; visits or clicks already underway finish and are charged. The answer is {"deleted": true}, or 202 with "status": "deletion_pending" while visits underway finish; the campaign then disappears on its own, usually within a minute. Sending the same DELETE again is safe and answers "already_deleted": true. While a search is still starting the API answers 409 with Retry-After and changes nothing. Up to five deletions per minute.
Duplicate a campaign
POST /campaigns/{id}/duplicate creates a new campaign with the same settings, wallet, daily volume and target. The body is optional: {"name": "Spring sale", "start": false}; without a name the copy is called “name (Copy)”. The copy is created stopped and waits for you to start it, so it costs nothing until it delivers; your balance is not checked. With "start": true it starts right away under the usual checks; if the start is refused, for example because the wallet is empty, the copy stays stopped and the response has "started": false and start_error. The response also shows duplicated_from and the wallet the copy uses with its credits. If the copied schedule end is already in the past, note says so; set a new scheduleEnd before starting. Free test campaigns can’t be copied (403). Duplicating needs the same permission as creating and shares its limit of five per minute. Send an Idempotency-Key header: a retry with the same key returns the first copy, the same key with a different body gets 409, and 410 means that copy has been deleted since.
Archive a campaign
POST /campaigns/{id}/status with {"status": "archived"} stops the campaign and files it under Archived in the dashboard. A running search is stopped first, reserved visits go back to your wallet, and visits or clicks already underway finish and are charged. An archived campaign never starts on its own; it keeps its settings and statistics. {"status": "active"} starts it again under the usual checks, and {"status": "paused"} takes it out of the archive without starting it. Sending the current status again changes nothing. The status needs the same permission as pause and resume. Archived campaigns show "status": "archived" and "archived": true; GET /campaigns?archived=exclude leaves them out and archived=only lists just them. While a search is still starting the API answers 409 with Retry-After; try again after that many seconds.
Search campaigns: after the click and page path
Search Console and local campaigns have their own settings for what a visitor does on your site after the click. They are the values of the campaign page sections After the click and Page path, in both directions: what you set here shows in the dashboard, and the other way round. The website fields bounceRate, timeOnPage, innerUrlCount, innerUrls, exitUrls, pageViewsWithScroll, clickInternal and clickExternal are refused for search campaigns, with the field to use instead.
| Setting | Values |
|---|---|
gscDwellMin, gscDwellMax | Seconds on each page, 5–300; every visit picks a time in this range |
gscBounceRate | Percent of visits that leave after the landing page, 0–90 |
gscScrollDepth | light, half or full |
gscFunnel | Page path: the pages a visitor opens after the landing page, in this order, at most 5 |
gscFunnelOrder | fixed (the listed order, default) or random (a new order on every visit) |
gscFunnelPick | Random order only: how many of the listed pages one visit opens, 1–5; leave out for all |
gscPagesPerVisit | Without a page path: further pages through any internal link, 0–5 |
gscGoalPath | Without a page path: the page the visit ends on, e.g. /contact |
Each step of gscFunnel is one page after the landing page. url is a page of the campaign's own site, written as a path (/pricing/) or a full URL; it is stored as the path. Pages on other sites are refused. {"url": null} means any internal link. urls lists several pages for one step, and each visit opens one of them at random. dwellMin and dwellMax give one page its own time in seconds. The visitor clicks a link to the page when the page before has one, and opens it directly otherwise.
PATCH /api/v1/account/campaigns/YOUR_CAMPAIGN_ID
Content-Type: application/json
X-API-KEY: YOUR_ACCOUNT_KEY
{
"settings_version": 7,
"settings": {
"gscFunnelOrder": "fixed",
"gscFunnel": [
{ "url": "/collections/", "urls": ["/collections/", "/catalog/", "/projects/"] },
{ "url": null },
{ "url": "/contact/", "dwellMin": 60, "dwellMax": 120 }
]
}
}A page path sets the pages per visit and the goal page itself: here 3 pages, ending on /contact/. A gscPagesPerVisit or gscGoalPath that disagrees with it is refused with 422. "gscFunnel": [] keeps visits on the landing page. "gscFunnel": null removes the page path; gscPagesPerVisit and gscGoalPath then apply again. GET /campaigns/{id} returns what every visit does, defaults included, as after_the_click. Its page_path.steps has the same form as gscFunnel and can be sent back unchanged.
Search campaigns: blocked domains
gscBlockedDomains (search and Maps campaigns): domains the visitor’s browser never loads, each one with its subdomains, for example ["hotjar.com", "intercom.io"]. At most 50. Domains only, no https:// or path. Not your own site, not Google or the search engine. [] or null clears the list. Blocking Google Analytics means the visits no longer show there; Search Console still counts the clicks.
PATCH /api/v1/account/campaigns/YOUR_CAMPAIGN_ID
{
"settings_version": 7,
"settings": {"gscBlockedDomains": ["hotjar.com", "intercom.io"]}
}The list is stored as checked: lowercase, a *. in front removed, duplicates dropped. A list with an address the rules refuse is answered with 422 and the reason, and nothing is saved. When the list blocks Google Analytics, GET /campaigns/{id} shows the note in notes. Website campaigns and free tests don’t take the setting. A change applies from the next run.
Search campaigns: pogo-sticking
gscPogoPercent (search campaigns, 0 to 50): the share of desktop visits that first open a result ranking above your page, return to Google and then click yours. 0 turns it off. Extra cost per such visit: see credits_per_pogo_visit in the campaign’s pogo block (0.25 credit until 1 December 2026, then 0.5). Charged only with a verified click.
PATCH /api/v1/account/campaigns/YOUR_CAMPAIGN_ID
{
"settings_version": 7,
"settings": {"gscPogoPercent": 30}
}Connect an AI assistant (MCP)
The MCP server at https://traffic-creator.com/mcp gives AI assistants the same operations as tools. Claude and ChatGPT: add a custom connector with this address and sign in with your Traffic Creator account when asked; you choose full access or read only, tick Allow deleting campaigns only if the assistant should be able to delete, and you can disconnect the app under API & MCP. Claude Code, Codex, Cursor and VS Code: sign in the same way, or send an account key as a bearer token.
For client developers: OAuth 2.1 with PKCE (S256), authorization server metadata at /.well-known/oauth-authorization-server, protected resource metadata at /.well-known/oauth-protected-resource/mcp, Client ID Metadata Documents and dynamic registration for public clients, resource https://traffic-creator.com/mcp. Access tokens last one hour; refresh tokens rotate on every use.
claude mcp add --transport http traffic-creator https://traffic-creator.com/mcp \ --header "Authorization: Bearer $TRAFFIC_CREATOR_API_KEY"
Tools that create or resume campaigns are marked as spending credits, so assistants that ask before acting will ask you first. delete_campaign works in two steps: it first shows what will happen and deletes nothing, and deletes only when called again with the confirmation from that first step. Use a read-only key for an assistant that should only report. Setup for Codex and Cursor is on the API & MCP page.
Several keywords in a search campaign
Send gscKeywords to set several keywords and their shares. weight is a whole number. With "gscKeywordMode": "percent" the weights add up to 100; with "amount" they are clicks per day and add up to the campaign's daily clicks.
{
"settings_version": 7,
"settings": {
"gscKeywordMode": "percent",
"gscKeywords": [
{ "keyword": "pool tiles", "weight": 60 },
{ "keyword": "swimming pool tiles", "weight": 40 }
]
}
}keywords then holds the first keyword. Keywords sent in keywords, one per line, become an even split. A campaign that already has gscKeywords takes a new list only through gscKeywords; "gscKeywords": null goes back to the single keywords field.
Understand your statistics
Analytics include available visitor/pageview totals, success and failure counts, engagement, device and source splits, geography, comparisons, page depth and credit usage. Respect the response's coverage and availability fields: metrics that are not collected, including some page-level data, may be unavailable.
total_target is the campaign's configured target, not historical purchased volume. Remaining visits are calculated from the target and delivered total; unlimited targets return null. The account balance shows credits, not subscription invoices.
Limits and errors
Polling every five minutes is supported. Each account key allows 60 reads and 10 writes per minute. Account-wide limits also apply: 240 reads and 30 writes per minute. Up to four reporting reads may run concurrently. Request bodies are limited to 1 MB.
- 401: Key missing, invalid, revoked or expired.
- 403: Account disabled, permission missing or server IP not approved.
- 404: Campaign not found within your account.
- 409: Settings version or campaign state conflict.
- 422: Invalid settings or range, or a daily amount your balance does not cover (
X-Error-Code: daily_over_balance). - 429 / 503: Respect the
Retry-Afterheader.
Key expiry
When you create a key under API & MCP, choose when it stops working: after 30 days, 90 days, 1 year (the default) or never. The key list shows each key’s end date. From that moment every request with the key gets a 401 with the message This API key expired on 2026-12-23. Create a new key under API & MCP., and an AI assistant connected with the key stops working too. An expired key cannot be extended; create a new key and replace the old one in your tool or script. GET /session returns expires_at (UTC, null for a key that never expires), so a script can warn itself in time. Apps connected by sign-in are not affected; their access refreshes on its own.
Revoking a key stops it at once. Changing the account password, resetting it or signing out everywhere revokes all of the account’s keys and disconnects its apps; create a new key afterward. If our team switches off API access for an account, all of its keys are revoked and are not restored later.