Example queries (EXIF data)

Here are some example search queries for exchangeable image file format (EXIF) data.

Match an EXIF field

Find results with a specific EXIF field.

Basic authentication and bearer token authentication are supported. See API authentication.

Example:

Search for all images with an EXIF metadata field:

{
  "query": {
    "match": {
      "metadata.Exif IFD0:Host Computer": "iPhone 12 mini"
    }
  }
}

Filter by GPS altitude

Apply a range filter to a query using GPS altitude.

Basic authentication and bearer token authentication are supported. See API authentication.

Example:

Search for all images that have a GPS altitude of 2000 meters:

{
  "query": {
    "bool": {
      "must": {
        "match_all": {}
      },
      "filter": {
        "range": {
          "gps.altitude": {
            "gt": 2000
          }
        }
      }
    }
  }
}

Filter by GPS distance

Apply a distance filter to a query based on a GPS location.

Basic authentication and bearer token authentication are supported. See API authentication.

Example:

Search for all images within a two mile radius of the GPS location (N 7°57.300 E 46°35.400):

{
  "query": {
    "bool": {
      "must": {
        "match_all": {}
      },
      "filter": {
        "geo_distance": {
          "distance": "2mi",
          "gps.location": [
            7.955,
            46.59
          ]
        }
      }
    }
  }
}