# Reverse Image Search in Python via API

**Use case:** 

Three lines of Python to reverse search an image: matches back as JSON with title, source, url and image dimensions. No browser automation to maintain.

## Input

```json
{
  "image_url": "https://i.imgur.com/HBrB8p0.png",
  "search_type": "visual_matches",
  "max_results": 20
}
```

## Output

```json
{
  "position": {
    "label": "Position",
    "format": "integer"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "source": {
    "label": "Source",
    "format": "string"
  },
  "url": {
    "label": "Page URL",
    "format": "string"
  },
  "thumbnail": {
    "label": "Thumbnail",
    "format": "string"
  },
  "imageWidth": {
    "label": "Image width",
    "format": "integer"
  },
  "imageHeight": {
    "label": "Image height",
    "format": "integer"
  }
}
```

## About this Actor

This example demonstrates how to use [Google Lens API | Reverse Image and Visual Product Search](https://apify.com/johnvc/google-lens-api) with a specific input configuration. Visit the [Actor detail page](https://apify.com/johnvc/google-lens-api) to learn more, explore other use cases, and run it yourself.