Method: projects.locations.apis.get

Get API resource details including the API versions contained in it.

HTTP request

GET https://apihub.googleapis.com/v1/{name=projects/*/locations/*/apis/*}

The URL usesgRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the API resource to retrieve. Format:projects/{project}/locations/{location}/apis/{api}

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance ofApi.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

IAM Permissions

Requires the followingIAM permission on thename resource:

  • apihub.apis.get

For more information, see theIAM documentation.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-28 UTC.