Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cloud Quotas - Get usage of queries per day (Custom Search JSON API)

Hello,
I would like to ask for your advice on how to get the number of daily API requests with a simple api call.

Method projects.locations.services.quotaInfos.get from cloud quotas rest api gives me only maximum available quotas, not current daily usage.

{
  "name": "projects/{projectID}/locations/global/services/customsearch.googleapis.com/quotaInfos/DefaultPerDayPerProject",
  "quotaId": "DefaultPerDayPerProject",
  "metric": "customsearch.googleapis.com/requests",
  "service": "customsearch.googleapis.com",
  "refreshInterval": "day",
  "containerType": "PROJECT",
  "metricDisplayName": "Queries",
  "metricUnit": "1",
  "quotaIncreaseEligibility": {
    "isEligible": true
  },
  "dimensionsInfos": [
    {
      "details": {
        "value": "10000"
      },
      "applicableLocations": [
        "global"
      ]
    }
  ]
}

 Thank you for help. Petr L.

1 0 296
0 REPLIES 0
Top Labels in this Space
Top Solution Authors