# Method: projects.locations.products.referenceImages.list

- [HTTP request](https://docs.cloud.google.com/vision/docs/reference/rest/v1p3beta1/projects.locations.products.referenceImages/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/vision/docs/reference/rest/v1p3beta1/projects.locations.products.referenceImages/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/vision/docs/reference/rest/v1p3beta1/projects.locations.products.referenceImages/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/vision/docs/reference/rest/v1p3beta1/projects.locations.products.referenceImages/list#body.request_body)
- [Response body](https://docs.cloud.google.com/vision/docs/reference/rest/v1p3beta1/projects.locations.products.referenceImages/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/vision/docs/reference/rest/v1p3beta1/projects.locations.products.referenceImages/list#body.ListReferenceImagesResponse.SCHEMA_REPRESENTATION)
- [Authorization Scopes](https://docs.cloud.google.com/vision/docs/reference/rest/v1p3beta1/projects.locations.products.referenceImages/list#body.aspect)
- [Try it!](https://docs.cloud.google.com/vision/docs/reference/rest/v1p3beta1/projects.locations.products.referenceImages/list#try-it)

Lists reference images.

Possible errors:

- Returns NOT_FOUND if the parent product does not exist.
- Returns INVALID_ARGUMENT if the pageSize is greater than 100, or less than 1.

### HTTP request

`GET https://vision.googleapis.com/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages`

The URL uses [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Resource name of the product containing the reference images. Format is `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. <br /> |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `number` The maximum number of items to return. Default 10, maximum 100. |
| `pageToken` | `string` A token identifying a page of results to be returned. This is the value of `nextPageToken` returned in a previous reference image list request. Defaults to the first page if not specified. <br /> |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains data with the following structure:
Response message for the `referenceImages.list` method.

| JSON representation ||
|---|---|
| ``` { "referenceImages": [ { object(`https://docs.cloud.google.com/vision/docs/reference/rest/v1p3beta1/projects.locations.products.referenceImages#ReferenceImage`) } ], "pageSize": number, "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `referenceImages[]` | ``object(`https://docs.cloud.google.com/vision/docs/reference/rest/v1p3beta1/projects.locations.products.referenceImages#ReferenceImage`)`` The list of reference images. |
| `pageSize` | `number` The maximum number of items to return. Default 10, maximum 100. |
| `nextPageToken` | `string` The nextPageToken returned from a previous List request, if any. |

### Authorization Scopes

Requires one of the following OAuth scopes:

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

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

## Try it!