Usage limit

An endpoint to keep track of your Akismet API usage for the current month.

https://rest.akismet.com/1.2/usage-limit

All parameters can be passed via the GET or POST methods.

Required parameters

api_key
Your Akismet API key. You can find this on your account dashboard at https://akismet.com/account/

PHP example

$data = file_get_contents( 'https://rest.akismet.com/1.2/usage-limit?api_key=123YourAPIKey' );
 
var_dump( $data );

Sample results

{
    "limit":350000,
    "usage":7463,
    "percentage":"2.13",
    "throttled":false
}

Results keys

limit
The number of monthly API calls your plan entitles you to.

  • 350000: The limit, when applicable.
  • none: If your plan is unlimited.

usage
Number of calls (spam + ham) since the beginning of the current month, to date.

percentage
The percentage of your limit used since the beginning of the current month, to date.

throttled
Indicates if your requests are currently being throttled for having consistently gone over your plan’s limit, or not.

We’re here to help

If you ever get stuck or need help troubleshooting something, please don’t hesitate to contact us.