用户协议
网站竞价词挖掘APIv2
通过域名查询域名下的竞价词
低至: 0.003 元/次 ( 查询1个url,每页计1次调用 )
  • API说明
  • 错误码参照
  • 价格与请求限制
  • 示例代码
详细说明:
  • 接口地址:http://apis.5118.com/bidword/v2
  • 返回格式:json
  • 请求方式:POST
  • 在线调试

请求示例:http://apis.5118.com/bidword/v2
提交任务调试工具: Postman示例
提交任务请求参数说明:
名称 类型 必填 默认值 说明
url string 查询域名
page_index int 1 当前分页
page_size int 500 每页返回数据的数量(最大返回数量500条)
isc int 0 是否返回高亮html标签(默认不返回)
提交任务返回参数说明:
名称 类型 默认值 说明
errcode string 0 返回的错误代码
errmsg string 返回的错误说明
total int 总数量
page_count int 总页数
page_index int 1 当前分页
page_size int 500 每页返回数据的数量(最大返回数量500条)
keyword string 关键词
search_count int 搜索结果(不再返回数据)
bidword_company_count int 竞价公司数量(不再返回数据)
long_keyword_count int 长尾词数量(不再返回数据)
title string 竞价标题
intro string 竞价文案
bidword_semprice string 竞价点击价格
bidword_pcpv int PC日检索量
bidword_wisepv int 移动日检索量
bidword_kwc int 竞价竞争度(1、高 2、中 3、低)
index int 流量指数
mobile_index int 移动指数
haosou_index int 360指数(不再返回数据)
urlcount_30day int 最近30天竞价公司
urlcount int 总竞价公司
firstfindtime string 发现时间
joindate string 最早发现时间
返回结果排序说明: string 指数 倒序
JSON返回示例:
{
    "errcode": "0",
    "errmsg": "",
    "data": {
        "total": 3125,
        "page_count": 7,
        "page_index": 1,
        "page_size": 500,
        "keywords": [
            {
                "keyword": "手工之家",
                "search_count": 0,
                "bidword_company_count": 0,
                "long_keyword_count": 0,
                "title": "<font color=#CC0000>手工之家</font>酒杯/酒具钜惠盛典-京东家装厨具,大牌齐聚,低价超实惠!",
                "intro": "适合家庭做的手工工厂,外贸订单爆仓,诚招适合家庭做的手工户,小投资,大回报.",
                "bidword_semprice": "0.71~5.73",
                "bidword_pcpv": 7,
                "bidword_wisepv": 79,
                "bidword_kwc": 1,
                "index": 0,
                "mobile_index": 0,
                "haosou_index": 0,
                "urlcount_30day": 8,
                "urlcount": 341,
                "firstfindtime": "2022-08-02T16:00:00",
                "joindate": "2022-08-02T16:00:00"
            }
			...
				]
	}
}

提交充值订单
状态回调配置说明
服务级错误码参照(error_code):
错误码 说明
100101 调用次数不够,请充值
100102 服务每秒调用量超限
100103 服务每小时调用量超限
100104 服务每天调用量超限
100111 调用字数不够,请充值
100201 url无法解析
100202 请求缺少apikey
100203 无效的apikey
100204 api不存在
100205 api已经关闭
100206 后端服务响应status非200
100207 后端服务未正确接入
100208 请求方式不支持
100301 Api商城 内部错误
100302 请求后端服务过程中错误
100303 系统繁忙稍候再试
100403 您输入的apikey不正确
系统级错误码参照:
错误码 说明
200101 暂无数据
200107 服务器超时
200201 传进参数为空
200202 用户ID为空
200204 请提交要查询的网址
200301 请提交正确格式的网址
错误码格式说明:
2 002 01
服务器错误(1:为系统级别错误) 服务模块代码(即数据ID) 具体错误代码
资费说明:
名称 价格 次数 说明
试用套餐 0.00 100
套餐一 100.00 10000
套餐二 500.00 100000
套餐三 2500.00 1000000
示例代码:
  1. <?php
  2. $host = "http://apis.5118.com";
  3. $path = "/bidword/v2";
  4. $method = "POST";
  5. $apikey = "你要调用API的apikey";
  6. $headers = array();
  7. array_push($headers, "Authorization:" . $apikey);
  8. //根据API的要求,定义相对应的Content-Type
  9. array_push($headers, "Content-Type".":"."application/x-www-form-urlencoded; charset=UTF-8");
  10. $querys = "";
  11. $bodys = "url=url&page_index=page_index&page_size=page_size";
  12. $url = $host . $path;
  13. $curl = curl_init();
  14. curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
  15. curl_setopt($curl, CURLOPT_URL, $url);
  16. curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
  17. curl_setopt($curl, CURLOPT_FAILONERROR, false);
  18. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  19. curl_setopt($curl, CURLOPT_HEADER, true);
  20. if (1 == strpos("$".$host, "https://"))
  21. {
  22. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  23. curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
  24. }
  25. curl_setopt($curl, CURLOPT_POSTFIELDS, $bodys);
  26. var_dump(curl_exec($curl));
  27. ?>
  1. using System.IO;
  2. using System.Text;
  3. using System.Net;
  4. using System.Net.Security;
  5. using System.Security.Cryptography.X509Certificates;
  6. private const String host = "http://apis.5118.com";
  7. private const String path = "/bidword/v2";
  8. private const String method = "POST";
  9. private const String apikey = "你要调用的接口apikey";
  10. static void Main(string[] args)
  11. {
  12. String querys = "";
  13. String bodys = "url=url&page_index=page_index&page_size=page_size";
  14. String url = host + path;
  15. HttpWebRequest httpRequest = null;
  16. HttpWebResponse httpResponse = null;
  17. if (0 < querys.Length)
  18. {
  19. url = url + "?" + querys;
  20. }
  21. if (host.Contains("https://"))
  22. {
  23. ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);
  24. httpRequest = (HttpWebRequest)WebRequest.CreateDefault(new Uri(url));
  25. }
  26. else
  27. {
  28. httpRequest = (HttpWebRequest)WebRequest.Create(url);
  29. }
  30. httpRequest.Method = method;
  31. httpRequest.Headers.Add("Authorization", apikey);
  32. //根据API的要求,定义相对应的Content-Type
  33. httpRequest.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
  34. if (0 < bodys.Length)
  35. {
  36. byte[] data = Encoding.UTF8.GetBytes(bodys);
  37. using (Stream stream = httpRequest.GetRequestStream())
  38. {
  39. stream.Write(data, 0, data.Length);
  40. }
  41. }
  42. try
  43. {
  44. httpResponse = (HttpWebResponse)httpRequest.GetResponse();
  45. }
  46. catch (WebException ex)
  47. {
  48. httpResponse = (HttpWebResponse)ex.Response;
  49. }
  50. Console.WriteLine(httpResponse.StatusCode);
  51. Console.WriteLine(httpResponse.Method);
  52. Console.WriteLine(httpResponse.Headers);
  53. Stream st = httpResponse.GetResponseStream();
  54. StreamReader reader = new StreamReader(st, Encoding.GetEncoding("utf-8"));
  55. Console.WriteLine(reader.ReadToEnd());
  56. Console.WriteLine("\n");
  57. }
  58. public static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
  59. {
  60. return true;
  61. }
推荐API
百亿长尾词库,含指数和搜索量
获取域名(含子域名)PC端排名词

系统通知