A rate limit is the number of API calls an app or user can make within a given time period. If this limit is exceeded or if CPU or total time limits are exceeded, the app or user may be throttled. API requests made by a throttled user or app will fail.
All API requests are subject to rate limits. Graph API and Instagram Basic Display API requests are subject to Platform Rate Limits, while Marketing API and Instagram Platform requests are subject to Business Use Case (BUC) Rate Limits.
Pages API requests are subject to either Platform or BUC Rate Limits, depending on the token used in the request; requests made with application or user access tokens are subject to Platform Rate Limits, while requests made with system user or page access tokens are subject to Business Use Case Rate Limits.
Real time rate limit usage statistics are described in headers that are included with most API responses once enough calls have been made to an endpoint. Platform Rate Limit usage statistics are also displayed in the App Dashboard. Once a rate limit is reached, any subsequent requests made by your app will fail and the API will return an error code until enough time has passed for the call count to drop below the limit.
If both Platform and Business Use Case rate limits can be applied to a request, BUC rate limits will be applied.
Platform Rate Limits are tracked on an individual application or user level, depending on the type of token used in the request.
Graph API requests made with an application access token are counted against that app’s rate limit. An app’s call count is the number of calls it can make during a rolling one hour window and is calculated as follows:
Calls within one hour = 200 * Number of Users
The Number of Users is based on the number of unique daily active users an app has. In cases where there are slow periods of daily usage, such as if your app has high activity on weekends but low activity over weekdays, the weekly and monthly active Users are used to calculate the number of Users for your app. Apps with high daily engagement will have higher rate limits than apps with low daily engagement, regardless of the actual number of app installs.
Note that this is not a per User limit but a limit on calls made by your app. Any individual User can make more than 200 calls per hour using your app, as long as the total calls from your app does not exceed the app maximum. For example, if your app has 100 Users, your app can make 20,000 calls per hour. However, your top ten most engaged Users could make 19,000 of those calls.
Graph API requests made with a user access token are counted against that user’s call count. A user’s call count is the number of calls a user can make during a rolling one hour window. Due to privacy concerns, we do not reveal actual call count values for users.
Note that a user’s call count can be spread over multiple apps. For example, a user could make X calls through App1 and Y calls through App2. If X+Y exceeds the user’s call count that user will be rate limited. This does not necessarily mean that any app is doing something wrong; it could be that the user is using multiple apps or is misusing the API.
Endpoints that receive enough requests from your app will include a X-App-Usage
or X-Ad-Account-Usage
(for v3.3 and older Ads API calls) HTTP header in their responses. The header will contain a JSON-formatted string that describes current application rate limit usage.
Key | Value Description |
---|---|
| A whole number expressing the percentage of calls made by your app over a rolling one hour period. |
| A whole number expressing the percentage of CPU time allotted for query processing. |
| A whole number expressing the percentage of total time allotted for query processing. |
Key | Value Description |
---|---|
| The percentage of calls made for this ad account before the rate limit is reached. |
| Time duration (in seconds) it takes to reset the current rate limit to 0. |
| Tiers allows your app to access the Marketing API. By default, apps are in the |
The amount of CPU time the request takes to process. When total_cputime
reaches 100, calls may be throttled.
The length of time the request takes to process. When total_time
reaches 100, calls may be throttled.
x-app-usage: { "call_count": 28, //Percentage of calls made "total_time": 25, //Percentage of total time "total_cputime": 25 //Percentage of total CPU time }
x-ad-account-usage: { "acc_id_util_pct": 9.67, //Percentage of calls made for this ad account. "reset_time_duration": 100, //Time duration (in seconds) it takes to reset the current rate limit score. "ads_api_access_tier": 'standard_access' //Tiers allows your app to access the Marketing API. standard_access enables lower rate limiting. }
The app dashboard displays the number of rate limited app users, the app’s current Application Rate Limits usage percentage, and displays average activity for the past 7 days. In the Application Rate Limit card, click View Details and hover over any point on the graph to see more details about usage for that particular moment. Because usage depends on call volume, this graph may not show a full 7 days. Apps with a higher volume of calls will show more days.
When an app or user has reached their rate limit, requests made by that app or user will fill and the API will respond with an error code.
Error Code | Description |
---|---|
| Indicates that the app whose token is being used in the request has reached its rate limit. |
| Indicates that the User whose token is being used in the request has reached their rate limit. |
| Indicates that the token being used in the Ads API v3.3 or older request has reached its rate limit. |
| Indicates that the User or app whose token is being used in the Pages API request has reached its rate limit. |
| Indicates that a custom rate limit has been reached. To help resolving this issue, visit the supporting docs for the specific API you are calling for custom rate limits that may be applied. |
| Indicates that we have noticed inconsistent behavior in the API request volume of your app. If you have made any recent changes that affect the number of API requests, you may be encountering this error. |
{ "error": { "message": "(#32) Page request limit reached", "type": "OAuthException", "code": 32, "fbtrace_id": "Fz54k3GZrio" } }
Error Code | Description |
---|---|
| Whether the query is throttled or not. Values: |
| First throttling factor
|
| Second throttling factor
|
X-App-Usage
HTTP header to see how close your app is to its limit and when you can resume making calls when the limit has been reached.All Marketing API requests, and Pages API requests made with a system or page access token, are subject to Business Use Case (BUC) Rate Limits, and depend on the endpoints you are querying.
For Marketing API, the rate limit is applied to the ad account across the same Business Use Case. For example, all endpoints with the Ads Management business use case will share the total quota within the same ad account. If a certain endpoint makes a lot of API requests and causes throttling, other endpoints configured with the same business use case will also receive rate limiting errors. The quota depends on the app's Marketing API Access Tier. The standard access Marketing API tier will have more quotas than the development access Marketing API tier. By default, an new app should be on the development tier. If you need to upgrade to get more rate limiting quota, upgrade to Advanced Access of Ads Management Standard Access in App Review.
Requests made by your app to the Ads Insights API are counted against the app's rate limit metrics such as call count, total CPU time and total time. An app's call count is the number of calls it can make during a rolling one hour window and is calculated as follows:
For apps with Standard Access to the Ads Management Standard Access feature:
Calls within one hour = 600 + 400 * Number of Active ads - 0.001 * User Errors
For apps with Advanced Access to the Ads Management Standard Access feature:
Calls within one hour = 190000 + 400 * Number of Active ads - 0.001 * User Errors
The Number of Active ads is the number of ads currently running per ad account. User Errors is the number of errors received when calling the API. To get a higher rate limit, you can apply for the Ads Management Standard Access feature.
Rate limiting may also be subject to the total CPU time and total wall time during a rolling one hour window. For more details, check the HTTP X-Business-Use-Case
header total_cputime
and total_time
.
If you are receiving rate limiting errors, you can also refer to estimated_time_to_regain_access
in the X-Business-Use-Case
header for the estimated blocking time.
Requests made by your app to the Ads Management API are counted against the app's rate limit metrics such as call count, total CPU time and total time. An app's call count is the number of calls it can make during a rolling one hour window and is calculated as follows:
For apps with Standard Accessto the Ads Management Standard Access feature:
Calls within one hour = 300 + 40 * Number of Active ads
For apps with Advanced Access to the Ads Management Standard Access feature:
Calls within one hour = 100000 + 40 * Number of Active ads
The Number of Active Ads is the number of ads for each ad account.
Rate limiting may also be subject to the total CPU time and total wall time during a rolling one hour window. For more details, check the HTTP X-Business-Use-Case
header total_cputime
and total_time
.
If you are receiving rate limiting errors, you can also refer to estimated_time_to_regain_access
in the X-Business-Use-Case
header for the estimated blocking time.
Requests made by your app are counted against the rate limit metrics such as call count, total CPU time and total time your app can make in a rolling one hour period per each catalog ID and is calculated as follows:
Calls within one hour = 200 + 200 * log2(unique users)
The unique users is a number of unique users of the business (on all catalogs) with intent in the last 28 days. The more users see products from your catalogs, the more call quota is allocated.
Type of Call | Endpoint |
---|---|
POST | /{catalog_id}/items_batch |
POST | /{catalog_id}/localized_items_batch |
POST | /{catalog_id}/batch |
Requests made by your app are counted against the number of calls your app can make in a rolling one hour period per each catalog ID and is calculated as follows:
Calls within one hour = 20,000 + 20,000 * log2(unique users)
The unique users is a number of unique users of the business (on all catalogs) with intent in the last 28d. The more users see products from your catalogs, the more call quota is allocated.
This formula is applied on various catalog endpoints.
For more information on how to get your current rate usage, see Headers.
Rate limiting may also be subject to the total CPU time and total wall time during a rolling one hour window. For more details, check the HTTP X-Business-Use-Case
header total_cputime
and total_time
.
If you are receiving rate limiting errors, you can also refer to estimated_time_to_regain_access
in the X-Business-Use-Case
header for the estimated blocking time.
Requests made by your app to the Custom Audience API are counted against the app's rate limit metrics such as call count, total CPU time and total time. An app's call count is the number of calls it can make during a rolling one hour window and is calculated as follows but will never exceed 700000:
For apps with Standard Access to the Ads Management Standard Access feature:
Calls within one hour = 5000 + 40 * Number of Active Custom Audiences
For apps with Advanced Access to the Ads Management Standard Access feature:
Calls within one hour = 190000 + 40 * Number of Active Custom Audiences
The Number of Active Custom Audiences is the number of active custom audiences for each ad account.
Rate limiting may also be subject to the total CPU time and total wall time during a rolling one hour window. For more details, check the HTTP X-Business-Use-Case
header total_cputime
and total_time
.
If you are receiving rate limiting errors, you can also refer to estimated_time_to_regain_access
in the X-Business-Use-Case
header for the estimated blocking time.
Calls to the Instagram Platform endpoints, excluding messaging, are counted against the calling app's call count. An app's call count is unique for each app and app user pair, and is the number of calls the app has made in a rolling 24 hour window. It is calculated as follows:
Calls within 24 hours = 4800 * Number of Impressions
The Number of Impressions is the number of times any content from the app user's Instagram professional account has entered a person's screen within the last 24 hours.
Calls to the Instagram messaging endpoints are counted against the number of calls your app can make per Instagram professional account and the API used.
Requests made by your app to the LeadGen API are counted against the app’s call count. An app’s call count is the number of calls it can make during a rolling 24 hour window and is calculated as follows:
Calls within 24 hours = 4800 * Leads Generated
The Number of Leads Generated is the number of leads generated per Page for this Ad Account over the past 90 days.
Rate limits for the Messenger Platform are dependent on the API used and, in some instances, the message content.
Requests made by your app are counted against the number of calls your app can make in a rolling 24 hour period and is calculated as follows:
Calls within 24 hours = 200 * Number of Engaged Users
The Number of Engaged Users is the number of people the business can message via Messenger.
Requests made by your app are counted against the number of calls your app can make per Instagram professional account and the API used.
Conversations API
Send API
Private Replies API
The Page Rate Limits may use either the Platform or BUC rate limit logic depending on the type of token used. Any Pages API calls that are made using a Page or system user access token use the rate limit calculation below. Any calls made with application or user access tokens are subject to application or User rate limits.
Requests made by your app to the Pages API using a Page access token or system User access token are counted against the app’s call count. An app’s call count is the number of calls it can make during a rolling 24 hour window and is calculated as follows:
Calls within 24 hours = 4800 * Number of Engaged Users
The Number of Engaged Users is the number of Users who engaged with the Page per 24 hours.
Requests made by your app to the Pages API using a User access token or App access token follow the Platform Rate Limit logic.
To avoid rate limiting issues when using the Page Public Access Content feature, using a system user access token is recommended.
Requests made by your app to any Commerce endpoints are counted against the app’s call count. An app’s call count is the number of calls it can make during a rolling one hour window and is calculated as follows:
Calls within one hour = 200 + 40 * Number of Catalogs
The Number of Catalogs is the total number of catalogs across all commerce accounts managed by your app.
Calls within 24 hours = 4800 * Number of Impressions
720000 * number_of_impressions for total_cputime
2880000 * Number of Impressions for total_time
调用类型 | 端点 |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
调用类型 | 端点 |
---|---|
|
|
|
|
|
|
|
|
All API responses made by your app that are rate limited using the BUC logic include an X-Business-Use-Case-Usage
(for v3.3 and older Ads API calls) HTTP header with a JSON-formatted string that describes current application rate limit usage. This header can return up to 32 objects in one call.
Error Code | Value Description |
---|---|
| The ID of the business associated with the token making the API calls. |
| A whole number expressing the percentage of allowed calls made by your app over a rolling one hour period. |
| Time, in minutes, until calls will not longer be throttled. |
| A whole number expressing the percentage of CPU time allotted for query processing. |
| A whole number expressing the percentage of total time allotted for query processing. |
| Type of rate limit applied. Value can be one of the following:
|
| For |
The amount of CPU time the request takes to process. When total_cputime reaches 100, calls may be throttled.
The length of time the request takes to process. When total_time reaches 100, calls may be throttled.
For ads_insights
and ads_management
types only. Tiers allows your app to access the Marketing API. By default, apps are in the development_access
tier. Standard_access
enables lower rate limiting. To get a higher rate limit and get to the standard tier, you can apply for the "Advanced Access" to the Ads Management Standard Access feature.
x-business-use-case-usage: { "{business-object-id}": [ { "type": "{rate-limit-type}", //Type of BUC rate limit logic being applied. "call_count": 100, //Percentage of calls made. "total_cputime": 25, //Percentage of the total CPU time that has been used. "total_time": 25, //Percentage of the total time that has been used. "estimated_time_to_regain_access": 19, //Time in minutes to regain access. "ads_api_access_tier": "standard_access" //Tiers allows your app to access the Marketing API. standard_access enables lower rate limiting. } ], "66782684": [ { "type": "ads_management", "call_count": 95, "total_cputime": 20, "total_time": 20, "estimated_time_to_regain_access": 0, "ads_api_access_tier": "development_access" } ], "10153848260347724": [ { "type": "ads_insights", "call_count": 97, "total_cputime": 23, "total_time": 23, "estimated_time_to_regain_access": 0, "ads_api_access_tier": "development_access" } ], "10153848260347724": [ { "type": "pages", "call_count": 97, "total_cputime": 23, "total_time": 23, "estimated_time_to_regain_access": 0 } ], ... }
When your app reaches its Business Use Case rate limit, subsequent requests made by your app will fail and the API will respond with an error code.
Error Code | BUC Rate Limit Type |
---|---|
| Ads Insights |
| Ads Management |
| Custom Audience |
| |
| LeadGen |
| Messenger |
error code 32 | Page calls made with a User access token |
error code 80001 | Page calls made with a Page or System User access token |
| V3.3 and Older Ads API excluding Ads Insights |
| WhatsApp Business Management API |
| Catalog Batch |
| Catalog Management |
{ "error": { "message": "(#80001) There have been too many calls to this Page account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting.", "type": "OAuthException", "code": 80001, "fbtrace_id": "AmFGcW_3hwDB7qFbl_QdebZ" } }
X-Business-Use-Case-Usage
HTTP header to see how close your ad account is to its limit and when you can resume making calls.All calls count towards the rate limits, not just individual API requests. For example, you can make a single API request specifying multiple IDs, but each ID counts as one API call.
The following table illustrates this concept.
Example Request(s) | Number of API Calls |
---|---|
GET https://graph.facebook.com/photos?ids=5
| 3 |
| 3 |
We strongly recommend specifying multiple IDs in one API request when possible, as this improves performance of your API responses.
If you are building a service that scrapes data, please read our scraping terms.