Skip to main content
GET
/
projects
/
{projectId}
/
visibility
/
heatmap
Get visibility heatmap data
curl --request GET \
  --url https://devtune.ai/api/v2/projects/{projectId}/visibility/heatmap \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "platforms": [
      "<string>"
    ],
    "topics": [
      {
        "topicId": "<string>",
        "topicName": "<string>",
        "platforms": {}
      }
    ]
  },
  "meta": {
    "timestamp": "2023-11-07T05:31:56Z",
    "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

Authorization
string
header
required

API key with dtk_live_ prefix. Obtain from Settings > API Keys.

Path Parameters

projectId
string<uuid>
required

Query Parameters

daysBack
integer
default:30
Required range: 1 <= x <= 365
groupBy
enum<string>
default:topic

Group by topic (averaged across prompts) or by prompt (individual prompt metrics).

Available options:
topic,
prompt

Response

200 - application/json

Heatmap data

data
object
meta
object