1. 搜索引擎API
Dataify
  • 使用教程
    • 网页数据采集
      • 网页采集
      • 搜索引擎API
        • 简介
        • 常见问题
        • 快速入门
        • 发送您的第一次请求
        • 计费说明
        • 响应代码
        • 请求参数说明
          • Google
            • 谷歌搜索
          • Bing
          • Yandex
          • DuckDuckGo
      • 视频下载
    • 通用采集
      • 简介
      • 快速入门
      • 发送您的第一次请求
      • 参数说明
      • 计费说明
      • 响应代码
  • 公共API
    • 搜索引擎API
      • 使用统计API
      • 任务接口
        • 谷歌搜索API
        • Bing搜索API
        • Yandex搜索API
        • DuckDuckGo搜索API
    • 通用采集API
      • 任务接口API
      • 使用统计API
    • 网页采集API
      • 使用统计API
      • 任务接口API
        • 创建任务说明
        • 任务运行状态说明
        • 任务列表获取说明
        • 获取抓取结果文件说明
  1. 搜索引擎API

发送您的第一次请求

使用 Dataify 的 通用采集API 发送您的第一个请求。在开始之前,您需要 API Token。
1.您可以在注册之后,联系客服,获得免费试用
2.然后,在开始抓取下复制您的凭证
代码示例: 获取 API 凭证后,使用以下代码发送您的第一个请求:【记得将代码示例中的“Token”替换为属于您自己的token】
image.png

通过engine定义您需要使用的搜索引擎,如engine=google#

