# TinEye API reference

> The TinEye API searches the TinEye reverse image index. A search returns the number of matches, a direct URL to each matching image, the pages where each match was found (backlinks), whether the source is a stock or collection site, a match score, and a link to a compare-images overlay. It finds…

Source: https://osinttools.io/apis/tineye/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/tineye/

- Base URL: https://api.tineye.com/rest
- Authentication: API key in the `X-API-KEY` header. Get a key: https://services.tineye.com/TinEyeAPI Key is on the Getting started page of a TinEye API account.
- Pricing: Credits
- Rate limits: Not stated as a figure in the OpenAPI description; searches are drawn from purchased bundles
- Vendor docs: https://services.tineye.com/developers/tineyeapi/overview
- OpenAPI spec: https://api.tineye.com/rest/docs/openapi.json
- Python SDK: pytineye, https://github.com/TinEye/pytineye
- Node.js SDK: tineye-api, https://www.npmjs.com/package/tineye-api
- PHP SDK: tineye/tineye-api, https://packagist.org/packages/tineye/tineye-api

## Overview

The TinEye API searches the TinEye reverse image index. A search returns the number of matches, a direct URL to each matching image, the pages where each match was found (backlinks), whether the source is a stock or collection site, a match score, and a link to a compare-images overlay. It finds versions of an image even if they have been modified.

Calls go to `https://api.tineye.com/rest` with the key in the `X-API-KEY` header, and responses are JSON. Use the API from server-side code so the key is not exposed. Access is through search bundles bought on a TinEye API account; the `/remaining_searches/` method lists the searches left. The docs describe a sandbox with its own key that returns fake results for a fixed test image and does not use searches.

This reference covers the search by image URL and the account methods. Searching an uploaded image (`POST /search/`) is a multipart form upload and is not described here; see the official docs. The API description was read from the published OpenAPI document linked from the developer docs.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | Bad request, usually an image that cannot be used |
| 429 | Too many requests |

## Search

### Reverse image search against the TinEye index, with the image given as a URL.

`GET /search/`

- Takes: Image, URL
- Footprint: active (contacts the target)
- Cost: 1 search from a bundle

TinEye fetches the image from the URL you give, so it must be publicly accessible. Results can be filtered by domain and by stock or collection tags, sorted, and paged.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `image_url` | query | string | yes | Publicly accessible URL of the image to search with Example: https://example.com/photo.jpg |
| `domain` | query | string | no | Only show results from this complete domain name (at least 5 characters) Example: example.org |
| `sort` | query | string | no | Sort by score, file size or the date the image was added to the index Example: score One of: score, size, crawl_date |
| `order` | query | string | no | Ascending or descending order Example: desc One of: asc, desc |
| `offset` | query | integer | no | Offset from the beginning of the results Example: 0 |
| `limit` | query | integer | no | Maximum number of results; 0 removes the limit Example: 100 |
| `backlink_limit` | query | integer | no | Maximum backlinks per match; 0 removes the limit Example: 100 |

Response fields:

- `code` (integer): HTTP status code
- `messages` (array): Warning or error messages
- `stats.query_time` (number): Query time in milliseconds
- `stats.total_results` (number): Number of results
- `stats.total_filtered_results` (number): Results after domain and tag filters
- `stats.total_backlinks` (number): Total backlinks returned
- `stats.total_stock` (number): Matches on domains tagged as stock
- `stats.total_collection` (number): Matches on domains tagged as collection
- `results.matches[].image_url` (string): Link to the result image
- `results.matches[].backlinks` (array): Links to the original website and image URL
- `results.matches[].score` (number): Match score
- `results.matches[].query_match_percent` (number): Percentage of the query image matched
- `results.matches[].overlay` (string): URL of the compare-images overlay
- `results.matches[].domain` (string): Domain the result was found on
- `results.matches[].width` (integer): Image width in pixels
- `results.matches[].height` (integer): Image height in pixels
- `results.matches[].tags` (array): Stock or collection tags

```bash
curl 'https://api.tineye.com/rest/search/?image_url=https%3A%2F%2Fexample.com%2Fphoto.jpg' \
  -H 'X-API-KEY: YOUR_API_KEY'
```

Example response (200):

```json
{
  "code": 200,
  "messages": [],
  "stats": {
    "query_time": 120,
    "total_results": 1,
    "total_filtered_results": 1,
    "total_backlinks": 1
  },
  "results": {
    "matches": [
      {
        "image_url": "https://example.org/images/photo.jpg",
        "backlinks": [],
        "score": 95.5,
        "query_match_percent": 98,
        "domain": "example.org",
        "width": 800,
        "height": 600,
        "tags": []
      }
    ]
  }
}
```

## Account

### List the searches left in your non-expired bundles.

`GET /remaining_searches/`

- Footprint: passive (the target is not contacted)

Returns each bundle's remaining searches and dates, and a total.

Response fields:

- `results.bundles[].remaining_searches` (integer): Searches left in the bundle
- `results.bundles[].start_date` (string): Start date of the bundle
- `results.bundles[].end_date` (string): Date the bundle deactivates
- `results.total_remaining_searches` (integer): Total across non-expired bundles

```bash
curl 'https://api.tineye.com/rest/remaining_searches/' \
  -H 'X-API-KEY: YOUR_API_KEY'
```

Example response (200):

```json
{
  "code": 200,
  "messages": [],
  "results": {
    "bundles": [
      {
        "remaining_searches": 500,
        "start_date": "2026-01-01",
        "end_date": "2027-01-01"
      }
    ],
    "total_remaining_searches": 500
  }
}
```

### Get the number of images indexed by TinEye.

`GET /image_count/`

- Footprint: passive (the target is not contacted)

Returns a single count under results.

Response fields:

- `code` (integer): HTTP status code
- `results` (integer): Number of images indexed by TinEye

```bash
curl 'https://api.tineye.com/rest/image_count/' \
  -H 'X-API-KEY: YOUR_API_KEY'
```

Example response (200):

```json
{
  "code": 200,
  "messages": [],
  "results": 1000000
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
