百思维 的各 API 使用指南
GET
/api/fanout
API URL:
http://www.bestwaytool.com/api/fanout
将单个查询词扩展为多个相关查询,用于SEO关键词研究和内容策划。
💰 收费标准
按查询次数收费: 正式价格 ¥0.5元/次
测试阶段优惠 ¥0.3元/次
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| q | string | Required | 要扩展的查询词 |
| api_key | string | Required | 您的API密钥 |
GET http://www.bestwaytool.com/api/fanout?q=SEO指南&api_key=your_api_key
import requests
url = "http://www.bestwaytool.com/api/fanout"
params = {
"q": "SEO指南",
"api_key": "your_api_key_here"
}
response = requests.get(url, params=params)
data = response.json()
if data['success']:
expanded_queries = data['data']['expanded_queries']
for query in expanded_queries:
print(f"{query['query']} - {query['type']}")
else:
print(f"Error: {data['error']}")
{
"success": true,
"data": {
"generation_details": {
"target_query_count": 12,
"reasoning_for_count": "查询关于SEO指南,涉及多个方面如基础知识、工具、策略等,生成12个查询以全面覆盖用户需求。"
},
"expanded_queries": [
{
"query": "SEO基础教程",
"type": "重新表述",
"user_intent": "学习SEO基础知识",
"reasoning": "用户可能是SEO新手,寻找入门教程"
},
{
"query": "SEO优化技巧",
"type": "相关查询",
"user_intent": "提升SEO技能",
"reasoning": "用户想了解具体的优化方法和技巧"
},
{
"query": "Google SEO排名因素",
"type": "实体扩展",
"user_intent": "了解搜索引擎算法",
"reasoning": "用户关注影响排名的关键因素"
},
{
"query": "关键词研究工具",
"type": "相关查询",
"user_intent": "寻找SEO工具",
"reasoning": "用户需要工具来执行SEO任务"
},
{
"query": "网站SEO诊断",
"type": "隐含查询",
"user_intent": "分析网站SEO现状",
"reasoning": "用户可能需要评估当前网站的SEO情况"
},
{
"query": "SEO vs SEM区别",
"type": "比较查询",
"user_intent": "区分不同营销策略",
"reasoning": "用户想了解SEO和SEM的异同"
},
{
"query": "内容SEO优化",
"type": "相关查询",
"user_intent": "优化网站内容",
"reasoning": "用户关注内容层面的SEO优化"
},
{
"query": "外链建设策略",
"type": "相关查询",
"user_intent": "提升网站权重",
"reasoning": "用户想了解如何获取高质量外链"
},
{
"query": "SEO常见错误",
"type": "隐含查询",
"user_intent": "避免SEO陷阱",
"reasoning": "用户希望避免常见的SEO误区"
},
{
"query": "移动端SEO优化",
"type": "实体扩展",
"user_intent": "优化移动搜索体验",
"reasoning": "移动搜索越来越重要,用户关注移动端优化"
},
{
"query": "本地SEO优化",
"type": "实体扩展",
"user_intent": "提升本地搜索排名",
"reasoning": "本地企业需要针对性的SEO策略"
},
{
"query": "SEO效果评估指标",
"type": "相关查询",
"user_intent": "衡量SEO成效",
"reasoning": "用户需要了解如何衡量SEO工作的效果"
}
],
"original_query": "SEO指南"
},
"quota_remaining": 95,
"quota_used": 1
}
| 查询词 | 类型 | 用户意图 | 生成理由 |
|---|---|---|---|
| SEO基础教程 | 重新表述 | 学习SEO基础知识 | 用户可能是SEO新手,寻找入门教程 |
| SEO优化技巧 | 相关查询 | 提升SEO技能 | 用户想了解具体的优化方法和技巧 |
| Google SEO排名因素 | 实体扩展 | 了解搜索引擎算法 | 用户关注影响排名的关键因素 |
| 关键词研究工具 | 相关查询 | 寻找SEO工具 | 用户需要工具来执行SEO任务 |
| SEO vs SEM区别 | 比较查询 | 区分不同营销策略 | 用户想了解SEO和SEM的异同 |
| 内容SEO优化 | 相关查询 | 优化网站内容 | 用户关注内容层面的SEO优化 |
| 外链建设策略 | 相关查询 | 提升网站权重 | 用户想了解如何获取高质量外链 |
| SEO常见错误 | 隐含查询 | 避免SEO陷阱 | 用户希望避免常见的SEO误区 |
| 移动端SEO优化 | 实体扩展 | 优化移动搜索体验 | 移动搜索越来越重要,用户关注移动端优化 |
| 本地SEO优化 | 实体扩展 | 提升本地搜索排名 | 本地企业需要针对性的SEO策略 |
| SEO效果评估指标 | 相关查询 | 衡量SEO成效 | 用户需要了解如何衡量SEO工作的效果 |
| 状态码 | 状态 | 说明 |
|---|---|---|
| 200 | OK | 请求成功,一切正常 |
| 400 | Bad Request | 请求参数错误或缺少必需参数 |
| 401 | Unauthorized | 未提供有效的API密钥 |
| 403 | Forbidden | API密钥已被禁用或账户权限不足 |
| 404 | Not Found | 请求的资源不存在 |
| 429 | Too Many Requests | 配额已用完,需要充值 |
| 500 | Server Error | 服务器内部错误 |
| 503 | Service Unavailable | 服务暂时不可用 |
如有任何问题、需要技术支持或申请API密钥,请通过以下方式联系我们: