Skip to main content

Overview

Monitor your API usage to understand consumption patterns and stay within budget.

Dashboard

The dashboard provides usage information for your workspace. View recent API calls, credit consumption, and usage trends.

Usage API

Fetch usage data programmatically:
curl -X GET "https://api.agntdata.dev/v1/usage" \
  -H "Authorization: Bearer YOUR_API_KEY"

Parameters

ParameterTypeDescription
limitintegerNumber of results (default 50)
offsetintegerPagination offset
providerIdstringFilter by provider (e.g., linkedin)
statusstringFilter by status
fromstringStart date (ISO 8601)
tostringEnd date (ISO 8601)

Example

curl -X GET "https://api.agntdata.dev/v1/usage?from=2024-01-01&to=2024-01-31&limit=100" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response:
{
  "success": true,
  "data": [
    {
      "id": "...",
      "providerId": "linkedin",
      "endpoint": "/get-company-details",
      "costCents": 1,
      "status": "success",
      "createdAt": "2024-01-15T10:30:00Z"
    }
  ]
}

Usage Best Practices

Cache API responses when data doesn’t change frequently to reduce credit consumption.
Choose the right endpoint for your needs. Lightweight endpoints may cost less than detailed ones.
Review usage periodically to identify patterns and optimize costs.

Next Steps

Credits

Understand credit pricing and purchasing.

API Keys

Manage API keys for your workspace.