Run your first location analysis
Send one image to the Oceanir API and receive structured coordinates, an address, and the visual evidence behind the result.
Provision an API key
Starter and Pro accounts, and any account that has bought credits, can create a personal key in Platform → API keys. Organization integrations need approved Enterprise access and organization-scoped credentials.
Request header
x-api-key: ****************************Execute the analysis
POST an image URL. The depth parameter controls how much analysis the model performs.
/api/v1/geolocatecurl -X POST https://oceanir.ai/api/v1/geolocate \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "image_url": "https://example.com/photo.jpg", "depth": 2 }'depth 125s limitSurface
depth 270s limitStandard
depth 380s limitForensic
If a host blocks server-side image fetching, send a base64-encoded JPEG as image_b64. The maximum image size is 20 MB. The limits above are how long a waiting request runs before it returns a 504, so for depth 3 send async: true and poll instead.
Read the response
Use the returned coordinates and evidence in your own investigation workflow.
{ "success": true, "analysis_id": "example-analysis-id", "location": { "latitude": 45.77, "longitude": 4.8459, "country": "France", "city": "Lyon", "neighborhood": "6th arrondissement", "address": "Lyon, France" }, "confidence": 0.79, "reasoning": "Street signage and architecture suggest Lyon. Confirm the area with independent evidence.", "visual_clues": [ { "label": "French street signage", "detail": "" }, { "label": "Stone facades", "detail": "" } ], "model": "orca-1.5", "depth": 2, "timing_ms": 9120}analysis_idstring | nullSaved analysis identifier; may be null when history is not retainedlocationobjectCoordinates, reverse-geocoded address, city, country, and ready-made map linksconfidencefloatCertainty from 0 to 1 for the LEADING candidate onlyreasoningstringVisual evidence used to reach the resultvisual_cluesobject[]Objects with label and detail. Detail may be empty. Returned at depth 2 and aboveforensic.candidatesarrayD3 only: competing candidates; optional and absent in this D2 exampleforensic.contradictionsarrayD3 only: evidence against the leading candidatecalibrationobjectPublish policy for the run, including when to abstain. Depth 3 only