PhotoPrism Places API

The Places API from PhotoPrism — 2 operation(s) for places.

Business capability
Geocoding AE-120.10

Operations 2

GET /api/v1/places/reverse returns location details for the specified coordinates #
GET /api/v1/places/search returns locations that match the specified search query #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/photoprism:photoprism-places-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

photoprism-places-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact: {}
  description: 'API request bodies and responses are usually JSON-encoded, except for binary data and some of the OAuth2 endpoints. Note that the `Content-Type` header must be set to `application/json` for this, as the request may otherwise fail with error 400.

    When clients have a valid access token, e.g. obtained through the `POST /api/v1/session` or `POST /api/v1/oauth/token` endpoint, they can use a standard Bearer Authorization header to authenticate their requests. Submitting the access token with a custom `X-Auth-Token` header is supported as well.'
  title: PhotoPrism Places API
  version: v1
servers:
- url: https://demo.photoprism.app
security:
- BearerAuth: []
tags:
- name: Places
paths:
  /api/v1/places/reverse:
    get:
      operationId: GetPlacesReverse
      parameters:
      - description: Latitude
        in: query
        name: lat
        required: true
        schema:
          type: string
      - description: Longitude
        in: query
        name: lng
        required: true
        schema:
          type: string
      - description: Locale
        in: query
        name: locale
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/places.Location'
        '400':
          description: Missing latitude or longitude
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/gin.H'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/i18n.Response'
        '500':
          description: Geocoding service error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/gin.H'
      summary: returns location details for the specified coordinates
      tags:
      - Places
  /api/v1/places/search:
    get:
      operationId: GetPlacesSearch
      parameters:
      - description: Search query
        in: query
        name: q
        required: true
        schema:
          type: string
      - description: 'Locale for results (default: en)'
        in: query
        name: locale
        schema:
          type: string
      - description: 'Maximum number of results (default: 10, max: 50)'
        in: query
        name: count
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/places.SearchResult'
                type: array
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/i18n.Response'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/i18n.Response'
        '500':
          description: Search service error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/gin.H'
      summary: returns locations that match the specified search query
      tags:
      - Places
components:
  schemas:
    places.Location:
      properties:
        category:
          type: string
        country:
          type: string
        id:
          type: string
        lat:
          type: number
        licence:
          type: string
        lng:
          type: number
        locale:
          type: string
        name:
          type: string
        place:
          $ref: '#/components/schemas/places.Place'
        postcode:
          type: string
        street:
          type: string
        timezone:
          type: string
      type: object
    i18n.Response:
      properties:
        code:
          type: integer
        details:
          type: string
        error:
          type: string
        message:
          type: string
        messageId:
          type: string
        messageParams:
          items: {}
          type: array
      type: object
    places.SearchResult:
      properties:
        bbox:
          items:
            type: number
          type: array
        city:
          type: string
        country:
          type: string
        id:
          type: string
        importance:
          type: number
        lat:
          type: number
        licence:
          type: string
        lng:
          type: number
        name:
          type: string
      type: object
    places.Place:
      properties:
        city:
          type: string
        country:
          type: string
        district:
          type: string
        id:
          type: string
        keywords:
          type: string
        label:
          type: string
        state:
          type: string
      type: object
    gin.H:
      additionalProperties: {}
      type: object
  securitySchemes:
    BearerAuth:
      in: header
      name: Authorization
      type: apiKey
externalDocs:
  description: Learn more ›
  url: https://docs.photoprism.app/developer-guide/api/