GeoSeer Photo Location Finder API Guide: Python, CLI & MCP
Article

GeoSeer Photo Location Finder API Guide: Python, CLI & MCP

Nov 24, 2026

You have a photo of a waterfront. There’s a striped ferry ramp, a row of narrow buildings, and half a place name on a sign. You could spend the afternoon following ferry routes. But what if your first clue came back as JSON?

The GeoSeer photo geolocation API turns photos and videos into a ranked list of possible locations, with coordinates and reasoning for each candidate. The November developer update added a Python SDK, a command-line tool, a local MCP server for AI assistants, and an OpenAPI specification. Here’s how to go from a photo on your laptop to your first map pin. GeoSeer API docs · GeoSeer on GitHub

Make your first photo geolocation API request

Open the GeoSeer dashboard, go to API Keys, and select New Key. Set the key in your terminal as GEOSEER_API_KEY. Keep it in your local or server environment and make API calls from there. The Free plan includes 10 total API calls in Fast mode. GeoSeer dashboard · API access and limits

Pick a photo.jpg whose location you already know. A shot of a public landmark makes a good first test because you can check the candidate on a map.

export GEOSEER_API_KEY="your_api_key"

curl --fail-with-body --max-time 420 https://geoseeer.com/api/v1/analyze \
  -H "X-API-Key: $GEOSEER_API_KEY" \
  -F "[email protected]" \
  -F "analysis_mode=fast"

Look for locations in the response. Each candidate includes latitude, longitude, address, confidence, and reasoning. Use the score to rank candidates, then use the reasoning to decide what to check on a map. If the explanation mentions a ferry terminal, see whether the ramp and the buildings line up with the pin. API response reference

When to use Fast, Agent, or Event mode

Mode What you send When to use it
Fast An image, related images, or a video Get a first estimate. This is the default and is available on every plan.
Agent An image, related images, or a video Investigate a harder scene using multiple steps and tools such as map or web search. Requires an eligible paid plan.
Event A text description in event_text Find where a described event took place. This mode takes text only and requires an eligible paid plan.

For Fast and Agent, send up to three images of the same place for one ranked result set, or send a single video. Use the multipart file field for one upload or repeat files for multiple images. For hosted media, use url or urls in JSON and point directly to the media. A multipart request has a 10 MiB total limit, including overhead. Each URL download has its own 10 MiB limit. An optional user_context can add up to 500 characters of clues, such as a date or a legible fragment of signage. Request formats and limits

Geolocate images in Python or from the command line

The geoseeer package includes the Python SDK and the CLI. It requires Python 3.11 or later and uses the same GEOSEER_API_KEY you set for cURL. GeoSeer 0.3.0 on PyPI

python -m pip install geoseeer==0.3.0

In Python, analyze() returns the parsed JSON as a dictionary. To print the candidate locations from your first photo, run this from the directory containing photo.jpg.

from geoseeer import GeoSeer

client = GeoSeer()
result = client.analyze(files="photo.jpg")

for candidate in result["locations"]:
    print(candidate["address"], candidate["latitude"], candidate["longitude"])

On an eligible paid plan, you can give Agent mode two angles of the same place or run an Event search with just a description. For a hosted photo, use urls= in place of files=. The SDK calls the optional media hint context. Python SDK guide

# After creating the client above
agent_result = client.analyze(files=["waterfront.jpg", "ferry-ramp.jpg"], mode="agent")
event_result = client.analyze(
    event_text="Finish line of the women's marathon at the 2024 Summer Olympics in Paris."
)

For a quick check in your terminal, call the CLI. It prints JSON to standard output, so you can save the result and come back to the clues later. CLI guide

geoseeer analyze --file photo.jpg > result.json

Connect GeoSeer to an AI assistant with MCP

Model Context Protocol (MCP) lets a compatible AI app call GeoSeer as a tool. Install the MCP extra in the Python environment your app will use. MCP setup guide

python -m pip install 'geoseeer[mcp]==0.3.0'
command -v geoseeer

In your app’s MCP settings, add a local server using the stdio transport. Use the full path printed by command -v geoseeer as the command and ["mcp"] as its arguments. Set GEOSEER_API_KEY in the app’s server environment or secret settings.

The tool is called geolocate_media. It accepts one local image or video as file, or one direct media link as url, plus optional context of up to 500 characters. Use an absolute path for a local file the server can read. The local server sends the media or URL and any context to GeoSeer, and a successful analysis uses your API allowance. MCP input and result reference

Try asking your assistant, “Use GeoSeer on /absolute/path/to/photo.jpg. Give me the top candidate and one visible clue I can check on a map.” MCP calls run in Fast mode. For Agent mode, which is GeoSeer’s deeper analysis, set mode="agent" in the SDK, --mode agent in the CLI, or analysis_mode to agent in the REST request. GeoSeer GitHub quick start

Use OpenAPI to build an integration and SSE to stream progress

If you’re writing your own client or asking a coding agent to build one, give it the OpenAPI JSON for the endpoints and request schemas. The GitHub repository also includes runnable cURL, Python, and Node.js examples. GeoSeer OpenAPI specification · GitHub API examples

If your app needs to show progress while a search runs, set stream to true on the same authenticated POST for Server-Sent Events (SSE), or add --stream to the CLI command. The SSE event named completed carries the final result. In the decoded JSON, its type is complete. Handle error and cancelled as separate outcomes. If your connection drops, the original analysis may still be running, and sending the request again can use another credit. Streaming reference

Common questions about the GeoSeer API

Can I find where a video was taken?

Yes. Send one supported video, such as an MP4 or MOV, as a file upload or direct media URL. GeoSeer returns a ranked list of location candidates for the video. Supported media formats

Can I locate several unrelated photos in one API call?

Each call returns one set of candidates. Send up to three photos together when they show the same place. For a folder full of different places, send a separate request for each location question. API request limits

What if my photo has no GPS metadata?

GeoSeer can use visible clues such as signs, road markings, and terrain to suggest locations. Try a photo you know well and see which clue shows up in the reasoning. How GeoSeer analyzes images

Start with one photo, open the top candidate on a map, and see which detail you recognize first. You might even find the other half of that place name.

Get an API key and try your first photo.

Try GeoSeer Today

Experience AI-powered geolocation for yourself