getQuota

Prev Next

Available in Classic and VPC

Get the GeoLocation API call limit type and maximum number of calls per month set by the user.

Request

This section describes the request format. The method and URI are as follows:

Method URI
GET /geolocation/v2/quota

Request headers

For information about the headers common to all GeoLocation APIs, see GeoLocation request headers.

Request example

The request example is as follows:

curl --location --request GET 'https://geolocation.apigw.ntruss.com/geolocation/v2/quota' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'

Response

This section describes the response format.

Response body

The response body includes the following data:

Field Type Required Description
resource Object - Resource information
resource.type String - Limit type
  • Unlimited | Limited
    • Unlimited: Usage unlimited
    • Limited: Usage limited
resource.quota Integer - Set maximum number of calls per month
  • Return -1 if the limit is Unlimited

Response status codes

For information about the HTTP status codes common to all GeoLocation APIs, see GeoLocation response status codes.

Response example

The response example is as follows:

{
    "resource": {
        "type": "Limited",
        "quota": 100
    }
}