> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapebadger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Lens visual search

> Search Google Lens by image URL for visually similar results.



## OpenAPI

````yaml GET /v1/google/lens/search
openapi: 3.1.0
info:
  title: ScrapeBadger Google Scraper
  description: >-
    Dedicated API for scraping Google products (SERP, Maps, News, Hotels,
    Trends, Jobs, Shopping, Patents, Scholar, Autocomplete, Images, Videos,
    Finance, AI Mode, Lens, Products).
  version: 1.0.0
servers:
  - url: https://scrapebadger.com
    description: Production
security:
  - apiKeyAuth: []
paths:
  /v1/google/lens/search:
    get:
      tags:
        - Google Lens
      summary: Google Lens visual search
      description: Search Google Lens by image URL for visually similar results.
      operationId: search_lens_api_v1_lens_search_get
      parameters:
        - name: url
          in: query
          required: true
          schema:
            type: string
            description: Public URL of the image to search visually
            title: Url
          description: Public URL of the image to search visually
        - name: gl
          in: query
          required: false
          schema:
            type: string
            description: Country code
            default: us
            title: Gl
          description: Country code
        - name: hl
          in: query
          required: false
          schema:
            type: string
            description: Language code
            default: en
            title: Hl
          description: Language code
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LensSearchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    LensSearchResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/LensResult'
          type: array
          title: Results
        image_url:
          type: string
          title: Image Url
      type: object
      required:
        - image_url
      title: LensSearchResponse
      description: Response for GET /api/v1/lens/search.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LensResult:
      properties:
        position:
          anyOf:
            - type: integer
            - type: 'null'
          title: Position
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        link:
          anyOf:
            - type: string
            - type: 'null'
          title: Link
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        thumbnail:
          anyOf:
            - type: string
            - type: 'null'
          title: Thumbnail
      type: object
      title: LensResult
      description: A single visual search result.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````