---
title: "GET /sensor-events"
method: GET
path: "/sensor-events"
tags: ["SensorEvents"]
---

# GET /sensor-events

`GET /sensor-events`

Returns a list of sensor events data. Time span for query is limited to 90 days at a time.
Returns last 90 days events when startDateTime and endDateTime are not provided.

## Query parameters

- `sensorId` string, required
- `sensorPartnerId` string, required
- `startDateTime` string, date-time
- `endDateTime` string, date-time
- `excludeDuplicateEvents` boolean
- `api-version` string, required

## Response `200`

Success

- SensorEventListResponse — Paged response contains list of requested objects and a URL link to get the next set of results.
  - `value` SensorEvent[], required — List of requested objects.
    - `sensorId` string — Id of the sensor.
    - `sensorPartnerId` string — Id of the sensor partner.
    - `partyId` string — Id of the associated party.
    - `associatedResource` GeoResource — Schema for storing resource type and resource id.
      - `type` 'Field' | 'SeasonalField' | 'Zone' | 'Prescription' | 'PlantTissueAnalysis' | 'PlantingData' | 'ApplicationData' | 'HarvestData' | 'TillageData' — Resource Type.
      - `id` string — Resource Id.
    - `eventDateTime` string, date-time — DateTime of sensor event observation.
    - `ingestionDateTime` string, date-time — DateTime of sensor event ingestion to data store.
    - `measures` object — Sensor measures.
  - `skipToken` string — Token used in retrieving the next page. If null, there are no additional pages.
  - `nextLink` string — Continuation link (absolute URI) to the next page of results in the list.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/azure/apis/agrifood-agfoodplatform.md) · [All operations](https://skmtc.net/azure/apis/agrifood-agfoodplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/agrifood-agfoodplatform/revisions/33cf1de6e0c4/schema)
