Get your current rate limit status

/rate_limit

This call returns information about your current rate limit. This is the number of API calls you can make in five minutes. This call also returns information about your current instance limit.

https://cgc-api.sbgenomics.com/v2/rate_limit

👍

Note that making this API call does not count against your rate limit.

Request

Example request

GET /v2/rate_limit HTTP/1.1
Host: cgc-api.sbgenomics.com
X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74
curl -s -H "X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74" -H "content-type: application/json" -X GET "https://cgc-api.sbgenomics.com/v2/rate_limit"

Header Fields

NameDescription
X-SBG-Auth-Token
required
Your CGC authentication token.

Query parameters

Response

See a list of CGC-specific response codes that may be contained in the body of the response.

Example response body

{
  "rate": {
    "limit": 1000,
    "remaining": 1000,
    "reset":  1489700093
  },
 "instance_limit" : {
    "limit": -1,
    "remaining": 9223372036854775807
 }
}

Interpreting the response body:

For rate:

  • limit indicates how many requests can be made in one hour.
  • remaining indicates how many requests remain.
  • reset indicates the time in Unix epochs when the request rate limit will be reset.

For instance_limit:

  • limit indicates the total number of instances available to the user. For the first few months, instance limits are unlimited. This is indicated by a special limit of -1. Correspondingly, the remaining value is high.
  • remaining indicates the number of the instances that are available at the moment. For the first few months, instance limits are unlimited. This is indicated by a high remaining value. Correspondingly, the limit is set to a special value of -1.
Language