Google Lens avatar

Google Lens

Try for free

3 days trial then $34.99/month - No credit card required now

Go to Store
Google Lens

Google Lens

borderline/google-lens
Try for free

3 days trial then $34.99/month - No credit card required now

Ultimate Lens API ๐ŸŒŸ Seamlessly identify text, translate in real time ๐ŸŒ, recognize and classify objects ๐ŸŽ, reverse search images ๐Ÿ”, and extract detailed structured data ๐Ÿ“š. Itโ€™s fast, reliable, and affordableโ€”your essential tool for all visual intelligence needs! ๐Ÿš€ [BETA]

You can access the Google Lens programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, youโ€™ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "0.0",
5    "x-build-id": "Ty56IbxqLrqD2ZKX1"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/borderline~google-lens/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-borderline-google-lens",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/borderline~google-lens/runs": {
50      "post": {
51        "operationId": "runs-sync-borderline-google-lens",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/borderline~google-lens/run-sync": {
93      "post": {
94        "operationId": "run-sync-borderline-google-lens",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "required": [
134          "type",
135          "imageUrls"
136        ],
137        "properties": {
138          "type": {
139            "title": "๐Ÿ” Type",
140            "enum": [
141              "translate",
142              "findImageSource",
143              "search",
144              "ocr"
145            ],
146            "type": "string",
147            "description": "Select the type of search you want to perform"
148          },
149          "imageUrls": {
150            "title": "๐Ÿ”Ž Image URLs",
151            "type": "array",
152            "description": "List of image urls to search with google lens",
153            "items": {
154              "type": "object",
155              "required": [
156                "url"
157              ],
158              "properties": {
159                "url": {
160                  "type": "string",
161                  "title": "URL of a web page",
162                  "format": "uri"
163                }
164              }
165            }
166          },
167          "translateTo": {
168            "title": "๐ŸŒ Translate to",
169            "enum": [
170              "en",
171              "es",
172              "fr",
173              "de",
174              "it",
175              "pt",
176              "nl",
177              "pl",
178              "ru",
179              "ja",
180              "zh",
181              "ko",
182              "ar",
183              "hi",
184              "tr",
185              "cs",
186              "da",
187              "fi",
188              "el",
189              "hu",
190              "no",
191              "sv",
192              "th",
193              "uk",
194              "vi"
195            ],
196            "type": "string",
197            "description": "Select the language to translate the text to"
198          }
199        }
200      },
201      "runsResponseSchema": {
202        "type": "object",
203        "properties": {
204          "data": {
205            "type": "object",
206            "properties": {
207              "id": {
208                "type": "string"
209              },
210              "actId": {
211                "type": "string"
212              },
213              "userId": {
214                "type": "string"
215              },
216              "startedAt": {
217                "type": "string",
218                "format": "date-time",
219                "example": "2025-01-08T00:00:00.000Z"
220              },
221              "finishedAt": {
222                "type": "string",
223                "format": "date-time",
224                "example": "2025-01-08T00:00:00.000Z"
225              },
226              "status": {
227                "type": "string",
228                "example": "READY"
229              },
230              "meta": {
231                "type": "object",
232                "properties": {
233                  "origin": {
234                    "type": "string",
235                    "example": "API"
236                  },
237                  "userAgent": {
238                    "type": "string"
239                  }
240                }
241              },
242              "stats": {
243                "type": "object",
244                "properties": {
245                  "inputBodyLen": {
246                    "type": "integer",
247                    "example": 2000
248                  },
249                  "rebootCount": {
250                    "type": "integer",
251                    "example": 0
252                  },
253                  "restartCount": {
254                    "type": "integer",
255                    "example": 0
256                  },
257                  "resurrectCount": {
258                    "type": "integer",
259                    "example": 0
260                  },
261                  "computeUnits": {
262                    "type": "integer",
263                    "example": 0
264                  }
265                }
266              },
267              "options": {
268                "type": "object",
269                "properties": {
270                  "build": {
271                    "type": "string",
272                    "example": "latest"
273                  },
274                  "timeoutSecs": {
275                    "type": "integer",
276                    "example": 300
277                  },
278                  "memoryMbytes": {
279                    "type": "integer",
280                    "example": 1024
281                  },
282                  "diskMbytes": {
283                    "type": "integer",
284                    "example": 2048
285                  }
286                }
287              },
288              "buildId": {
289                "type": "string"
290              },
291              "defaultKeyValueStoreId": {
292                "type": "string"
293              },
294              "defaultDatasetId": {
295                "type": "string"
296              },
297              "defaultRequestQueueId": {
298                "type": "string"
299              },
300              "buildNumber": {
301                "type": "string",
302                "example": "1.0.0"
303              },
304              "containerUrl": {
305                "type": "string"
306              },
307              "usage": {
308                "type": "object",
309                "properties": {
310                  "ACTOR_COMPUTE_UNITS": {
311                    "type": "integer",
312                    "example": 0
313                  },
314                  "DATASET_READS": {
315                    "type": "integer",
316                    "example": 0
317                  },
318                  "DATASET_WRITES": {
319                    "type": "integer",
320                    "example": 0
321                  },
322                  "KEY_VALUE_STORE_READS": {
323                    "type": "integer",
324                    "example": 0
325                  },
326                  "KEY_VALUE_STORE_WRITES": {
327                    "type": "integer",
328                    "example": 1
329                  },
330                  "KEY_VALUE_STORE_LISTS": {
331                    "type": "integer",
332                    "example": 0
333                  },
334                  "REQUEST_QUEUE_READS": {
335                    "type": "integer",
336                    "example": 0
337                  },
338                  "REQUEST_QUEUE_WRITES": {
339                    "type": "integer",
340                    "example": 0
341                  },
342                  "DATA_TRANSFER_INTERNAL_GBYTES": {
343                    "type": "integer",
344                    "example": 0
345                  },
346                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
347                    "type": "integer",
348                    "example": 0
349                  },
350                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
351                    "type": "integer",
352                    "example": 0
353                  },
354                  "PROXY_SERPS": {
355                    "type": "integer",
356                    "example": 0
357                  }
358                }
359              },
360              "usageTotalUsd": {
361                "type": "number",
362                "example": 0.00005
363              },
364              "usageUsd": {
365                "type": "object",
366                "properties": {
367                  "ACTOR_COMPUTE_UNITS": {
368                    "type": "integer",
369                    "example": 0
370                  },
371                  "DATASET_READS": {
372                    "type": "integer",
373                    "example": 0
374                  },
375                  "DATASET_WRITES": {
376                    "type": "integer",
377                    "example": 0
378                  },
379                  "KEY_VALUE_STORE_READS": {
380                    "type": "integer",
381                    "example": 0
382                  },
383                  "KEY_VALUE_STORE_WRITES": {
384                    "type": "number",
385                    "example": 0.00005
386                  },
387                  "KEY_VALUE_STORE_LISTS": {
388                    "type": "integer",
389                    "example": 0
390                  },
391                  "REQUEST_QUEUE_READS": {
392                    "type": "integer",
393                    "example": 0
394                  },
395                  "REQUEST_QUEUE_WRITES": {
396                    "type": "integer",
397                    "example": 0
398                  },
399                  "DATA_TRANSFER_INTERNAL_GBYTES": {
400                    "type": "integer",
401                    "example": 0
402                  },
403                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
404                    "type": "integer",
405                    "example": 0
406                  },
407                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
408                    "type": "integer",
409                    "example": 0
410                  },
411                  "PROXY_SERPS": {
412                    "type": "integer",
413                    "example": 0
414                  }
415                }
416              }
417            }
418          }
419        }
420      }
421    }
422  }
423}

Google Lens OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for Google Lens from the options below:

If youโ€™d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients:

Developer
Maintained by Community

Actor Metrics

  • 14 monthly users

  • 2 bookmarks

  • >99% runs succeeded

  • 0.21 hours response time

  • Created in Jan 2025

  • Modified a month ago