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.
Base URLs
Section titled “Base URLs”| Surface | URL | Auth |
|---|---|---|
| REST API | https://hitfactorapp.com/api/v1 | x-api-key header |
| MCP Server | https://hitfactorapp.com/api/v1/mcp | x-api-key header or OAuth 2.1 Bearer token |
| OpenAPI 3.1 Spec | GET /api/v1/openapi.json | None |
Workspace Onboarding
Section titled “Workspace Onboarding”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.
Quickstart
Section titled “Quickstart”- Open
/<workspace>/apiin Hitfactor and create an API key (hf_live_...). - Check your credit balance (0 credits):
curl -sS "https://hitfactorapp.com/api/v1/credits/balance" \ -H "x-api-key: $HITFACTOR_API_KEY"- Query topic demand across YouTube tech channels (1 credit):
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 }}