Skip to content

ParallaxAPIs/parallaxapis-sdk-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

53 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Parallax Logo ParallaxAPIs TypeScript SDK: Datadome & PerimeterX

TypeScript SDK for bypassing DataDome and PerimeterX anti-bot protection.

πŸ“– Overview

ParallaxAPIs provides a request-based solution for bypassing DataDome and PerimeterX anti-bot systems. Instead of relying on slow, resource-heavy browser automation, our API generates valid cookies and tokens in 200-400ms through direct HTTP requests.

What We Solve:

  • βœ… DataDome - Slider captchas, interstitial pages, cookie generation, tags payload
  • βœ… PerimeterX - Cookie generation (_px3), challenge solver, vid & cts tokens

Key Benefits:

  • ⚑ Lightning Fast - 200-400ms response times vs 5-10+ seconds for browsers
  • πŸ”§ Simple Integration - Clean API with comprehensive documentation, no browser management required
  • πŸš€ Highly Scalable - Handle thousands of concurrent requests with minimal resources
  • βš™οΈ Flexible Configuration - Custom timeouts, HTTP clients, and proxy settings
  • πŸ’° Cost Effective - Lightweight infrastructure, minimal proxy usage
  • πŸ”„ Always Updated - We handle all reverse engineering and updates for you

πŸš€ Quick Start

Get started with ParallaxAPIs SDK's in under 5 minutes:

  1. Join our Discord - Connect with our community
  2. Create a ticket - Request your API key
  3. Get your free trial - Start testing immediately
  4. Install the SDK - Choose your preferred language
  5. Solve all anti-bots in seconds - Start bypassing DataDome, PerimeterX & more

πŸ“¦ Installation

npm install parallaxapis-sdk-ts

NPM Install Demo


πŸ§‘β€πŸ’» Datadome Usage

⚑ SDK Initialization

import { DatadomeSDK } from "parallaxapis-sdk-ts";

// Basic initialization with API key
const sdk = new DatadomeSDK({ apiKey: "Key" });

// Custom host
const sdk = new DatadomeSDK({ apiKey: "Key", apiHost: "example.host.com" });

// Advanced configuration with timeouts and custom dispatcher
import { ProxyAgent } from "undici";

const sdk = new DatadomeSDK({
  apiKey: "Key",
  timeout: 30000, // Request timeout in milliseconds (default: none) (optional)
  bodyTimeout: 10000, // Body timeout in milliseconds (default: none) (optional)
  dispatcher: new ProxyAgent("http://proxy:port"), // Custom undici dispatcher (optional)
});

πŸ•΅οΈβ€β™‚οΈ Generate New User Agent

import { DatadomeSDK } from "parallaxapis-sdk-ts";

const sdk = new DatadomeSDK({ apiKey: "Key" });

const userAgent = await sdk.generateUserAgent({
  region: "com",
  site: "site",
});

console.log(userAgent);

πŸ” Get Task Data

import { DatadomeSDK } from "parallaxapis-sdk-ts";

const sdk = new DatadomeSDK({ apiKey: "Key" });

const [taskData, productType] = sdk.parseChallengeUrl(
  "https://www.example.com/captcha/?initialCid=initialCid&cid=cid&referer=referer&hash=hash&t=t&s=s&e=e",
  "cookie_value",
);

console.log(taskData, productType);

πŸ“„ Parse HTML Challenge

import { DatadomeSDK } from "parallaxapis-sdk-ts";

const sdk = new DatadomeSDK({ apiKey: "Key" });

const htmlBody = "<html><script>dd={example:1}</script></html>";
const prevCookie = "cookie_value";

const [taskData, productType] = sdk.parseChallengeHtml(htmlBody, prevCookie);

console.log(taskData, productType);

πŸͺ Generate Cookie

import { DatadomeSDK } from "parallaxapis-sdk-ts";

const sdk = new DatadomeSDK({ apiKey: "Key" });

