Build a tags payload
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://dd.antibotapi.com/tags"), Headers = { { "x-api-key", "<x-api-key>" }, }, Content = new StringContent("{ \"type\": \"ch\", \"cid\": \"<your current datadome cookie>\", \"site_key\": \"<the site's ddk>\", \"referer\": \"https://www.example.com/product/123\", \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36\", \"language\": \"en-GB\", \"ip_address\": \"203.0.113.7\" }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}package main
import ( "fmt" "strings" "net/http" "io")
func main() {
url := "https://dd.antibotapi.com/tags"
payload := strings.NewReader("{ \"type\": \"ch\", \"cid\": \"<your current datadome cookie>\", \"site_key\": \"<the site's ddk>\", \"referer\": \"https://www.example.com/product/123\", \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36\", \"language\": \"en-GB\", \"ip_address\": \"203.0.113.7\" }")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://dd.antibotapi.com/tags';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"type":"ch","cid":"<your current datadome cookie>","site_key":"<the site\'s ddk>","referer":"https://www.example.com/product/123","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36","language":"en-GB","ip_address":"203.0.113.7"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dd.antibotapi.com/tags \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "type": "ch", "cid": "<your current datadome cookie>", "site_key": "<the site'\''s ddk>", "referer": "https://www.example.com/product/123", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36", "language": "en-GB", "ip_address": "203.0.113.7" }'Builds the tags.js payload. Call it with type: ch first, submit that payload, then call it with type: le
using the datadome cookie the ch submission returned.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”A request signature. Required only when signing is on for your key. See Authentication.
Request Bodyrequired
Section titled “Request Bodyrequired”object
ch first, then le.
Your current datadome cookie. For le, the cookie the ch submission returned.
The site’s DataDome key (ddk).
The last URL visited, not percent-encoded.
The User-Agent for the session.
The first tag of your Accept-Language header.
Your proxy’s exit IP. Sets the payload’s timezone.
Example
{ "type": "ch", "cid": "<your current datadome cookie>", "site_key": "<the site's ddk>", "referer": "https://www.example.com/product/123", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36", "language": "en-GB", "ip_address": "203.0.113.7"}Responses
Section titled “Responses”Payload built.
object
The form body to POST to the site’s tags endpoint (usually the URL ending in /js/), unchanged.
Example generated
{ "success": true, "payload": "example"}The request is invalid, or the solve failed for a reason you can fix. error says why. Not billed.
object
What went wrong.
Example
{ "success": false}The API key is missing, unknown, revoked or out of balance.
object
What went wrong.
Example
{ "success": false, "error": "x-api-key is required"}The site is not approved for your account. Request it from the dashboard.
object
What went wrong.
Example
{ "success": false, "error": "site is not whitelisted for this service"}Something failed on our side. Retry once. Not billed.
object
What went wrong.
Example
{ "success": false}