# Picarta API reference

> The Picarta API predicts where a photo was taken from its content and, when present, its embedded metadata. You send an image (a base64-encoded file or an image URL) and get back the city, province, country, GPS coordinates and a confidence score for each prediction. If the image carries GPS EXIF…

Source: https://osinttools.io/apis/picarta/ (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/picarta/

- Base URL: https://api.picarta.ai/v1
- Authentication: No key needed. Get a key: https://picarta.ai/ No header: the Enterprise API token is sent in the JSON body as TOKEN.
- Rate limits: 60 requests per minute
- Vendor docs: https://docs.picarta.ai/
- OpenAPI spec: https://docs.picarta.ai/openapi.yaml
- Python SDK: picarta, https://pypi.org/project/picarta/

## Overview

The Picarta API predicts where a photo was taken from its content and, when present, its embedded metadata. You send an image (a base64-encoded file or an image URL) and get back the city, province, country, GPS coordinates and a confidence score for each prediction. If the image carries GPS EXIF data, that is returned directly.

Calls go to `https://api.picarta.ai/v1`. The API token is sent as a `TOKEN` field in the JSON body, not as a header. The docs state the API is available to Enterprise accounts only: access is requested by email to info@picarta.ai, and the token is generated on the account page after approval. The documented limit is 60 requests per minute.

Searches can be limited by country, region (admin1), county (admin2) or a centre point with a radius of up to 25 km. When a filter finds no location, the response has an empty `topk_predictions_dict` and a `message`, and no credits are deducted.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | Invalid token, no API access, missing or unreadable image, or image too large |
| 404 | Country not found (admin lists) |
| 429 | Rate limit exceeded (60 requests per minute) |
| 500 | Temporary server error; retry later |

## Geolocation

### Predict where an image was taken, from its content and EXIF data.

`POST /geolocalize`

- Takes: Image, URL
- Footprint: active (contacts the target)
- Plan: Enterprise

If the image has GPS EXIF data it is returned directly; otherwise the AI predicts the location. Predictions are keyed by rank in topk_predictions_dict, and the top one is repeated in city, province, ai_country, ai_lat, ai_lon and ai_confidence.

Response fields:

- `topk_predictions_dict` (object): Predictions keyed by rank ("1" is the best)
- `topk_predictions_dict.1.address.city` (string): Predicted city
- `topk_predictions_dict.1.address.province` (string): Predicted province
- `topk_predictions_dict.1.address.country` (string): Predicted country
- `topk_predictions_dict.1.confidence` (number): Confidence of the prediction
- `topk_predictions_dict.1.gps[]` (number): Latitude, then longitude
- `ai_country` (string): Top-1 predicted country
- `ai_lat` (number): Top-1 predicted latitude
- `ai_lon` (number): Top-1 predicted longitude
- `ai_confidence` (number): Top-1 confidence
- `exif_lat` (number): Latitude from EXIF, if present
- `exif_lon` (number): Longitude from EXIF, if present
- `camera_maker` (string): Camera maker from EXIF
- `camera_model` (string): Camera model from EXIF
- `timestamp` (string): Capture time from EXIF
- `message` (string): Present when no location is found in the search area

```bash
curl -X POST 'https://api.picarta.ai/v1/geolocalize' \
  -H 'Content-Type: application/json' \
  -d '{"TOKEN":"YOUR_API_KEY","IMAGE":"https://example.com/photo.jpg","TOP_K":3,"COUNTRY_CODE":"IT","ADMIN1":"Toscana"}'
```

Example response (200):

```json
{
  "topk_predictions_dict": {
    "1": {
      "address": {
        "city": "Exampleville",
        "country": "Italy",
        "province": "Example Province"
      },
      "confidence": 0.94,
      "gps": [
        43.1,
        11
      ]
    }
  },
  "ai_confidence": 0.94,
  "ai_country": "Italy",
  "ai_lat": 43.1,
  "ai_lon": 11,
  "city": "Exampleville",
  "province": "Example Province",
  "camera_maker": "Example Camera Co",
  "camera_model": "EX-1",
  "timestamp": "2020:01:01 12:00:00"
}
```

## Supported regions

### List the admin1 regions supported for a country.

`GET /admin1/{country_code}`

- Footprint: passive (the target is not contacted)

Returns an empty list with a message when the country supports country-level search only.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `country_code` | path | string | yes | 2-letter country code Example: IT |

Response fields:

- `country_code` (string): The country code requested
- `admin1_regions[]` (string): Supported region names
- `message` (string): Present when only country-level search is supported

```bash
curl 'https://api.picarta.ai/v1/admin1/IT'
```

Example response (200):

```json
{
  "country_code": "IT",
  "admin1_regions": [
    "Lazio",
    "Toscana"
  ]
}
```

### List the admin2 regions supported for a country and admin1 region.

`GET /admin2/{country_code}/{admin1}`

- Footprint: passive (the target is not contacted)

Returns an empty list with a message if not supported.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `country_code` | path | string | yes | 2-letter country code Example: US |
| `admin1` | path | string | yes | Admin1 region name Example: Massachusetts |

Response fields:

- `country_code` (string): The country code requested
- `admin1` (string): The admin1 region requested
- `admin2_regions[]` (string): Supported county or district names
- `message` (string): Present when not supported

```bash
curl 'https://api.picarta.ai/v1/admin2/US/Massachusetts'
```

Example response (200):

```json
{
  "country_code": "US",
  "admin1": "Massachusetts",
  "admin2_regions": [
    "Essex",
    "Suffolk"
  ]
}
```

---

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/
