Skip to content

Hitfactor API and MCP

Connect your scripts and AI clients to Hitfactor YouTube research, packaging, retention, and script tools.

Use the Hitfactor Public API and MCP server to run YouTube research, retention analysis, title and hook generation, thumbnail design, concept ideation, and script writing from your own tools.

SurfaceURLAuth
REST APIhttps://hitfactorapp.com/api/v1x-api-key header
MCP Serverhttps://hitfactorapp.com/api/v1/mcpx-api-key header or OAuth 2.1 Bearer token
OpenAPI 3.1 SpecGET /api/v1/openapi.jsonNone

Every API workspace connects one YouTube channel and confirms one product domain during onboarding. Hitfactor then runs setup jobs to sync your channel performance and transcripts (channel_sync), index your product domain (knowledge_crawl), and build audience profiles (avatar_discovery).

Global tools (credits_balance, operation_get, research_demand, research_radar) work immediately after activation. Channel-grounded tools return 409 channel_sync_pending (REST) or -32009 (MCP) with 0 credits charged until channel_sync and knowledge_crawl finish.

  1. Open /<workspace>/api in Hitfactor and create an API key (hf_live_...).
  2. Check your credit balance (0 credits):
Terminal window
curl -sS "https://hitfactorapp.com/api/v1/credits/balance" \
-H "x-api-key: $HITFACTOR_API_KEY"
  1. Query topic demand across YouTube tech channels (1 credit):
Terminal window
curl -sS -X POST "https://hitfactorapp.com/api/v1/research/demand" \
-H "Content-Type: application/json" \
-H "x-api-key: $HITFACTOR_API_KEY" \
-d '{"query": "developer tools", "window": "d30", "limit": 5}'

Every successful REST response uses one envelope:

{
"data": { "snapshotDate": "2026-12-01", "window": "d30", "totalTopics": 12, "topics": [] },
"meta": { "requestId": "req_01...", "creditsCharged": 1, "creditsRemaining": 499 }
}