Google

API Keys API

Manages the API keys associated with developer projects.

Developer tools#openapi#analytics#media

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Manages the API keys associated with developer projects.

Endpoints 8

keys

  • GETFind the parent project and resource name of the API key that matches the key string in the request/v2/keys:lookupKey?keyString=stringFind the parent project and resource name of the API key that matches the key string in the request. If the API key has been purged, resource name will not be…

projects.locations.keys

  • GETGets the metadata for an API key/v2/:nameGets the metadata for an API key. The key string of the API key isn't included in the response. NOTE: Key is a global resource; hence the only supported value…
  • DELETEDeletes an API key/v2/:name?checkExistingUsage=CHECK_EXISTING_USAGE_UNSPECIFIED&etag=stringDeletes an API key. Deleted key can be retrieved within 30 days of deletion. Afterward, key will be purged from the project. The key string of the API key…
  • PATCHPatches the modifiable fields of an API key/v2/:name?checkExistingUsage=CHECK_EXISTING_USAGE_UNSPECIFIED&updateMask=stringPatches the modifiable fields of an API key. The key string of the API key isn't included in the response and can only be retrieved through the GetKeyString…
  • GETLists the API keys owned by a project/v2/:parent/keys?pageSize=0&pageToken=string&showDeleted=trueLists the API keys owned by a project. The key string of the API key isn't included in the response. NOTE: Key is a global resource; hence the only supported…
  • POSTCreates a new API key/v2/:parent/keys?keyId=stringCreates a new API key. The key string of the API key is included in the response and can afterward only be retrieved through the GetKeyString method. NOTE:…
  • GETGet the key string for an API key/v2/:name/keyStringGet the key string for an API key. NOTE: Key is a global resource; hence the only supported value for location is global.
  • POSTUndeletes an API key which was deleted within 30 days/v2/:name:undeleteUndeletes an API key which was deleted within 30 days. The key string of the API key isn't included in the response and can only be retrieved through the…

API details

Base URL
https://apikeys.googleapis.com
Authentication
OAuth 2.0 (authorization code flow) with 4 scopes
An API key in the key query parameter
Operations
8 operations on 5 pathsGET 4POST 2PATCH 1DELETE 1
Main resources
projects.locations.keys 7keys 1
Response formats
application/json
Description format
Google API Discovery, API version v2

How to test the API Keys API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the API Keys API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 4 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Find the parent project and resource name of the API key that matches the key string in the request” (GET /v2/keys:lookupKey?keyString=string), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the API Keys API?

Manages the API keys associated with developer projects. It is listed under Developer tools and has 8 endpoints.

Who publishes the API Keys API?

It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the API Keys API?

Requests go to https://apikeys.googleapis.com. Endpoint paths are added to this base URL.

How do I authenticate with the API Keys API?

It accepts 2 methods: OAuth 2.0 (authorization code flow) with 4 scopes; an API key in the key query parameter.

How many endpoints does the API Keys API have?

8 operations on 5 paths (4 GET, 2 POST, 1 PATCH, 1 DELETE). The largest groups are projects.locations.keys, keys.

Is forking the API Keys API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.