Skip to main content

GET/rate_limit/

This method retrieves the call limit and utilization data for an application. The data is retrieved for all RESTful APIs and the legacy Trading API.

The response from getRateLimits includes a list of the applicable resources and the "call limit", or quota, that is set for each resource. In addition to quota information, the response also includes the number of remaining calls available before the limit is reached, the time remaining before the quota resets, and the length of the "time window" to which the quota applies.

By default, this method returns utilization data for all RESTful API and the legacy Trading API resources. Use the api_name and api_context query parameters to filter the response to only the desired APIs.

For more on call limits, see Application Growth Check.

Input

Resource URI

GET https://api.ebay.com/developer/analytics/v1_beta/rate_limit/?

This method is supported in Sandbox environment. To access the endpoint, just replace the api.ebay.com root URI with api.sandbox.ebay.com

URI parameters

ParameterTypeDescription
api_namestringThis optional query parameter filters the result to include only the APIs specified.

Example values:

Occurrence: Optional

api_contextstringThis optional query parameter filters the result to include only the specified API context.

Valid values:
  • buy
  • sell
  • commerce
  • developer
  • tradingapi

Occurrence: Optional

HTTP request headers

All requests made to eBay REST operations require you to provide the Authorization HTTP header for authentication authorization.

All other standard RESTful request headers are optional. For more information on standard RESTful request headers, see the HTTP request headers- opens rest request components page table.

OAuth scope

This request requires an access token created with the client credentials grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):

https://api.ebay.com/oauth/api_scope

See OAuth access tokens for more information.

Request payload

This call has no payload.

Request fields

This call has no field definitions.

Output

HTTP response headers

This call has no response headers.

Response payload

{ /* RateLimitsResponse */
"rateLimits" : [
{ /* RateLimit */
"resources" : [
{ /* Resource */
"name" : "string",
"rates" : [
{ /* Rate */
"limit" : "integer",
"reset" : "string",
}
]
}
]
}
]
}

Response fields

Output container/fieldTypeDescription
rateLimitsarray of RateLimit

The rate-limit data for the specified APIs. The rate-limit data is returned for all the methods in the specified APIs and data pertains to the current time window.

Occurrence: Conditional

rateLimits.apiContextstring

The context of the API for which rate-limit data is returned. For example buy, sell, commerce, developer or tradingapi.

Occurrence: Conditional

rateLimits.apiNamestring

The name of the API for which rate-limit data is returned. For example browse for the Buy API, inventory for the Sell API, taxonomy for the Commerce API, or tradingapi for Trading API.

Occurrence: Conditional

rateLimits.apiVersionstring

The version of the API for which rate-limit data is returned. For example v1 or v2.

Occurrence: Conditional

rateLimits.resourcesarray of Resource

A list of the methods for which rate-limit data is returned. For example item for the Feed API, getOrder for the Fulfillment API, getProduct for the Catalog API, AddItems for the Trading API.

Occurrence: Conditional

rateLimits.resources.namestring

The name of the resource (an API or an API method) to which the rate-limit data applies.

Occurrence: Conditional

rateLimits.resources.ratesarray of Rate

A list of rate-limit data, where each list element represents the rate-limit data for a specific resource.

Occurrence: Conditional

rateLimits.resources.rates.limitinteger

The maximum number of requests that can be made to this resource during a set time period. The length of time to which the limit is applied is defined by the associated timeWindow value.

This value is often referred to as the "call quota" for the resource.

Occurrence: Conditional

rateLimits.resources.rates.remaininginteger

The remaining number of requests that can be made to this resource before the associated time window resets.

Occurrence: Conditional

rateLimits.resources.rates.resetstring

The data and time the time window and accumulated calls for this resource reset.

When the reset time is reached, the remaining value is reset to the value of limit, and this reset value is reset to the current time plus the number of seconds defined by the timeWindow value.

The time stamp is formatted as an ISO 8601 string, which is based on the 24-hour Universal Coordinated Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2018-08-04T07:09:00.000Z

Occurrence: Conditional

rateLimits.resources.rates.timeWindowinteger

A period of time, expressed in seconds. The call quota for a resource is applied to the period of time defined by the value of this field.

Occurrence: Conditional

HTTP status codes

This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.

StatusMeaning
200OK
204No Content
500Internal Server Error

Error codes

For more on errors, plus the codes of other common errors, see Handling errors.

CodeDomainCategoryMeaning
105000API_ANALYTICSAPPLICATIONThere was a problem with an eBay internal system or process. Contact eBay developer support for assistance.

Warnings

This call has no warnings.

Samples

New to making API calls? Please see Making a Call.

Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.

Sample 1: Get the call-limit data for an application

This example shows call how to retrieve the call-limit data for all resources available to an application.

Input

This method does not use a request body. However, you can use the api_name and api_context query parameters to control the data returned in the response.

GEThttps://api.ebay.com/developer/analytics/v1_beta/rate_limit/

Output

A successful request for a call that does not specify any query parameters returns a list of call-limit data for all the supported resources.

Got thoughts? Click the feedback button – your insights help us improve!