---
title: "Gets the user's location at the specified time. If no sample is available for the exact time, searches for the closest sample up to `window_size` seconds back. If `include_after` is true, then also searches `window_size` seconds forward."
method: GET
path: "/data/v0/{fulcra_userid}/location_at_time"
tags: ["data", "location"]
---

# Gets the user's location at the specified time. If no sample is available for the exact time, searches for the closest sample up to \`window_size\` seconds back. If \`include_after\` is true, then also searches \`window_size\` seconds forward.

`GET /data/v0/{fulcra_userid}/location_at_time`

## Request

- Base URL: `https://api.fulcradynamics.com`
- URL: `https://api.fulcradynamics.com/data/v0/{fulcra_userid}/location_at_time`
- Auth: HTTP bearer

## Path parameters

- `fulcra_userid` string, uuid, required

## Query parameters

- `time` string, date-time, required: The timestamp in ISO 8601 format to request location for
- `window_size` integer: The amount of time to look back (and forward, if the include_after parameter is true) for a sample.
- `include_after` boolean: When true, a sample that occurs after the requested time may be returned if it is the closest one.
- `reverse_geocode` boolean: When true, Fulcra will attempt to reverse geocode the location and include the location details in the results.

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fulcradynamics/apis/fulcra-life-api.md) · [All operations](https://skmtc.dev/fulcradynamics/apis/fulcra-life-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fulcradynamics/apis/fulcra-life-api/revisions/d85136fc304a?raw)
