Get API Usage

Use this endpoint to retrieve your current quota usage with your API key, including remaining (remaining requests) and limit (total quota).

curl --location 'https://api.twittershots.com/api/v1/usage' --header 'Accept: application/json' --header 'X-API-KEY: YOUR_X_API_KEY'

Endpoint

  • Method: GET
  • URL: https://api.twittershots.com/api/v1/usage
  • Headers:
    • X-API-KEY: Your API key (required)
    • Accept: application/json

Response

{
  "remaining": 1234,
  "limit": 2000
}

Errors

  • 401 Unauthorized: Missing key in header or invalid API key.
  • 403 Forbidden: No record found for the provided API key.

Response codes

TwitterShots uses standard HTTP codes to indicate the success or failure of your requests.

In general, 2xx HTTP codes correspond to success, 4xx codes are for user-related failures, and 5xx codes are for infrastructure issues.

If 5xx errors persist, please contact our support team at support@twittershots.com and we'll help you troubleshoot as soon as possible.

Status

StatusDescription
200Successful request.
400Check that the parameters were correct.
401The API key used was missing.
403The API key used was invalid.
404The resource was not found.
429The rate limit was exceeded.
5xxIndicates an error with TwitterShots servers.