# Method: projects.locations.models.list

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

Lists models.

### HTTP request

`GET https://automl.googleapis.com/v1beta1/{parent}/models`

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Resource name of the project, from which to list the models. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource `parent`: - `automl.models.list` <br /> |

### Query parameters

| Parameters ||
|---|---|
| `filter` | `string` An expression for filtering the results of the request. - `model_metadata` - for existence of the case. - `datasetId` - for = or !=. Some examples of using the filter are: - `imageClassificationModelMetadata:*` --\> The model has imageClassificationModelMetadata. - `datasetId=5` --\> The model was created from a sibling dataset with ID 5. <br /> |
| `pageSize` | `number` Requested page size. |
| `pageToken` | `string` A token identifying a page of results for the server to return Typically obtained via `https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.models/list#body.ListModelsResponse.FIELDS.next_page_token` of the previous `https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.models/list#google.cloud.automl.v1beta1.AutoMl.ListModels` call. |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains data with the following structure:
Response message for `https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.models/list#google.cloud.automl.v1beta1.AutoMl.ListModels`.

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

| Fields ||
|---|---|
| `model[]` | ``object(`https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.models#Model`)`` List of models in the requested page. |
| `nextPageToken` | `string` A token to retrieve next page of results. Pass to \[models.list.page_token\]\[\] to obtain that page. |

### Authorization Scopes

Requires the following OAuth scope:

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

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