---
title: "Line movement"
method: POST
path: "/v1/get_line_movement"
tags: ["Time-series"]
---

# Line movement

`POST /v1/get_line_movement`

## Request

- Base URL: `https://mcp.dunkapi.com`
- URL: `https://mcp.dunkapi.com/v1/get_line_movement`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Use to see how a game's line moved before tip-off: our pre-game snapshots of each sportsbook's moneyline, spread and total (captured once a day, and every hour for games in the next four days). Costs 10 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.

## Request body

- object
  - `game_id` string, required: Game id.
  - `provider` string: One sportsbook, e.g. DraftKings.
  - `all_snapshots` boolean: Every hourly capture. By default a capture identical to the one before it is left out (the latest is always kept), which keeps every move and its time.
  - `league` 'nba' | 'wnba' | 'ncaam' | 'ncaaw': League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw.

## Response `200`

The result, wrapped in data.

- object
  - `data` object, required
    - `game` object, required
    - `movement` object, required
    - `snapshots` number, required
    - `note` string

## Other responses

- `400`: Invalid arguments.
- `401`: Missing or invalid API key.
- `402`: Not enough credits.
- `429`: Rate limited.

---

[API](https://skmtc.dev/dunkapi/apis/dunkapi-api.md) · [All operations](https://skmtc.dev/dunkapi/apis/dunkapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dunkapi/apis/dunkapi-api/revisions/9bf7a0add0eb?raw)
