Query topic demand
Query Hitfactor global attention map topic demand across YouTube tech channels, filtered by query, time window (d30, d90, d365), and signal stability (distributed vs fragile). Costs 1 credit.
Request examples
curl -sS -X POST "https://hitfactorapp.com/api/v1/research/demand" \
-H "Content-Type: application/json" \
-H "x-api-key: $HITFACTOR_API_KEY" \
-H "Idempotency-Key: req_2026_001" \
-d '{
"query": "developer tools",
"window": "d30",
"stability": "all"
}'const response = await fetch("https://hitfactorapp.com/api/v1/research/demand", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.HITFACTOR_API_KEY!,
"Idempotency-Key": "req_2026_001",
},
body: JSON.stringify({
"query": "developer tools",
"window": "d30",
"stability": "all"
}),
})
const { data, meta } = await response.json()
console.log(data, meta)curl -sS -X POST "https://hitfactorapp.com/api/v1/mcp" \
-H "Content-Type: application/json" \
-H "x-api-key: $HITFACTOR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "research_demand",
"arguments": {
"query": "developer tools",
"window": "d30",
"stability": "all",
"requestId": "req_2026_001"
}
}
}'Parameters
Idempotency-KeyheaderstringUnique retry key (up to 255 characters). Replaying the same key and body returns the original response with 0 extra credits charged.
maxLength: 255Request body
Send a JSON object with Content-Type: application/json. Unknown keys are rejected with 400 invalid_input.
querystringmaxLength: 200window"d30" | "d90" | "d365"default: "d30"stability"all" | "distributed" | "fragile"default: "all"limitintegerdefault: 20min: 1max: 50onlyChannelNichebooleandefault: falseResponse (200 OK)
Every successful response wraps the payload in data alongside billing and request metadata in meta.
snapshotDatestringrequirednullablewindow"d30" | "d90" | "d365"requiredtotalTopicsintegerrequiredmin: -9007199254740991max: 9007199254740991topicsobject[]requiredShow item fields
topicIdstringrequiredlabelstringrequiredkind"core" | "adjacent" | "excluded" | "non_tech"requiredshareOfCorenumberrequirednullabledeltanumberrequirednullableviewsintegerrequiredmin: -9007199254740991max: 9007199254740991stability"distributed" | "fragile"requiredchannelCountintegerrequiredmin: -9007199254740991max: 9007199254740991nicheMatchbooleanmatchedTerritoryNodesstring[]topChannelsobject[]Show item fields
channelIdstringrequiredtitlestringviewsnumberExample 200 response
{
"data": {
"snapshotDate": "2026-12-01",
"window": "d30",
"totalTopics": -9007199254740991,
"topics": [
{
"topicId": "example_topicId",
"label": "example_label",
"kind": "core",
"shareOfCore": 0.85,
"delta": 0.85,
"views": -9007199254740991,
"stability": "distributed",
"channelCount": -9007199254740991,
"nicheMatch": true,
"matchedTerritoryNodes": [
null
],
"topChannels": [
null
]
}
]
},
"meta": {
"requestId": "req_01j9example0000000000000",
"creditsCharged": 1,
"creditsRemaining": 499,
"replayed": false
}
}Error responses
400invalid_input401Missing or invalid API key402insufficient_credits403insufficient_scope404operation_not_found409channel_sync_pending or idempotency_conflict429rate_limited