---
title: "Google Lens API: Lens | Perceptlayer"
description: "Lens from Google Lens as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/google-lens/lens
---

[APIs](https://perceptlayer.com/apis) / [Google Lens](https://perceptlayer.com/apis/google-lens) / Lens

# Google Lens: Lens

Lens from Google Lens as JSON. 1 credit per successful call.

GET `/v1/google-lens/lens`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `url` | string | Required | Up to 2,048 characters |
| `q` | string | Optional | Up to 500 characters |
| `type` | string | Optional | all, products, exact\_matches, visual\_matches |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/google-lens/lens?url=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F4%2F45%2FA_small_cup_of_coffee.JPG&type=visual_matches" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/google-lens?try=lens#playground) with your own parameters. 1 credit per successful call; failed calls are free.
