Skip to content

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.

POSThttps://hitfactorapp.com/api/v1/research/demand
MCP toolresearch_demandCost1 creditModeSync (200 OK)Scoperesearch:readChannel syncNot required

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"
}'

Parameters

Idempotency-Keyheaderstring

Unique retry key (up to 255 characters). Replaying the same key and body returns the original response with 0 extra credits charged.

maxLength: 255

Request body

Send a JSON object with Content-Type: application/json. Unknown keys are rejected with 400 invalid_input.

querystring
maxLength: 200
window"d30" | "d90" | "d365"
default: "d30"
stability"all" | "distributed" | "fragile"
default: "all"
limitinteger
default: 20min: 1max: 50
onlyChannelNicheboolean
default: false

Response (200 OK)

Every successful response wraps the payload in data alongside billing and request metadata in meta.

snapshotDatestringrequirednullable
window"d30" | "d90" | "d365"required
totalTopicsintegerrequired
min: -9007199254740991max: 9007199254740991
topicsobject[]required
Show item fields
topicIdstringrequired
labelstringrequired
kind"core" | "adjacent" | "excluded" | "non_tech"required
shareOfCorenumberrequirednullable
deltanumberrequirednullable
viewsintegerrequired
min: -9007199254740991max: 9007199254740991
stability"distributed" | "fragile"required
channelCountintegerrequired
min: -9007199254740991max: 9007199254740991
nicheMatchboolean
matchedTerritoryNodesstring[]
topChannelsobject[]
Show item fields
channelIdstringrequired
titlestring
viewsnumber
Example 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_input
401Missing or invalid API key
402insufficient_credits
403insufficient_scope
404operation_not_found
409channel_sync_pending or idempotency_conflict
429rate_limited