Account
GET
https://scrapely.15.204.158.166.sslip.io /api/v1/account Get account
Credit balance, lifetime credits, concurrency limit and what is in flight.
Code samples
cURL
curl -X GET "https://scrapely.15.204.158.166.sslip.io/api/v1/account"TypeScript
const res = await fetch('https://scrapely.15.204.158.166.sslip.io/api/v1/account', {
method: 'GET',
});
const data = await res.json();Python
import requests
res = requests.request(
"GET",
"https://scrapely.15.204.158.166.sslip.io/api/v1/account",
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://scrapely.15.204.158.166.sslip.io/api/v1/account", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://scrapely.15.204.158.166.sslip.io/api/v1/account');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://scrapely.15.204.158.166.sslip.io/api/v1/account')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://scrapely.15.204.158.166.sslip.io/api/v1/account"))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Responses
200 The account the key belongs to.
Example
{
"object": {},
"id": "string",
"name": "string",
"email": "string",
"credit_balance": 0,
"lifetime_credits": 0,
"credits_spent": 0,
"concurrency": {
"limit": 0,
"in_flight": 0,
"queued_jobs": 0,
"next_tier": {
"concurrency": 0,
"at_lifetime_credits": 0
}
},
"auto_topup": {
"enabled": true,
"threshold_credits": 0,
"pack_id": "string"
},
"webhook_url": "string",
"api_key": {
"id": "string",
"name": "string",
"prefix": "string"
},
"created_at": "2024-01-01T00:00:00Z"
}Schema
objectidstringnamestringemailstringcredit_balanceintegerPrepaid credits remaining. They never expire.
lifetime_creditsintegerCredits ever purchased, plus the signup grant. Sets your concurrency tier.
credits_spentintegerconcurrencyobjectShow child parameters
limitintegerin_flightintegerqueued_jobsintegernext_tierobjectShow child parameters
concurrencyintegerat_lifetime_creditsintegerauto_topupobjectShow child parameters
enabledbooleanthreshold_creditsintegerpack_idstringwebhook_urlstringapi_keyobjectShow child parameters
idstringnamestringprefixstringcreated_atstring401
UNAUTHORIZED: missing, unknown or revoked key.Example
{
"error": {
"code": "MISSING_PARAM",
"message": "string",
"param": "string",
"docs": "/docs/errors#insufficient_credits"
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredStable, machine-readable. Branch on this, never on
message.messagestringrequiredHuman-readable; may change.
paramstringThe parameter at fault, when there is one.
docsstringLink to this code on /docs/errors.
429
RATE_LIMITED or CONCURRENCY_LIMIT. Honour Retry-After.Example
{
"error": {
"code": "MISSING_PARAM",
"message": "string",
"param": "string",
"docs": "/docs/errors#insufficient_credits"
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredStable, machine-readable. Branch on this, never on
message.messagestringrequiredHuman-readable; may change.
paramstringThe parameter at fault, when there is one.
docsstringLink to this code on /docs/errors.
500
INTERNAL: our fault, not charged. Quote X-Request-Id.Example
{
"error": {
"code": "MISSING_PARAM",
"message": "string",
"param": "string",
"docs": "/docs/errors#insufficient_credits"
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredStable, machine-readable. Branch on this, never on
message.messagestringrequiredHuman-readable; may change.
paramstringThe parameter at fault, when there is one.
docsstringLink to this code on /docs/errors.
GET
https://scrapely.15.204.158.166.sslip.io /api/v1/usage Get usage
Parameters
daysintegerqueryCode samples
cURL
curl -X GET "https://scrapely.15.204.158.166.sslip.io/api/v1/usage?days="TypeScript
const res = await fetch('https://scrapely.15.204.158.166.sslip.io/api/v1/usage?days=', {
method: 'GET',
});
const data = await res.json();Python
import requests
res = requests.request(
"GET",
"https://scrapely.15.204.158.166.sslip.io/api/v1/usage?days=",
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://scrapely.15.204.158.166.sslip.io/api/v1/usage?days=", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://scrapely.15.204.158.166.sslip.io/api/v1/usage?days=');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://scrapely.15.204.158.166.sslip.io/api/v1/usage?days=')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://scrapely.15.204.158.166.sslip.io/api/v1/usage?days="))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Responses
200 Daily requests and credits, oldest first.
Example
{
"object": {},
"days": 0,
"totals": {
"requests": 0,
"successful": 0,
"failed": 0,
"credits": 0,
"success_rate": 0
},
"daily": [
{
"date": "string",
"requests": 0,
"successful": 0,
"failed": 0,
"credits": 0
}
]
}Schema
objectdaysintegertotalsobjectShow child parameters
requestsintegersuccessfulintegerfailedintegercreditsintegersuccess_ratenumberdailyobject[]Show child parameters
datestringrequestsintegersuccessfulintegerfailedintegercreditsinteger401
UNAUTHORIZED: missing, unknown or revoked key.Example
{
"error": {
"code": "MISSING_PARAM",
"message": "string",
"param": "string",
"docs": "/docs/errors#insufficient_credits"
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredStable, machine-readable. Branch on this, never on
message.messagestringrequiredHuman-readable; may change.
paramstringThe parameter at fault, when there is one.
docsstringLink to this code on /docs/errors.
429
RATE_LIMITED or CONCURRENCY_LIMIT. Honour Retry-After.Example
{
"error": {
"code": "MISSING_PARAM",
"message": "string",
"param": "string",
"docs": "/docs/errors#insufficient_credits"
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredStable, machine-readable. Branch on this, never on
message.messagestringrequiredHuman-readable; may change.
paramstringThe parameter at fault, when there is one.
docsstringLink to this code on /docs/errors.
500
INTERNAL: our fault, not charged. Quote X-Request-Id.Example
{
"error": {
"code": "MISSING_PARAM",
"message": "string",
"param": "string",
"docs": "/docs/errors#insufficient_credits"
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredStable, machine-readable. Branch on this, never on
message.messagestringrequiredHuman-readable; may change.
paramstringThe parameter at fault, when there is one.
docsstringLink to this code on /docs/errors.
Updated