Studies from your own code.

Send a URL or an image to the API and get the scores and image links back as JSON. One call, about 14 seconds.

Your key.

Every request carries your key in one of two headers. Keep it in your server's secrets and call the API from server code only. It refuses calls made from a web page, and a key used in a browser can be read by anyone who visits.

Api-key: <your key>
Authorization: Bearer <your key>

Base URL: https://attention.clickthrough-marketing.com

Keys come with the Pro and Agency plans. Once your plan is paid, the account owner makes keys in the account. There's no waiting for us.

A key is shown once, when you make it. We keep only a hash of it, so copy it somewhere safe. Give each key a name, and revoke any of them in one click.

Each key is capped at your plan's monthly allowance and has a per-minute rate limit. The account owner gets an email whenever a key is made, and the account shows usage for every key.

GET /v1/profile shows how many studies you've run this month.

Plans.

Prices are in pounds sterling. Pay monthly, or pay for a year and each month costs less.

Starter

£25 a month

£20 a month billed annually

  • 50 studies a month
  • 1 user
  • No API or MCP

Pro

£95 a month

£79 a month billed annually

  • 300 studies a month
  • 3 users
  • API and MCP

Agency

£249 a month

£199 a month billed annually

  • 1,500 studies a month
  • 10 users
  • API and MCP

A study is one URL or one image, at desktop or phone size. The same page at both sizes is two studies.

When you reach your allowance, studies stop with a message that says so. Buy 50 more for £15 or move up a plan. We never add an overage charge, and unused studies don't roll over to the next month.

Run a study on a URL.

study_type is web for desktop or mobile for a phone. With "wait": true the response arrives when the study is done. Without it you get a 202 straight away, then ask GET /v1/studies/{id} until status is done or failed.

POST /v1/studies
Content-Type: application/json

{"url": "https://example.com", "study_type": "web", "name": "Example home page", "wait": true}

Run a study on an image.

Send the image as a multipart field called file. Set study_type to web or mobile for a page screenshot. Leave it out for an ad or other creative, and it's scored against creatives.

POST /v1/studies?wait=true
Content-Type: multipart/form-data

file=<the image>
name=Homepage design v2
study_type=web

Studies run one at a time. If several arrive together, later ones queue for a few seconds each.

What comes back.

The figures below are illustrative. Each score runs from 0 to 100 and band is the typical range. For an image, CTA pull, headline pull and the DLD index appear once you mark areas of interest named Primary CTA, Secondary CTA or Heading.

{
  "id": "…",
  "name": "Example home page",
  "url": "https://example.com",
  "study_type": "web",
  "status": "done",
  "width": 1280,
  "height": 800,
  "scores": {
    "focus": {"label": "Focus", "score": 72, "band": [60, 85]},
    "clarity": {…},
    "cognitive_demand": {…},
    "memory": {…},
    "engagement": {…},
    "cta_pull": {…},
    "headline_pull": {…}
  },
  "dld_index": {"value": 61},
  "aois": [{"name": "Main CTA", "x": 40, "y": 30, "width": 20, "height": 8,
            "share": 0.061, "first_glance_share": 0.094}],
  "images": {
    "heatmap": "https://attention.clickthrough-marketing.com/v1/studies/…/image/heatmap",
    "overlay": "…",
    "first_glance": "…",
    "capture": "…"
  }
}

For a URL, a finished study also shows what the vision model read under vision: the headline, whether it was part of an image, and whether a pop-up was closed. GET /v1/scores explains every score, and GET /v1/glossary returns the same text ready to use as tooltips.

Areas of interest.

Send up to 10 boxes to see how much attention a particular part of the page gets. Positions and sizes are percentages of the page. The response is the study again, with share and first-glance share filled in for each box.

POST /v1/studies/{id}/aoi

{"aois": [{"name": "Main CTA", "x": 40, "y": 30, "width": 20, "height": 8}]}

Every call.

CallWhat it does
POST /v1/studiesRuns a study on a URL or an image
GET /v1/studies/{id}One study
DELETE /v1/studies/{id}Deletes a study you made
POST /v1/studies/{id}/aoiSets areas of interest and scores them
GET /v1/studies/{id}/aoiA study's areas of interest
GET /v1/studies/{id}/image/{kind}heatmap, overlay, first_glance, first_glance_layer, capture or aoi
GET /v1/profileChecks your key works, and shows the version and this month's usage
GET /v1/scoresWhat every score measures and how it is worked out
GET /v1/glossaryThe same text, ready to use as tooltips

Studies are kept until you delete them. A study's image links stop working when it's deleted.

Examples.

Node

const BASE = "https://attention.clickthrough-marketing.com";
const headers = { "Api-key": process.env.ATTENTION_API_KEY };

const res = await fetch(`${BASE}/v1/studies`, {
  method: "POST",
  headers: { ...headers, "Content-Type": "application/json" },
  body: JSON.stringify({ url: "https://example.com", study_type: "web", wait: true }),
});
const study = await res.json();
const heatmapLink = study.images.heatmap; // opens without a key

Python

import os, requests

BASE = "https://attention.clickthrough-marketing.com"
headers = {"Api-key": os.environ["ATTENTION_API_KEY"]}

study = requests.post(f"{BASE}/v1/studies", headers=headers, timeout=120,
                      json={"url": "https://example.com", "study_type": "web", "wait": True}).json()
heatmap_link = study["images"]["heatmap"]  # opens without a key

From Claude.

The API is also an MCP server, with the same key. Add it to Claude Code like this.

claude mcp add --transport http attention https://attention.clickthrough-marketing.com/mcp/ --header "Api-key: <your key>"

Errors.

CodeMeaning
400Something in the request isn't right. The message says what
401The key is missing or wrong
404No study with that id
409That image isn't ready yet, or the study failed

A failed study has status: "failed" and an error message. If something isn't working, send us the study id and the time of the call.

Put it on your own pages.

The Pro and Agency plans come with API keys, so you can run studies from your own code, or from Claude.