1. SDK
Dataify
English
  • 中文
  • English
  • Introduction
    • Overview
    • Support
  • Data Services
    • Getting Started Guide
    • MCP Setup Guide
    • Dataify cloud delivery tutorial
    • Web Scraper API
      • Introduction
      • Quick Start Guide
      • Send Your First Request
      • API Request Builder
      • Request Parameter Reference
        • Amazon Parameters
        • EBay Parameters
        • Walmart Parameters
    • Video Scraper API
      • Introduction
      • Quick Start Guide
      • Send Your First Request
      • API Request Builder
      • Request Parameter
    • SERP API
      • Overview
      • Quick Start Guide
      • Send your first request
      • Billing Information
      • FAQ
      • Status Code
      • Request Parameter Reference
        • Google
          • Google Search
          • Google Light
          • Google AI Mode
          • Google Map
          • Google Scholar
          • Google News
          • Google Lens
          • Google Jobs
          • Google Videos
          • Google Local
          • Google Trends
          • Google finance
          • Google Flight
          • Google Hotel
          • Google Images
          • Google Patent
          • Google Shopping
          • Google Play
        • Bing
          • Bing Search
          • Bing Map
          • Bing News
          • Bing Videos
          • Bing Images
          • Bing Shopping
        • DuckDuckGo
          • DuckDuckGo
        • Yandex
          • Yandex
      • Response Field Reference
        • Google
          • Google Search
          • Google AI Mode
          • Google Images
          • Google Shopping
          • Google videos
          • Google news
          • Google Map
          • Google Lens
          • Google Flight
          • Google Scholar
          • Google Hotel
          • Google Jobs
          • Google Trends
          • Google Local
          • Google Play
          • Google Finance
        • Bing
          • Bing search
          • Bing Map
          • Bing Shopping
          • Bing Video
          • Bing Images
          • Bing News
        • Yandex
          • Yandex
    • Web API
      • Overview
      • Quick Start
      • Billing Information
      • Send Your First Request
        • Search API
        • Extract API
        • Map API
      • Parameter Reference
        • Search API
        • Export API
        • Map API
        • Response code
    • Web Unlocker API
      • Overview
      • Quick Start
      • Send Your First Request
      • Parameter Reference
      • Billing Information
      • Response code
    • FAQ
      • Frequently Asked Questions
  • Network Infrastructure
    • Dynamic Network Services
      • Dynamic Residential Network
        • Introduction
        • Quick Start
          • Account and Password Authentication
          • Whitelist
          • List of countries/regions
      • High bandwidth network
        • Introduction
        • Quick Start
          • Account Verification
          • Whitelist
    • Static Network Services
      • Static ISP Network
        • Introduction
        • Quick Start
      • Static Data Center
        • Introduction
        • Quick Start
  • Public API
    • Overview
    • Get Token
    • Account
      • Query Credit Balance
      • Query Traffic Balance
      • Query Traffic Usage Records
    • Geolocation
      • Get Country Lists
      • Get State Lists
      • Get City Lists
      • Get ASN Lists
    • Network Service Users
      • Update user information
      • Delete user
      • Daily Traffic Usage Records
      • Hourly Traffic Usage Records
    • Whitelist
      • Query whitelist list
      • Add to Whitelist
      • Remove from Whitelist
    • ISP / Datacenter Proxies
      • Get a list of network nodes
      • Query network nodes expired
    • Dynamic High Bandwidth
      • Get a list of dynamic high-bandwidth servers
      • Restart dynamic high-bandwidth server
      • Renewal for Dynamic High-Bandwidth Servers
      • Dynamic High-Bandwidth Upgrade
      • Whitelist for High-Bandwidth Server Sub-accounts
      • Add sub-accounts to the high-bandwidth server whitelist
      • Remove the sub-account from the high-bandwidth server whitelist.
    • Web Scraper API
      • Usage Statistics
      • Task API
        • Create Task Instructions
        • Task Execution Status Description
        • Task List Retrieval Instructions
        • Task Download Instructions
        • Get Latest Task Instructions
    • SERP API
      • Interface Information
      • Task API
        • Google search API
        • Bing Search API
        • Duckduckgo search API
        • Yandex search API
    • Web API
      • Search API
      • Extract API
      • Map API
    • Web Unlocker API
      • Get Task Interface API
      • Using the statistics API
  • Integrations
    • AdsPower
    • BitBrowser
    • ClonBrowser
    • Hubstudio
    • Puppeteer
    • Playwright
    • Selenium
    • Chrome
  • FAQ
    • Payment Issues
    • Data Services
    • Network Infrastructure
  • SDK
    • Go SDK Guide
    • JavaScript SDK Guide
    • Python SDK Guide
    • TypeScript SDK Guide
  • CLI
    • Overview
    • Installation
    • Commands
    • Usage Examples
    • FAQ
  • MCP Server
    • Overview
    • Tools
    • Usage Examples
    • Output Format
    • FAQ
    • Agent Setup
      • Codex
      • Claude Code
      • Claude Desktop
      • Cursor
      • VS Code / GitHub Copilot
      • Windsurf / Devin Local
      • Cline
      • Google Antigravity
      • Gemini CLI
      • OpenClaw
      • CodeBuddy
      • WorkBuddy
      • Alibaba Qoder / Qoder CN
      • Alibaba Qwen Code
      • Moonshot AI Kimi Code
      • ByteDance Trae
      • ByteDance Coze
    • Remote Mode
      • Quick Start
      • Advanced
  • SKILLS
    • Guide
    • Agent Setup
      • WorkBuddy
  1. SDK

