😀
antibot.to
  • Welcome!
  • Getting Started With The API
  • Reference
    • Akamai
      • Akamai 2.0
      • Akamai v1
      • Pixel
    • Kasada
      • x-kpsdk-cd
      • x-kpsdk-ct
Powered by GitBook
On this page
  • Generate pixel data
  • Code Example
  1. Reference
  2. Akamai

Pixel

Generate pixel data

POST https://api.antibot.to/akamai/pixel

Headers

Name
Type
Description

content-type*

String

application/json

apikey*

String

user-75188a82-fc45-4c4c-89a0-fa92ac65a8f4

Request Body

Name
Type
Description

userAgent*

String

User Agent

pixelId*

String

The Hash inside the html body (bazadebezolkohpepadr)

scriptID*

String

The Hash inside the pixel script (Bottom of the pixel script)

{
    "pixelData": "pixel data...",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36"
}
{
    "Success": false,
    "Error": "Invalid APIKey."
}

Code Example

Node JS

var axios = require('axios');

var data = JSON.stringify({
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36",
  "pixelId": "135890212",
  "scriptID": "99d2984701765a5cb3a16a79dca64e00"
});

var config = {
  method: 'post',
  url: 'https://api.antibot.to/akamai/pixel',
  headers: { 
    'Content-Type': 'application/json'
    'apikey': 'user-75188a82-fc45-4c4c-89a0-fa92ac65a8f4', 
  },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

Python

import requests
import json

url = "https://api.antibot.to/akamai/pixel"

payload = json.dumps({
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36",
  "pixelId": "135890212",
  "scriptID": "99d2984701765a5cb3a16a79dca64e00"
})
headers = {
  'Content-Type': 'application/json'
   'apikey': 'user-75188a82-fc45-4c4c-89a0-fa92ac65a8f4',
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Golang

package Pixel

import (
    "bytes"
    "encoding/json"
    "fmt"
    "io/ioutil"
    "net/http"
)

type Payload struct {
    PixelId      string `json:"pixelId"`
    ScriptID       string `json:"scriptID"`
    UserAgent string `json:"userAgent"`
}

func main() {

    url := "https://api.antibot.to/akamai/pixel"
    method := "POST"

    payload := &Payload{
        pixelId:      "135890212",
        scriptID:      "99d2984701765a5cb3a16a79dca64e00",
        UserAgent:     "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36",
    }

    bodyBytes , err := json.Marshal(payload)
    if err != nil {
        // handle err
        fmt.Println(err)
        return
    }
    
    client := &http.Client{}
    req, err := http.NewRequest(method, url,bytes.NewReader(bodyBytes))

    if err != nil {
        // handle err
        fmt.Println(err)
        return
    }
    
    req.Header.Add("Content-Type", "application/json")
    req.Header.Add("apikey", "user-75188a82-fc45-4c4c-89a0-fa92ac65a8f4")
   

    res, err := client.Do(req)
    if err != nil {
        // handle err
        fmt.Println(err)
        return
    }
    defer res.Body.Close()

    body, err := ioutil.ReadAll(res.Body)
    if err != nil {
        fmt.Println(err)
        return
    }
    fmt.Println(string(body))
}
PreviousAkamai v1NextKasada

Last updated 2 years ago