Skip to main content
See the Swagger UI for live request/response schemas and to try endpoints directly in your browser.

Get traffic stats

Returns aggregated traffic usage for the authenticated user across all proxies for a given date range.
GET /v1/user/traffic
Query parameters
ParameterTypeRequiredDescription
date_fromstringYesStart date in YYYY-MM-DD format
date_tostringYesEnd date in YYYY-MM-DD format
Scope: stats:read
curl "https://api.2extract.com/v1/user/traffic?date_from=2026-01-01&date_to=2026-12-31" \
  -H "X-API-Key: 2xt_YOUR_API_KEY"

Export proxy usage (CSV)

Downloads a CSV file with a per-day breakdown of traffic and spend for a specific proxy list. Useful for billing reconciliation and pipeline monitoring.
GET /v1/proxy/{id}/usage/export
Path parameters
ParameterTypeDescription
idstringProxy list ID (e.g. 86Rf07)
Query parameters
ParameterTypeRequiredDescription
date_fromstringYesStart date in YYYY-MM-DD format
date_tostringYesEnd date in YYYY-MM-DD format
Response: text/csv file download. Scope: stats:read
curl "https://api.2extract.com/v1/proxy/86Rf07/usage/export?date_from=2026-01-01&date_to=2026-12-31" \
  -H "X-API-Key: 2xt_YOUR_API_KEY" \
  -o proxy-usage-2026.csv