Go SDK Guide

This guide shows you how to install the Dataify Go SDK and use all of its features: SERP search engines (Google, Bing, Yandex, DuckDuckGo, Google Images / News / Maps, and more), platform-specific scrapers (Amazon, LinkedIn, Instagram, TikTok, YouTube, Reddit, Twitter, Airbnb, Booking, Crunchbase, eBay, Facebook, GitHub, Glassdoor, Indeed, Walmart, Zillow, Google Maps, and more), Web Unlocker, and Web API search, content extraction, and site mapping.

Installation and Configuration#

The package name for imports is dataify:

Configuration#

You need a Dataify API token, which you can get from the Dataify console.
Option 1: Environment variable (recommended)
Option 2: Initialize directly
Optional configuration (functional options):
If the token is missing, requests return dataify.ErrMissingToken.

Basic Usage#

client.<Service>.<Method>(ctx, <Request>) — the service maps to a platform, the method maps to a tool, and the request is a strongly typed struct:

SERP Searches#

SERP methods live under client.<Engine>.<Method>.

Google Search#

Google Images#

Google News / Trends / Maps#

Bing Search#

For the full list of SERP methods, see go doc github.com/dataify-server/dataify-sdk-go Google (includes Search / Images / News / Maps / Trends / Shopping / Finance / Flights / Scholar / Videos and more).

Platform Scrapers#

Scraper methods live under client.<Platform>.<Method>, and the request is a strongly typed struct. The sections below are grouped by platform.

Amazon#

LinkedIn#

Instagram / YouTube / Walmart#

Available Services#

The service fields available on Client:
Airbnb · Amazon · Bing · Booking · Crunchbase · DuckDuckGo · EBay · Facebook · GitHub · Glassdoor · Google · Indeed · Instagram · LinkedIn · Reddit · TikTok · Twitter · Walmart · WebUnlocker · Yandex · YouTube · Zillow
Each service exposes a number of tool methods (for example, Amazon has Product / Comment / Seller / ProductList). For the method names and request struct fields of every tool, refer to go doc github.com/dataify-server/dataify-sdk-go.

Web Unlocker#

For the exact fields, refer to go doc github.com/dataify-server/dataify-sdk-go.RequestWebUnlockerRequest (URL / Type / JsRender / BlockResources / CleanContent / Country / Headers / Cookies / Wait / WaitFor / FollowRedirect).

Web API (Search / Extract / Map)#

The Web API, available through client.AIWeb, provides synchronous search, content extraction, and site discovery.
MethodUpstream endpointDescription
client.AIWeb.Search(ctx, req)POST /searchSearch news, shopping, or academic results, with optional content extraction
client.AIWeb.Extract(ctx, req)POST /extractExtract Markdown, HTML, or links
client.AIWeb.Map(ctx, req)POST /mapDiscover the URLs, titles, and descriptions of a site's pages

Search#

Extract#

Map#

Output and Request ID#

The X-Request-Id response header is exposed as result.RequestID.
An empty or null Outputs value is normalized to an empty array.
Arrays stay arrays; a single object is wrapped as a one-element array.
Use client.AIWeb.ExecuteRaw(...) when you need to keep the raw upstream structure.

Responses and Error Handling#

Every tool method returns (*RawResponse, error). A successful RawResponse only exposes read methods: Bytes() []byte, String() string, and Decode(v any) error (there is no Body() method and no StatusCode field).
Network and upstream errors return *dataify.APIError (with StatusCode int and Body []byte). Note that StatusCode and Body are fields of APIError (returned on error), not of the successful RawResponse.

Security Notes#

The token is equivalent to your account credentials. Never commit it to a code repository; use the DATAIFY_TOKEN environment variable instead.
This SDK is a server-side library. Do not compile it into a client application that will be distributed and could be decompiled.
Recommended architecture: frontend → your backend → dataify → Dataify APIs.

Type Hints and Editor Support (IntelliSense)#

Go is a statically typed language, so every request struct field and values such as StatusCode are checked by the compiler. In VS Code (with the Go extension) or GoLand, hover over client.Google.Search, dataify.GoogleSearchRequest, and similar symbols to see the full field list and documentation. The authoritative API reference is the command-line query:

Complete Example#

Resources#

ResourceDescriptionLink
📘 GitHub repositoryBrowse the source, try the examples, and contributeGitHub
📦 Go moduleModule documentation and release notesdataify-sdk-go
修改于 2026-11-19 03:27:45
上一页
Network Infrastructure
下一页
JavaScript SDK Guide
Built with