# Method: projects.locations.models.list

- [HTTP request](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models/list#body.request_body)
- [Response body](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models/list#body.ListModelsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models/list#body.aspect)
- [Try it!](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models/list#try-it)

Lists models.

### HTTP request

`GET https://translate.googleapis.com/v3/{parent=projects/*/locations/*}/models`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Name of the parent project. In form of `projects/{project-number-or-id}/locations/{location-id}` |

### Query parameters

| Parameters ||
|---|---|
| `filter` | `string` Optional. An expression for filtering the models that will be returned. Supported filter: `datasetId=${datasetId}` |
| `pageSize` | `integer` Optional. Requested page size. The server can return fewer results than requested. |
| `pageToken` | `string` Optional. A token identifying a page of results for the server to return. Typically obtained from nextPageToken field in the response of a models.list call. |

### Request body

The request body must be empty.

### Response body

Response message for models.list.

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

| JSON representation |
|---|
| ``` { "models": [ { object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models#Model`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `models[]` | ``object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models#Model`)`` The models read. |
| `nextPageToken` | `string` A token to retrieve next page of results. Pass this token to the pageToken field in the ListModelsRequest to obtain the corresponding page. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `https://www.googleapis.com/auth/cloud-translation`

For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).