const [taskData, productType] = sdk.parseChallengeUrl(
  "https://www.example.com/captcha/?initialCid=initialCid&cid=cid&referer=referer&hash=hash&t=t&s=s&e=e",
  "cookie_value",
);

const cookie = await sdk.generateCookie({
  site: "site",
  region: "com",
  data: taskData,
  pd: productType,
  proxy: "http://user:pas@addr:port",
  proxyregion: "eu",
});

console.log(cookie);

🏷️ Generate Tags Cookie

import { DatadomeSDK } from "parallaxapis-sdk-ts";

const sdk = new DatadomeSDK({ apiKey: "Key" });

const cookie = await sdk.generateDatadomeTagsCookie({
  site: "site",
  region: "com",
  data: {
    cid: "null",
  },
  proxy: "http://user:pas@addr:port",
  proxyregion: "eu",
});

console.log(cookie);

πŸ”Ž Detect and Parse Challenge

import { DatadomeSDK } from "parallaxapis-sdk-ts";

const sdk = new DatadomeSDK({ apiKey: "Key" });

const responseBody = "<html>...</html>"; // Response body from website
const prevCookie = "cookie_value";

const [isBlocked, taskData, productType] = sdk.detectChallengeAndParse(
  responseBody,
  prevCookie,
);

console.log(isBlocked, taskData, productType);

πŸ›‘οΈ Perimeterx Usage

⚑ SDK Initialization

import { PerimeterxSDK } from "parallaxapis-sdk-ts";

// Basic initialization with API key
const sdk = new PerimeterxSDK({ apiKey: "Key" });

// Custom host
const sdk = new PerimeterxSDK({ apiKey: "Key", apiHost: "example.host.com" });

// Advanced configuration with timeouts and custom dispatcher
import { ProxyAgent } from "undici";

const sdk = new PerimeterxSDK({
  apiKey: "Key",
  timeout: 30000, // Request timeout in milliseconds (default: none)
  bodyTimeout: 10000, // Body timeout in milliseconds (default: none)
  dispatcher: new ProxyAgent("http://proxy:port"), // Custom undici dispatcher (optional)
});

πŸͺ Generate PX Cookie

import { PerimeterxSDK } from "parallaxapis-sdk-ts";
import type { TaskGenerateHoldCaptcha, TaskGeneratePXCookies } from "parallaxapis-sdk-ts";

const sdk = new PerimeterxSDK({
    apiKey: "Key",
});

const result = await sdk.generateCookies({
    proxy: "http://user:pas@addr:port",
    proxyregion: "eu",
    region: "com",
    site: "site"
} satisfies TaskGeneratePXCookies);

console.log(JSON.stringify(result))


const holdCaptchaResult = await sdk.generateHoldCaptcha({
    proxy: "http://user:pas@addr:port",
    proxyregion: "eu",
    region: "com",
    site: "site",
    data: result.data,
} satisfies TaskGenerateHoldCaptcha);

console.log(JSON.stringify(holdCaptchaResult))

πŸ“š Documentation & Help

🌟 Contributing

Got feedback or found a bug? Feel free to open an issue or send us a pull request!

🏒 Enterprise

Unlock enterprise-grade performance with custom solutions, expanded limits, and expert support. Contact us to learn more.

πŸ“ License

MIT


πŸ”‘ Keywords

DataDome bypass β€’ PerimeterX bypass β€’ Anti-bot bypass β€’ Bot detection bypass β€’ CAPTCHA solver β€’ Cookie generator β€’ TypeScript web scraping β€’ JavaScript bot automation β€’ Node.js anti-bot β€’ DataDome TypeScript SDK β€’ PerimeterX TypeScript SDK β€’ Headless browser alternative β€’ Request-based bypass β€’ TypeScript automation β€’ Web scraping TypeScript β€’ Bot mitigation bypass β€’ Sensor data generation β€’ Challenge solver β€’ npm anti-bot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •