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

Python SDK Guide

This guide shows you how to install the Dataify Python SDK and use all of its features: SERP search engines (Google, Bing, Yandex, DuckDuckGo, Google Images / News / Maps, and more) and platform-specific scrapers (Amazon, LinkedIn, Instagram, TikTok, YouTube, Reddit, Twitter, Airbnb, Booking, Crunchbase, eBay, Facebook, GitHub, Glassdoor, Indeed, Walmart, Zillow, Google Maps, and more). The SDK has zero third-party dependencies (standard library urllib only) and uses synchronous HTTP; every tool function exposes all upstream parameters in its signature.

Installation and Configuration#

Install with pip:
After installation, import the package as dataify_sdk (note the underscore, not a hyphen).

Configuration#

You need a Dataify API token, which you can get from the Dataify console.
Option 1: Environment variable (recommended)
Option 2: Initialize directly
DataifyClient constructor parameters:
ParameterDescriptionDefault
tokenDataify API tokenRequired (or set via the DATAIFY_API_TOKEN environment variable)
base_urlUpstream base URLhttps://scraperapi.dataify.com
timeoutRequest timeout (seconds)120

Basic Usage#

DataifyClient is synchronous (zero dependencies, no async client). Each tool is a standalone function whose signature already carries default values, with a docstring that lists every upstream parameter:
If you omit client=, the process-level default client is used (you must set DATAIFY_API_TOKEN in the environment first):
result = google_images(q="noise cancelling headphones").

SERP Searches#

SERP tool functions are named after the engine and live under dataify_sdk.tools.<module>.

Google Search#

Google Images#

Google News#

Bing Search#

For the full list of SERP engines (including google_maps, google_trends, google_finance, duckduckgo, yandex, and more), see the tool names in docs/api_reference.md.

Platform Scrapers#

Each platform scraper is a standalone function named after its upstream spider_id with hyphens turned into underscores (for example, amazon_product_by_asin, linkedin_company_information_by_url). The sections below are grouped by platform.

Amazon#

LinkedIn#

Google Maps#

Instagram / YouTube / Walmart#

Finding a Tool#

For all 113 tool names, parameter tables, and Chinese descriptions, see docs/api_reference.md in the repository.
To list the exported tool names in Python:

Web API (Search / Extract / Map)#

The Web API provides search, content extraction, and site discovery, all called through client.ai_web.
MethodUpstream endpointDescription
client.ai_web.search(...)POST /searchSearch news, shopping, or academic results, with optional content extraction
client.ai_web.extract(...)POST /extractExtract Markdown, HTML, or links
client.ai_web.map(...)POST /mapDiscover the URLs, titles, and descriptions of a site's pages

Configuration#

The Web API gateway and the scraper upstream are configured separately:

Search#

Extract#

Map#

Output and Request ID#

The X-Request-Id response header is exposed as result.request_id.
An empty or None outputs value is returned as [].
A single object or primitive is wrapped as a one-element array.
Use client.ai_web.execute_raw(...) when you need to keep the raw upstream structure.

Low-Level Client Methods (Advanced)#

If you need to assemble requests yourself, use the low-level methods (request_serp uses the search channel, request_scraper uses the scraper channel):

Responses and Error Handling#

request_serp / request_scraper and all tool functions return a parsed dict; the HTTP status code is only carried by an exception, and only on error.
All exceptions inherit from dataify_sdk.errors.DataifyError:
ExceptionMeaning
DataifyAPIError(message, status_code, body)The upstream returned an error (status_code is the HTTP status code, body is the response body)
DataifyConnectionErrorThe network is unreachable
DataifyTimeoutErrorThe request timed out

Security Notes#

The token is equivalent to your account credentials. Never commit it to a code repository or write it into frontend code; use the DATAIFY_API_TOKEN environment variable instead.
This SDK is a server-side synchronous library and never runs in a browser, but still keep the token safe and never disclose it.
Recommended architecture: frontend → your backend → dataify_sdk → Dataify APIs.

Type Hints and Editor Support#

Python is a dynamic language with no compile-time type checking, but every tool function comes with:
Complete parameter defaults and type annotations (def google_images(q: str = 'pizza', client: DataifyClient | None = None));
A Chinese docstring listing every upstream parameter and whether it is required.
In an editor with a language server (VS Code + Pylance, PyCharm), hover over a function name to see its parameters and description. For the full parameter tables, see docs/api_reference.md.

Complete Example#

Resources#

ResourceDescriptionLink
📘 GitHub repositoryBrowse the source, try the examples, and contributeGitHub
📦 PyPI pagePackage listing and release historydataify-sdk
修改于 2026-11-19 03:29:26
上一页
JavaScript SDK Guide
下一页
TypeScript SDK Guide
Built with