- [HTTP request](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs/fetchAdditionalSpecContent#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs/fetchAdditionalSpecContent#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs/fetchAdditionalSpecContent#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs/fetchAdditionalSpecContent#body.request_body)
- [Response body](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs/fetchAdditionalSpecContent#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs/fetchAdditionalSpecContent#body.FetchAdditionalSpecContentResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs/fetchAdditionalSpecContent#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs/fetchAdditionalSpecContent#body.aspect_1)

Fetch additional spec content.

### HTTP request

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

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The name of the spec whose contents need to be retrieved. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` |

### Query parameters

| Parameters ||
|---|---|
| `specContentType` | ``enum (`https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs#SpecContentType`)`` Optional. The type of the spec contents to be retrieved. |

### Request body

The request body must be empty.

### Response body

The `https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs/fetchAdditionalSpecContent#google.cloud.apihub.v1.ApiHub.FetchAdditionalSpecContent` method's response.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "additionalSpecContent": { object (`https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs#AdditionalSpecContent`) } } ``` |

| Fields ||
|---|---|
| `additionalSpecContent` | ``object (`https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.specs#AdditionalSpecContent`)`` The additional spec content. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/apihub.readonly`
- `
  https://www.googleapis.com/auth/apihub.readwrite`
- `
  https://www.googleapis.com/auth/cloud-platform`

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `apihub.specs.get`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).