开发者文档
TheNicheGap API 文档
RESTful API,支持 Bearer Token 认证。额度与网页端共享同一池。
认证方式
在请求头中携带 Bearer Token(在 Dashboard → 设置 中生成):
Authorization: Bearer YOUR_API_KEY
Base URL
https://thenichegap.com
接口列表
POST
/api/analyzeAUTH REQUIRED执行 SEO 内容机会分析
请求体 (JSON)
{
"keyword": "best standing desk",
"location": "United States"
}响应示例
{
"success": true,
"report": {
"intent": { "type": "Commercial Investigation", "confidence": 94, "oneLiner": "..." },
"mustHaves": [...],
"contentGaps": [...],
"outline": { "h1": "...", "sections": [...] }
}
}GET
/api/analyze?keyword=...快速演示(无需认证)
响应示例
{ "success": true, "report": { ... } }速率限制
| 套餐 | 每月额度 | 速率限制 |
|---|---|---|
| 免费 | 1 | 1 req/min |
| 基础版 ($15) | 100 | 10 req/min |
| 进阶版 ($49) | 500 | 30 req/min |