Generate metadata1 payloads
POST
/metadata1
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://metadata1.antibotapi.com/metadata1"), Headers = { { "x-api-key", "<x-api-key>" }, }, Content = new StringContent("{ \"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\", \"referer\": \"https://www.amazon.com/\", \"location\": \"https://www.amazon.com/ap/signin\", \"email\": \"user@example.com\", \"password_length\": 12 }") { 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://metadata1.antibotapi.com/metadata1"
payload := strings.NewReader("{ \"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\", \"referer\": \"https://www.amazon.com/\", \"location\": \"https://www.amazon.com/ap/signin\", \"email\": \"user@example.com\", \"password_length\": 12 }")
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://metadata1.antibotapi.com/metadata1';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"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","referer":"https://www.amazon.com/","location":"https://www.amazon.com/ap/signin","email":"user@example.com","password_length":12}'};
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://metadata1.antibotapi.com/metadata1 \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "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", "referer": "https://www.amazon.com/", "location": "https://www.amazon.com/ap/signin", "email": "user@example.com", "password_length": 12 }'Send the context of the sign-in you are doing. Returns one metadata1 value for the email step and one for the
password step. They are bound to user_agent, so send the sign-in requests with exactly that string.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”x-signature
string
A request signature. Required only when signing is on for your key. See Authentication.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
user_agent
required
The User-Agent you will send the sign-in requests with, exactly.
string
referer
The page you came to sign-in from.
string
location
The URL of the sign-in page.
string
email
required
The email address entered into the form.
string
password_length
required
The number of characters in the password.
integer
Example
{ "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", "referer": "https://www.amazon.com/", "location": "https://www.amazon.com/ap/signin", "email": "user@example.com", "password_length": 12}Responses
Section titled “Responses”Payloads generated.
Media typeapplication/json
object
success
boolean
metadata1
object
email
The metadata1 value for the email step.
string
password
The metadata1 value for the password step.
string
Example
{ "success": true, "metadata1": { "email": "ECdITeCs:zr7fdAC...", "password": "HmS1pQ9v:8xKf2u..." }}The request body is malformed. message says why.
Media typeapplication/json
object
success
boolean
message
What went wrong.
string
Example
{ "success": false}The API key is missing or invalid.
Media typeapplication/json
object
success
boolean
message
What went wrong.
string
Example
{ "success": false}