API Playground
Get account info
Your account, plan and the limits actually enforced on it. Free.
Read limits — it is what is enforced. plan_defaults is the catalogue value for your plan and differs only if a limit was raised for you individually.
GET
/
account
/
info
Get account info
curl --request GET \
--url https://api.bouncewatch.com/api/v1/account/info \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.bouncewatch.com/api/v1/account/info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bouncewatch.com/api/v1/account/info"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bouncewatch.com/api/v1/account/info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"data": {
"account": {
"id": 1042,
"name": "John Doe",
"email": "[email protected]",
"company_name": "Acme Corp",
"plan_type": "professional",
"status": "active",
"created_at": "2023-11-07T05:31:56Z"
},
"limits": {
"credits_per_month": 25000,
"rate_per_minute": 150,
"rate_per_day": 5000
},
"plan_defaults": {
"credits_per_month": 25000,
"rate_per_minute": 150,
"rate_per_day": 5000
},
"rate_limits": {
"per_minute": 150,
"per_day": 5000
}
}
}{
"success": false,
"error": "missing_api_key",
"message": "Please provide your API key in X-API-Key header or api_key parameter"
}{
"success": false,
"error": "rate_limit_exceeded",
"message": "Rate limit exceeded. Please retry after 45 seconds.",
"retry_after": 45,
"limits": {
"per_minute": 150,
"per_day": 5000,
"current_minute": 150,
"current_day": 3204
}
}⌘I
Get account info
curl --request GET \
--url https://api.bouncewatch.com/api/v1/account/info \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.bouncewatch.com/api/v1/account/info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bouncewatch.com/api/v1/account/info"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bouncewatch.com/api/v1/account/info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"data": {
"account": {
"id": 1042,
"name": "John Doe",
"email": "[email protected]",
"company_name": "Acme Corp",
"plan_type": "professional",
"status": "active",
"created_at": "2023-11-07T05:31:56Z"
},
"limits": {
"credits_per_month": 25000,
"rate_per_minute": 150,
"rate_per_day": 5000
},
"plan_defaults": {
"credits_per_month": 25000,
"rate_per_minute": 150,
"rate_per_day": 5000
},
"rate_limits": {
"per_minute": 150,
"per_day": 5000
}
}
}{
"success": false,
"error": "missing_api_key",
"message": "Please provide your API key in X-API-Key header or api_key parameter"
}{
"success": false,
"error": "rate_limit_exceeded",
"message": "Rate limit exceeded. Please retry after 45 seconds.",
"retry_after": 45,
"limits": {
"per_minute": 150,
"per_day": 5000,
"current_minute": 150,
"current_day": 3204
}
}
