Integrate MotionStack in minutes.

MotionStack provides simple endpoints for processing GPS, accelerometer, and fused motion data.

Quick Start

Send motion data to MotionStack using a simple JSON request.

POST https://api.motionstack.net/v1/motion/analyze

Headers:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Authentication

All MotionStack API requests require an API key.

Authorization: Bearer YOUR_API_KEY

API keys can be generated from your dashboard once you create an account.

GPS Endpoint

Send location data to analyze movement and position.

POST /v1/gps

{
  "deviceId": "veh_1024",
  "latitude": -25.7479,
  "longitude": 28.2293,
  "speed": 61.4
}

Accelerometer Endpoint

Process raw accelerometer motion signals.

POST /v1/accelerometer

{
  "deviceId": "veh_1024",
  "x": 0.12,
  "y": -0.08,
  "z": 9.77
}

Fused Motion Endpoint

Combine GPS and accelerometer signals for richer motion analysis.

POST /v1/motion

{
  "deviceId": "veh_1024",
  "latitude": -25.7479,
  "longitude": 28.2293,
  "speed": 61.4,
  "accelerometer": {
    "x": 0.12,
    "y": -0.08,
    "z": 9.77
  }
}