User Data
Your login, organization, rate limit, wallet balance and the price list.
GET
/v1/account/user_dataOn this page
Price
Pricerequest
Free. Account routes never charge your wallet.
Description
Call it to check the key works and see your balance before a large run. Free. Account routes never charge your wallet.
Request
- Endpoint
- GET https://api.dataforgaio.com/v1/account/user_data
- Authentication
- HTTP Basic auth: any login, with your
dg_API key as the password. ABearerheader with the key also works. Create a key. - Body
- No request body
This endpoint takes no fields.
Response
Shape: v3 task envelope. Expand a field to see its children; every field has a link anchor.
- versionstringResponse format version, for example
0.1.20261203.Example0.1.20261203 - status_codeintegerStatus of the request as a whole. 20000 when it was accepted; each task has its own
status_code.Example20000 - status_messagestringPlain-language request status.Example
Ok. - timestringTime the whole request took, for example
1.8410 sec.Example0.4210 sec. - costnumberSum of every task's
cost, in USD.Example0 - tasks_countintegerNumber of tasks in
tasks.Example1 - tasks_errorintegerTasks whose
status_codeis 40000 or higher.Example0 - tasksarray<object>One entry per task you sent, in the order you sent them.
Show 26 child fieldsHide child fields
- idstringTask id (a UUID). For task_post, use it with task_get.Example
8cbb5b5c-8e15-5c82-9959-45f93cdad009 - status_codeintegerOutcome of this task. 20000 means data came back; 20100 means queued. See the status codes table.Example
20000 - status_messagestringPlain-language status. For 40501 it names the field that failed.Example
Ok. - timestringTime this task took on our side, for example
1.8203 sec.Example0.4210 sec. - costnumberWhat this task was charged, in USD. 0 when it returned no data.Example
0 - result_countintegerNumber of entries in
result.Example1 - patharray<string>The route this task ran on, split into segments, starting with
v1.Example["v1","account","user_data"] - dataobjectThe task you sent, echoed back. Utility routes echo their query parameters.Example
{} - resultarray<object>|nullOne entry.
Show 12 child fieldsHide child fields
- loginstringEmail of the user who owns the API key.Example
dev@summitrunning.example - timezonestringAlways
UTC. Every time in the API is UTC.ExampleUTC - organizationstringOrganization the key belongs to.Example
Summit Running Co. - ratesobjectRate limits.
- moneyobjectWallet.
Show 3 child fieldsHide child fields
- balancenumberWallet balance in USD.Example
24.8731 - currencystringAlways
USD.ExampleUSD - auto_top_upbooleanTrue when automatic top-up is on.Example
true
- priceobjectYour list prices for every supported paid route, keyed by route (
/v1/...), then by mode or queue (live,standard,priority), in USD per unit. Routes priced by fetch level addfetch_levelwith therenderedandprotectedprices. Free routes aren't listed.Example{"/v1/ads/meta":{"live":0.00018},"/v1/ads/yelp":{"live":0.00045},"/v1/ai/chat_gpt/llm_responses/live":{"live":0.00054},"/v1/ai/chat_gpt/llm_responses/task_post":{"standard":0.00018,"priority":0.00054}}
- receipt_idstring|nullId of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks.
- fetch_levelstring|nullThe fetch level that delivered the data:
standard,renderedorprotected. Null when the route doesn't fetch pages or nothing was fetched.One ofstandardrenderedprotected - upgradedbooleanTrue when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that.Example
false - upgrade_reasonstring|nullWhy the request upgraded, in our level names and HTTP facts, for example
403 at standard; challenge page at rendered. Null when it didn't upgrade. - cache_hitbooleanTrue when the data came from the shared result cache instead of a new fetch.Example
false
Errors
| Code | When |
|---|---|
| 40100 | No credentials were sent (HTTP 401). |
| 40101 | The API key is missing, malformed or revoked (HTTP 401). |
| 40202 | Too many requests for this key (HTTP 429, with Retry-After). |
| 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). |
| 40006 | More than 100 tasks in one POST (HTTP 400). |
| 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). |
| 40501 | A task field failed validation. Returned per task; other tasks still run. |
| 50000 | The task returned no data because of an error on our side or upstream. $0. |
Tasks that end in an error are not billed. All status codes
Migrating
Replaces DataForSEO /v3/appendix/user_data. The request body and response envelope match: change the base URL to https://api.dataforgaio.com/v1 and use your dg_ key as the password.
Related endpoints
- POSTErrorsTasks that failed in the last 7 days, newest first.
- GETStatusA health check that also confirms your key.
- POSTWebhook ResendSend a finished task's pingback and postback again.
- GETSupport MatrixEvery route we mirror, whether it's supported yet, and its list price.
- GETReceiptLook up the receipt behind any response's `receipt_id`.