Account & usage
Balance, concurrency and daily usage for the key's account.
Balance, concurrency and daily usage for the key's account.
Endpoints
Method | Path | Does |
|---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
How it works, when to use what, and what it costs: Tiers & credits. Base URL, authentication and errors: Overview.
GET /v1/account
Get account.
Balance, lifetime credits bought and credits spent (all in credits), concurrency limit (with the calls in flight now and the next tier), auto top-up, and which key made the call. Free.
Request
- cURL
- Python
- Node.js
curl "https://api.scrapelyserp.com/v1/account" \
-H "Authorization: Bearer $SCRAPELY_API_KEY"import os
import requests
HEADERS = {"Authorization": f"Bearer {os.environ['SCRAPELY_API_KEY']}"}
r = requests.get(
"https://api.scrapelyserp.com/v1/account",
headers=HEADERS,
timeout=30,
)
r.raise_for_status()
data = r.json()const res = await fetch('https://api.scrapelyserp.com/v1/account', {
headers: { Authorization: `Bearer ${process.env.SCRAPELY_API_KEY}` },
signal: AbortSignal.timeout(30_000),
});
if (!res.ok) throw new Error((await res.json()).error.code);
const data = await res.json();Response
- 200 OK
- 401 Unauthorized
{
"object": "account",
"id": "acct_4d5e6f7a8b9c0d1e",
"name": "Acme Retail",
"email": "dev@example.com",
"balance": 12.4408674,
"balance_breakdown": {
"subscription": 0,
"purchased": 12.4408674,
"total": 12.4408674
},
"subscription": null,
"lifetime_credits": 60.2,
"credits_spent": 47.7591326,
"concurrency": {
"limit": 50,
"in_flight": 3,
"next_tier": {
"concurrency": 100,
"at_lifetime_credits": 120
}
},
"auto_topup": {
"enabled": true,
"threshold_credits": 5,
"pack_id": "credits-20"
},
"webhook_endpoints": 1,
"api_key": {
"id": "key_9a8b7c6d5e4f",
"name": "Production",
"prefix": "sk_live_3f9a"
},
"created_at": "2026-09-01T12:00:00.000Z"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or revoked API key.",
"param": "api_key",
"docs": "/docs/errors#unauthorized"
}
}Responses
Status | Meaning |
|---|---|
| The account the key belongs to. |
|
|
|
|
|
|
Response fields
Field | Type | Description |
|---|---|---|
| "account" | — |
| string | — |
| string | — |
| string | — |
| number | Credits you can spend now, fractional: monitoring subscription credits plus purchased credits ( |
| object | Where |
| number | What is left of this period's monitoring plan credits. Reset (not added to) each paid period. |
| number | Credits from packs and the signup grant. They never expire. |
| number | The two together; equals |
| object or null | The monitoring subscription (needed to create, resume or run watchlists), or null. |
| string | — |
| string | One of: |
| string (date-time) or null | — |
| boolean | — |
| number or null | Credits each paid period allocates. |
| number | This period's credits not yet spent (same as |
| number | Credits ever purchased, plus the signup grant. Sets your concurrency tier. |
| number | Credits charged so far, fractional. |
| object | — |
| integer | — |
| integer | — |
| object or null | — |
| object or null | — |
| boolean | — |
| number | A pack is bought when the balance falls below this many credits. |
| string | — |
| integer | Registered webhook endpoints ( |
| object | — |
| string | — |
| string | — |
| string | — |
| string (date-time) | — |
GET /v1/monitoring/plans
List monitoring plans.
The monitoring plans on offer. A subscription is needed to create, resume or run watchlists; each paid month allocates monthly_credits, spent before purchased credits and reset (no rollover) every period. purchasable is false while a plan cannot be bought yet. Free.
Request
- cURL
- Python
- Node.js
curl "https://api.scrapelyserp.com/v1/monitoring/plans" \
-H "Authorization: Bearer $SCRAPELY_API_KEY"import os
import requests
HEADERS = {"Authorization": f"Bearer {os.environ['SCRAPELY_API_KEY']}"}
r = requests.get(
"https://api.scrapelyserp.com/v1/monitoring/plans",
headers=HEADERS,
timeout=30,
)
r.raise_for_status()
data = r.json()const res = await fetch('https://api.scrapelyserp.com/v1/monitoring/plans', {
headers: { Authorization: `Bearer ${process.env.SCRAPELY_API_KEY}` },
signal: AbortSignal.timeout(30_000),
});
if (!res.ok) throw new Error((await res.json()).error.code);
const data = await res.json();Response
- 200 OK
- 401 Unauthorized
{
"object": "list",
"data": [
{
"object": "monitoring_plan",
"id": "starter",
"name": "Starter",
"price": {
"amount": 50,
"currency": "USD",
"interval": "month"
},
"monthly_credits": 14.285714286,
"max_monitors": null,
"purchasable": true
},
{
"object": "monitoring_plan",
"id": "growth",
"name": "Growth",
"price": {
"amount": 100,
"currency": "USD",
"interval": "month"
},
"monthly_credits": 28.571428571,
"max_monitors": null,
"purchasable": true
}
]
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or revoked API key.",
"param": "api_key",
"docs": "/docs/errors#unauthorized"
}
}Responses
Status | Meaning |
|---|---|
| The enabled plans, cheapest first. |
|
|
|
|
|
|
Response fields
Field | Type | Description |
|---|---|---|
| "list" | — |
| object[] | — |
| "monitoring_plan" | — |
| string | — |
| string | — |
| object | — |
| number | — |
| integer or null | Most watchlists the plan allows; null = no plan limit. |
| boolean | — |
GET /v1/monitoring/subscription
Get the monitoring subscription.
Plan, status (null: none), whether monitors may run now (entitled), the period, and what is left of its credits. Free.
Request
- cURL
- Python
- Node.js
curl "https://api.scrapelyserp.com/v1/monitoring/subscription" \
-H "Authorization: Bearer $SCRAPELY_API_KEY"import os
import requests
HEADERS = {"Authorization": f"Bearer {os.environ['SCRAPELY_API_KEY']}"}
r = requests.get(
"https://api.scrapelyserp.com/v1/monitoring/subscription",
headers=HEADERS,
timeout=30,
)
r.raise_for_status()
data = r.json()const res = await fetch('https://api.scrapelyserp.com/v1/monitoring/subscription', {
headers: { Authorization: `Bearer ${process.env.SCRAPELY_API_KEY}` },
signal: AbortSignal.timeout(30_000),
});
if (!res.ok) throw new Error((await res.json()).error.code);
const data = await res.json();Response
- 200 OK
- 401 Unauthorized
{
"object": "monitoring_subscription",
"status": "active",
"entitled": true,
"plan": {
"id": "growth",
"name": "Growth",
"monthly_credits": 28.571428571,
"max_monitors": null
},
"period_start": "2026-11-01T00:00:00.000Z",
"period_end": "2026-12-01T00:00:00.000Z",
"cancel_at_period_end": false,
"credits_remaining": 21.5,
"manage_url": "https://scrapelyserp.com/dashboard/monitors"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or revoked API key.",
"param": "api_key",
"docs": "/docs/errors#unauthorized"
}
}Responses
Status | Meaning |
|---|---|
| The subscription. |
|
|
|
|
|
|
Response fields
Field | Type | Description |
|---|---|---|
| "monitoring_subscription" | — |
| string or null | One of: |
| boolean | Watchlists may be created, resumed and run. |
| object or null | — |
| string | — |
| string or null | — |
| number or null | — |
| integer or null | — |
| string (date-time) or null | — |
| string (date-time) or null | — |
| boolean | — |
| number | This period's subscription credits not yet spent. |
| string | The dashboard page for plans. |
POST /v1/monitoring/subscription
Start a monitoring subscription.
A Stripe Checkout URL for the plan; open it to pay. The subscription starts once paid. An account with a live subscription changes it in the billing portal instead (409).
Request body
Name | Type | Required | Description |
|---|---|---|---|
| string | yes | — |
Request
- cURL
- Python
- Node.js
curl -X POST "https://api.scrapelyserp.com/v1/monitoring/subscription" \
-H "Authorization: Bearer $SCRAPELY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"plan_id":"growth"}'import os
import requests
HEADERS = {"Authorization": f"Bearer {os.environ['SCRAPELY_API_KEY']}"}
r = requests.post(
"https://api.scrapelyserp.com/v1/monitoring/subscription",
headers=HEADERS,
json={"plan_id": "growth"},
timeout=30,
)
r.raise_for_status()
data = r.json()const res = await fetch('https://api.scrapelyserp.com/v1/monitoring/subscription', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SCRAPELY_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ plan_id: 'growth' }),
signal: AbortSignal.timeout(30_000),
});
if (!res.ok) throw new Error((await res.json()).error.code);
const data = await res.json();Response
- 201 Created
- 409 Conflict
{
"object": "checkout_session",
"url": "https://checkout.stripe.com/c/pay/cs_test_example",
"plan_id": "growth"
}{
"error": {
"code": "CONFLICT",
"message": "This workspace already has a monitoring subscription. Change or cancel it from the billing portal.",
"param": "plan_id",
"docs": "/docs/errors#conflict"
}
}Responses
Status | Meaning |
|---|---|
| Open |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Response fields
Field | Type | Description |
|---|---|---|
| "checkout_session" | — |
| string | — |
| string | — |
POST /v1/monitoring/subscription/portal
Open the billing portal.
A Stripe billing portal URL: change or cancel the monitoring plan, update the card, see invoices.
Request
- cURL
- Python
- Node.js
curl -X POST "https://api.scrapelyserp.com/v1/monitoring/subscription/portal" \
-H "Authorization: Bearer $SCRAPELY_API_KEY"import os
import requests
HEADERS = {"Authorization": f"Bearer {os.environ['SCRAPELY_API_KEY']}"}
r = requests.post(
"https://api.scrapelyserp.com/v1/monitoring/subscription/portal",
headers=HEADERS,
timeout=30,
)
r.raise_for_status()
data = r.json()const res = await fetch('https://api.scrapelyserp.com/v1/monitoring/subscription/portal', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.SCRAPELY_API_KEY}` },
signal: AbortSignal.timeout(30_000),
});
if (!res.ok) throw new Error((await res.json()).error.code);
const data = await res.json();Response
- 201 Created
- 401 Unauthorized
{
"object": "billing_portal_session",
"url": "https://billing.stripe.com/p/session/test_example"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or revoked API key.",
"param": "api_key",
"docs": "/docs/errors#unauthorized"
}
}Responses
Status | Meaning |
|---|---|
| Open |
|
|
|
|
|
|
|
|
Response fields
Field | Type | Description |
|---|---|---|
| "billing_portal_session" | — |
| string | — |
GET /v1/usage
Get usage.
Requests, successes, failures and credits charged per day for the last days days, oldest first, with totals for the window. Free.
Query parameters
Name | Type | Required | Description |
|---|---|---|---|
| integer | — | How many days to report. Default |
Request
- cURL
- Python
- Node.js
curl -G "https://api.scrapelyserp.com/v1/usage" \
-H "Authorization: Bearer $SCRAPELY_API_KEY" \
-d days=3import os
import requests
HEADERS = {"Authorization": f"Bearer {os.environ['SCRAPELY_API_KEY']}"}
r = requests.get(
"https://api.scrapelyserp.com/v1/usage",
headers=HEADERS,
params={"days": "3"},
timeout=30,
)
r.raise_for_status()
data = r.json()const res = await fetch(`https://api.scrapelyserp.com/v1/usage?${new URLSearchParams({ days: '3' })}`, {
headers: { Authorization: `Bearer ${process.env.SCRAPELY_API_KEY}` },
signal: AbortSignal.timeout(30_000),
});
if (!res.ok) throw new Error((await res.json()).error.code);
const data = await res.json();Response
- 200 OK
- 401 Unauthorized
{
"object": "usage",
"days": 3,
"totals": {
"requests": 1294,
"successful": 1288,
"failed": 6,
"credits": 0.8620107,
"success_rate": 0.9954
},
"daily": [
{
"date": "2026-10-14",
"requests": 431,
"successful": 430,
"failed": 1,
"credits": 0.2804664
},
{
"date": "2026-10-15",
"requests": 442,
"successful": 439,
"failed": 3,
"credits": 0.3037208
},
{
"date": "2026-10-16",
"requests": 421,
"successful": 419,
"failed": 2,
"credits": 0.2778235
}
]
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or revoked API key.",
"param": "api_key",
"docs": "/docs/errors#unauthorized"
}
}Responses
Status | Meaning |
|---|---|
| Daily requests and credits, oldest first. |
|
|
|
|
|
|
Response fields
Field | Type | Description |
|---|---|---|
| "usage" | — |
| integer | — |
| object | — |
| integer | — |
| integer | — |
| integer | — |
| number | Credits charged in the window, fractional. |
| number or null | — |
| object[] | — |
| string | — |
| integer | — |
| integer | — |
| integer | — |
| number | Credits charged that day, fractional. |