dist/index.js), so the same package works both in TypeScript and directly in JavaScript — the API is identical; the only difference is that JavaScript gets no type annotations. The SDK also provides Web API search, content extraction, and site discovery.dataify-sdk: TypeScript consumes its type definitions (.d.ts), JavaScript consumes the compiled runtime code."type": "module" (ESM-only) and ships no CommonJS build. Make sure you import it as ESM:.mjs file extension (recommended, simplest);"type": "module" in your project's package.json;import().require("dataify-sdk") from CommonJS (.cjs, or no "type":"module") throws ERR_REQUIRE_ESM. Use the CommonJS pattern described below instead.DataifyClient constructor parameters: apiKey (required), scraperBaseUrl, webUnlockerBaseUrl, timeoutMs, fetchImpl..mjs)Promise; consume it with await:node demo.mjs.client.tools and are named after the engine. The sections below are grouped by engine.For the full list of SERP methods, see client.tools.specs.
client.tools, with lowerCamelCase method names. The sections below are grouped by platform.For the full list of tool names, see client.tools.specs.
client.aiWeb.| Method | Upstream endpoint | Description |
|---|---|---|
client.aiWeb.search(params) | POST /search | Search news, shopping, or academic results, with optional content extraction |
client.aiWeb.extract(params) | POST /extract | Extract Markdown, HTML, or links |
client.aiWeb.map(params) | POST /map | Discover the URLs, titles, and descriptions of a site's pages |
X-Request-Id response header is exposed as result.request_id.null outputs value is normalized to [].client.aiWeb.executeRaw(...) when you need to keep the raw upstream structure.import, use a dynamic import():node demo.cjs.| Capability | Endpoint |
|---|---|
| Scraper / SERP | https://scraperapi.dataify.com |
| Web Unlocker | https://webunlocker.dataify.com |
Authorization: Bearer <apiKey>.dataify-sdk → Dataify APIs..d.ts files in the same package. At runtime, client.tools.specs lets you introspect every tool's metadata (including params / required / id).client.tools.specs.Promise; catch errors with try/catch:.mjs)| Resource | Description | Link |
|---|---|---|
| 📘 GitHub repository | Browse the source, try the examples, and contribute | GitHub |
| 📦 npm page | Package listing and release history | dataify-sdk |