# Photo & Video Geolocation - Where Was It Taken? Privacy Check (`pomlabs/photo-video-geolocation`) Actor

Find where a photo or video was taken, from a file or an Instagram, TikTok, YouTube, X or Facebook link: best-guess place, alternatives with radius, confidence, clues, GPS in the file, spoken language and electric hum. Plus a privacy report and a check of a claimed place.

- **URL**: https://apify.com/pomlabs/photo-video-geolocation.md
- **Developed by:** [Pom Labs](https://apify.com/pomlabs) (community)
- **Categories:** AI, Social media, Videos
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$22.50 / 1,000 photo or video analyzeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Photo & Video Geolocation - Where Was It Taken? Privacy Check

Find **where a photo or a video was taken**, from a file or straight from a **social media link** (Instagram, TikTok, YouTube, X, Facebook, Threads, Reddit, Kwai and 1,000+ sites). You get a best-guess place with coordinates and radius, the alternatives, a confidence level, the clues that point there, the **GPS hidden in the file**, the **spoken language** and the **electric hum** of the audio (50 or 60 Hz grid). Each result also comes with a **privacy report** (what in the image or file gives the place away, and how to fix it) and, if you want, a **check of a claimed place** ("was this really filmed in Lisbon?").

### Why this one

- **Links, not only files:** paste a Reel, a TikTok, a Short or a tweet. Videos are read on several frames, and their sound is checked too.
- **Two AI engines, and you see when they agree:** both look at the same frames. When they land within 25 km of each other and both are sure (radius up to 100 km), the result is marked `high`; otherwise both places come as candidates and the result is `medium` or `low`. No single overconfident pin.
- **What the file says, before any guess:** GPS coordinates, capture time and phone model from the photo's EXIF or the video's metadata. A GPS in the file wins over any guess.
- **Sound clues for videos:** the language spoken in the first minute, and the mains hum (50 Hz in Europe, Africa, most of Asia; 60 Hz in the Americas, Brazil included), which splits the world in two.
- **Privacy report:** every leak found (GPS, readable signs, house numbers, plates, landmarks, capture time, device), rated and with the fix. Made for creators and anyone who wants to check a photo before posting it.
- **Claim check:** give the place someone says it was taken; each result says `consistent`, `inconsistent` or `uncertain`, with the distance.
- **Nothing kept:** the photo or video is processed in memory and a temporary folder, and deleted at the end of each item.

### Accuracy (measured, so you know what to expect)

Tested on 25 street-level photos that are **not on any web page** (fresh Street View frames from 25 ordinary cities, 10 in Brazil and 15 elsewhere), so the engines could not have memorized them:

| | Within 1 km | Within 25 km | Within 200 km |
|---|---|---|---|
| Best of the two engines, all 25 | 6 | 15 | 20 |
| Cities outside Brazil (15) | 6 | 13 | 14 |
| Inland Brazil (10) | 0 | 2 | 6 |
| Results marked `high` (9) | 3 | 8 | 9 |

In plain words: on a street photo of a city, it usually gets the **city**; in small inland towns, it usually gets the **region**. Famous places and photos with readable signs do much better. Indoor shots, close-ups and selfies carry few clues: the result then says so (`status: "no_location"`) instead of inventing a place.

### Input

| Field | What it does |
|---|---|
| `urls` | Links to photos, videos or public posts. Up to 100 per run |
| `upload` | Or upload one photo or video |
| `claimedPlace` | Optional place to verify, like `Lisbon, Portugal` |
| `transcribeSpeech` | Detect the spoken language of videos (default on, included) |
| `videoFrames` | Frames per video, 1 to 3 (default 3) |

### Output

```json
{
  "type": "analysis",
  "input": "https://www.tiktok.com/@scout2015/video/6718335390845095173",
  "mediaType": "video",
  "platform": "tiktok",
  "author": "scout2015",
  "status": "ok",
  "confidence": "medium",
  "bestGuess": {"lat": 24.7136, "lon": -81.0876, "city": "Marathon", "country": "United States", "radiusKm": 350.0, "engine": "A"},
  "candidates": [
    {"lat": 24.7136, "lon": -81.0876, "city": "Marathon", "country": "United States", "radiusKm": 350.0, "engine": "A"},
    {"lat": 24.7, "lon": -81.1, "city": "Florida Keys (approx., e.g. Marathon/Key Colony Beach area)", "country": "United States", "radiusKm": 150.0, "engine": "B"}
  ],
  "enginesApartKm": 2.0,
  "clues": ["Thatched tiki-hut (chickee-style) roof beside a pool, typical of Florida and Caribbean resorts", "Pastel stucco, elevated beach-style house in the background, typical of the Florida Keys", "Low confidence: the scene could also fit the Bahamas or the Gulf Coast of Florida"],
  "visibleLeaks": ["Pastel buildings in the background of frame 1 could help identify the neighborhood if matched in street imagery"],
  "fileGps": null,
  "durationSeconds": 10.5,
  "privacy": {"risk": "medium", "items": [{"leak": "The scene suggests a region", "detail": "United States", "risk": "medium", "fix": "Avoid distinctive streets, signs and landmarks in the frame"}]},
  "seconds": 11.5
}
```

With `claimedPlace`, each result also has `claim`: `{"claimedPlace": "Lisbon, Portugal", "distanceKm": 0.4, "verdict": "consistent", "enginesSay": [...]}`.

Links that cannot be opened (private, deleted, not a photo or a video) come as a row with `type: "error"` and the reason, and are **not charged**.

### Use cases

- **Creators and influencers:** check a photo or a Reel before posting: does it reveal your home, your street or your kid's school?
- **OSINT, journalism and fact-checking:** where was this viral video filmed? Is the place in the caption true?
- **Trust & safety and marketplaces:** do the listing photos match the city the seller claims?
- **Travel and real estate content:** tag old photos and videos with a place.

### Pricing

- **$0.0225 per photo or video analyzed** (both engines, sound clues and the privacy report included). No charge per run, and no charge for links that fail.

### Notes

- The engines are AI models: treat the result as a strong lead with a radius, not as proof. A GPS in the file is the exact place where the camera was.
- Most social networks strip GPS from uploaded photos and videos; the original file from the phone usually still has it.
- One video is read in about 10 to 20 seconds; runs process 4 items at a time.

# Actor input Schema

## `urls` (type: `array`):

Links to photos (JPG, PNG, WebP, HEIC), videos (MP4...) or public posts on Instagram, TikTok, YouTube, X, Facebook, Threads, Reddit, Kwai and 1,000+ sites. Up to 100 per run.

## `upload` (type: `string`):

Upload one photo or video from your computer. It is analyzed like a link and not kept by this Actor.

## `claimedPlace` (type: `string`):

Optional. Where the uploader says it was taken (e.g. 'Lisbon, Portugal'). Each result says if the image is consistent with it, with the distance.

## `transcribeSpeech` (type: `boolean`):

Listens to the first minute of a video to tell the language spoken (a strong country clue). Included in the price.

## `videoFrames` (type: `integer`):

How many frames of each video the engines look at (1 to 3). More frames, more clues.

## Actor input object example

```json
{
  "urls": [
    "https://upload.wikimedia.org/wikipedia/commons/0/0f/0123_RUA_AUGUSTA_Lisbon.jpg"
  ],
  "transcribeSpeech": true,
  "videoFrames": 3
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://upload.wikimedia.org/wikipedia/commons/0/0f/0123_RUA_AUGUSTA_Lisbon.jpg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pomlabs/photo-video-geolocation").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": ["https://upload.wikimedia.org/wikipedia/commons/0/0f/0123_RUA_AUGUSTA_Lisbon.jpg"] }

# Run the Actor and wait for it to finish
run = client.actor("pomlabs/photo-video-geolocation").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://upload.wikimedia.org/wikipedia/commons/0/0f/0123_RUA_AUGUSTA_Lisbon.jpg"
  ]
}' |
apify call pomlabs/photo-video-geolocation --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pomlabs/photo-video-geolocation"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Dn9gI01tw1oQ0GXb3/builds/Md7yuQhJcU6FxfmUQ/openapi.json
