Account
Get Account Usage
Account
Get Account Usage
GET
/
usage
curl --request GET \
--url https://dataextractorai.com/api/v1/usage \
--header 'Authorization: Bearer <token>'
{
"name": "<string>",
"email": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"trial_ends_at": "2023-11-07T05:31:56Z",
"subscription_credits": 123,
"credits": 123,
"usage_summary": {
"current_month": {
"total_extractions": 123,
"successful_extractions": 123,
"failed_extractions": 123,
"credits_consumed": 123,
"average_credits_per_extraction": 123
},
"previous_month": {
"total_extractions": 123,
"successful_extractions": 123,
"failed_extractions": 123,
"credits_consumed": 123,
"average_credits_per_extraction": 123
}
},
"recent_transactions": [
{
"request_id": "<string>",
"credits_consumed": 123,
"credits_type": "subscription",
"status": "pending",
"success": true,
"request_data": {
"schema": {
"type": "<string>",
"properties": {}
},
"content": "<string>",
"webhook_url": "<string>"
},
"extracted_data": {},
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"processing_time_ms": 2000,
"webhook_url": "<string>",
"metadata": {}
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200 - application/json
OK
Available options:
subscription
, credits
Available options:
pending
, processing
, completed
, failed
Example:
2000
curl --request GET \
--url https://dataextractorai.com/api/v1/usage \
--header 'Authorization: Bearer <token>'
{
"name": "<string>",
"email": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"trial_ends_at": "2023-11-07T05:31:56Z",
"subscription_credits": 123,
"credits": 123,
"usage_summary": {
"current_month": {
"total_extractions": 123,
"successful_extractions": 123,
"failed_extractions": 123,
"credits_consumed": 123,
"average_credits_per_extraction": 123
},
"previous_month": {
"total_extractions": 123,
"successful_extractions": 123,
"failed_extractions": 123,
"credits_consumed": 123,
"average_credits_per_extraction": 123
}
},
"recent_transactions": [
{
"request_id": "<string>",
"credits_consumed": 123,
"credits_type": "subscription",
"status": "pending",
"success": true,
"request_data": {
"schema": {
"type": "<string>",
"properties": {}
},
"content": "<string>",
"webhook_url": "<string>"
},
"extracted_data": {},
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"processing_time_ms": 2000,
"webhook_url": "<string>",
"metadata": {}
}
]
}