# Account API

# GET /account

If you require to monitor your account limits and current month consumption through an API, you can easily make a GET request to /account specifying which product you want to get the information from, with the parameter &product=. Additionally, you can use the parameter &previous_month=true to retrieve stats for both the current and previous month.

The &previous_month=true parameter is optional. When set to true, it allows you to compare current month's statistics with the previous month, offering insights into trends and changes. If this parameter is omitted, the API will return statistics only for the current month.

The response will include the following information:

  • totalSuccess is the total number of successful requests in the current month.

  • totalFailed is the total number of failed requests in the current month.

  • totalDue is the total due amount in USD for the successful requests in the current month.

  • remainingCredits are the credits that are still available for use in the current month, applicable only to subscription-based products.

  • domainStats A summary of request statistics for different domains, including:

    • domain The domain name for which the stats are aggregated.

    • totalRequests Total number of requests (both successful and failed) for this domain.

    • success Total number of successful requests for the domain.

    • failure Total number of failed requests for the domain.

    • successRate The percentage of successful requests out of total requests for the domain.

# Usage examples

  • Crawling API
  • Crawler
  • Smart Proxy
  • Scraper API
  • Leads API
  • Screenshot API
curl "https://api.crawlbase.com/account?token=_USER_TOKEN_&product=crawling-api"