---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/externalApis"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/externalApis"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/externalApis

`GET /v1/projects/{projectsId}/locations/{locationsId}/externalApis`

## Request

- Base URL: `https://apihub.googleapis.com`
- URL: `https://apihub.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/externalApis`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/apihub.readonly`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/apihub.readonly`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/apihub.readwrite`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/apihub.readwrite`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
- TypeScript: <https://skmtc.dev/google/apis/apihub/docs/v1/projects/:projectsId/locations/:locationsId/externalApis/get.ts> (a function with typed inputs; its response is checked against the schema)

List External API resources in the API hub.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Query parameters

- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- GoogleCloudApihubV1ListExternalApisResponse: The ListExternalApis method's response.
  - `externalApis` GoogleCloudApihubV1ExternalApi[]: The External API resources present in the API hub.
    - `attributes` object: Optional. The list of user defined attributes associated with the Version resource. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
    - `createTime` string, google-datetime: Output only. Creation timestamp.
    - `description` string: Optional. Description of the external API. Max length is 500000 characters (Unicode Code Points).
    - `displayName` string: Required. Display name of the external API. Max length is 500 characters (Unicode Code Points).
    - `documentation` GoogleCloudApihubV1Documentation: Documentation details.
      - `externalUri` string: Optional. The uri of the externally hosted documentation.
    - `endpoints` string[]: Optional. List of endpoints on which this API is accessible.
    - `name` string: Identifier. Format: `projects/{project}/locations/{location}/externalApi/{externalApi}`.
    - `paths` string[]: Optional. List of paths served by this API.
    - `updateTime` string, google-datetime: Output only. Last update timestamp.
  - `nextPageToken` string: A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

## Changes

- **2026-11-08** `09b6c7d2247b`: 4 info
  - the security scope `https://www.googleapis.com/auth/apihub.readonly` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/apihub.readonly` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/apihub/changes/v1/projects/:projectsId/locations/:locationsId/externalApis/get.md)

---

[API](https://skmtc.dev/google/apis/apihub.md) - [All operations](https://skmtc.dev/google/apis/apihub/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/apihub/revisions/09b6c7d2247b?raw)