CURL
Python
C#
Go
Node
Perl
PHP
Java
Ruby
发送请求后,API将返回JSON/HTML格式的输出结果:
输出
{
"code": 200,
"data": {
  "task_id": "ekvccltzfyljr26194xokss3t0b1jljh",
  "result": {
    "html": "<!DOCTYPE html><html itemscope=\"\" itemtype=\"http://schema.org/SearchResultsPage\" lang=\"ja\"><head><meta charset=\"UTF-8\"><meta content=\"origin\" name=\"referrer\"><link href=\"//www.gstatic.com/images/branding/searchlogo/ico/favicon.ico\" rel=\"icon\"><meta content=\"/images/branding/googleg/1x/googleg_standard_color_128dp.png\" itemprop=\"image\"><title>pizza - Google 検索</title><script nonce=\"CGgulagcszXriahrfCs71w\">window._hst=Date.now();</script><script nonce=\"CGgulagcszXriahrfCs71w\">(function(){var _g={kEI:'cdbhacPeLvmHp84Pz8TduQc',kEXPI:'31',kBL:'Ys2n',kOPI:89978449};(function(){var a;((a=window.google)==null?0:a.stvsc)?google.kEI=_g.kEI:window.google=_g;}).call(this);})();(function(){google.sn='web';google.kHL='ja';google.rdn=true;google.usb=false;})();(function(){\nvar g=this||self;function k(){return window.google&&window.google.kOPI||null};var l,m=!1,n=[];function p(a){for(var b;a&&(!a.getAttribute||!(b=a.getAttribute(\"eid\")));)a=a.parentNode;return b||l}function q(a){for(var b=null;a&&(!a.getAttribute||!(b=a.getAttribute(\"leid\")));)a=a.parentNode;return b}function r(a){/^http:/i.test(a)&&window.location.protocol===\"https:\"&&(google.ml&&google.ml(Error(\"a\"),!1,{src:a,glmm:1}),a=\"\");return a}\nfunction t(a,b,c,d,h){var e=\"\";b.search(\"&ei=\")===-1&&(e=\"&ei=\"+p(d),b.search(\"&lei=\")===-1&&(d=q(d))&&(e+=\"&lei=\"+d));var f=b.search(\"&cshid=\")===-1&&a!==\"slh\";d=\"&zx=\"+Date.now().toString();g._cshid&&f&&(d+=\"&cshid=\"+g._cshid);(c=c())&&(d+=\"&opi=\"+c);return\"/\"+(h||\"gen_204\")+\"?atyp=i&ct=\"+String(a)+\"&cad=\"+(b+e+d)};var u=google.usb;l=google.kEI;m=u||!1;google.getEI=p;google.getLEI=q;google.ml=function(){return null};google.log=function(a,b,c,d,h,e){e=e===void 0?k:e;c||(c=t(a,b,e,d,h));if(c=r(c))if(m)typeof window.navigator.sendBeacon===\"function\"&&window.navigator.sendBeacon(c,\"\");else{a=new Image;var f=n.length;n[f]=a;a.onerror=a.onload=a.onabort=function(){delete n[f]};a.src=c}};google.logUrl=function(a,b){b=b===void 0?k:b;return t(\"\",a,b)};}).call(this);(function(){google.y={};google.sy={};function e(a,b,d){if(a)var c=a.id;else{do c=Math.random();while(d[c])}d[c]=[a,b]}var f;(f=google).x||(f.x=function(a,b){e(a,b,google.y)});var g;(g=google).sx||(g.sx=function(a,b){e(a,b,google.sy)});google.bx=!1;var h;(h=google).lx||(h.lx=function(){});var k=[],l;(l=google).fce||(l.fce=function(a,b,d,c){k.push([a,b,d,c])});google.qce=k;google.adl=[];}).call(this);google.f={};(function(){\ndocument.documentElement.addEventListener(\"submit\",function(b){var a;if(a=b.target){var c=a.getAttribute(\"data-submitfalse\");a=c===\"1\"||c===\"q\"&&!a.elements.q.value?!0:!1}else a=!1;a&&(b.preventDefault(),b.stopPropagation())},!0);document.documentElement.addEventListener(\"click\",function(b){var a;a:{for(a=b.target;a&&a!==document.documentElement;a=a.parentElement)if(a.tagName===\"A\"){a=a.getAttribute(\"data-nohref\")===\"1\";break a}a=!1}a&&b.preventDefault()},!0);}).call(this);(function(){google.hs={h:true,nhs:false,sie:false};})();(function(){google.c={cap:2000,timl:false,vis:true};})();(function(){\nvar n=this||self;window.google=window.google||{};var p=window.performance&&window.performance.timing&&\"navigationStart\"in window.performance.timing,aa=google.stvsc&&google.stvsc.ns,q=p?aa||window.performance.timing.navigationStart:void 0;function r(){return window.performance.now()-(google.stvsc&&google.stvsc.pno||0)}var ba=google.stvsc&&google.stvsc.rs,t=p?ba||window.performance.timing.responseStart:void 0;function v(){var a,b;return(a=window.performance)==null?void 0:(b=a.getEntriesByType)==null?void 0:b.call(a,\"navigation\")[0]};var ca=google.c.cap,da=google.c.ehcl,ea=google.c.ssdi,w=google.c.timl;function x(a,b,e){google.tick(\"load\",a,b,e)}function y(a,b){google.c.e(\"load\",a,String(b))};var z={};function A(a,b){google.timers.load.m[a]===!1?b():(z[a]||(z[a]=[]),z[a].push(b))}google.c.q=A;google.caft=function(a){A(\"aft\",a)};function B(a,b,e,d){a:{var c=a.parentElement;if(c&&(c.classList.contains(\"q1MG4e\")||c.classList.contains(\"uhHOwf\"))&&(c.style.height||c.style.width)){var f=c.getBoundingClientRect(),g=a.getBoundingClientRect();if(f.height<g.height||f.width<g.width){a=c;break a}}}if(b)c=null;else for(c=a;c&&!c.hasAttribute(\"data-csic\");)c=c.parentElement;if(!c)for(c=a;c&&c!==b&&c.tagName!==\"G-SCROLLING-CAROUSEL\"&&!c.hasAttribute(\"data-sn-container\");)c=c.parentElement;b=c;(c=!a)||(a.style.display===\"none\"?c=!0:document.defaultView&&\ndocument.defaultView.getComputedStyle?(c=document.defaultView.getComputedStyle(a),c=!!c&&(c.visibility===\"hidden\"||c.height===\"0px\"&&c.width===\"0px\")):c=!1);if(c)d=0;else if(a.getBoundingClientRect){b:{for(c=a;c&&c!==b;c=c.parentElement)if(c.style.overflow===\"hidden\")break b;c=null}(f=c)?(c=a.getBoundingClientRect(),f=f.getBoundingClientRect(),c=c.bottom<f.top||c.top>=f.bottom||c.right<f.left||c.left>=f.right):c=
修改于 2026-04-17 06:45:03
上一页
快速入门
下一页
计费说明
Built with