---
title: "Get Forecast Query"
method: GET
path: "/strategies/{strategy_id}/forecast_query"
tags: ["Strategies"]
---

# Get Forecast Query

`GET /strategies/{strategy_id}/forecast_query`

## Request

- Base URL: `https://api.mediamath.com/api/v3.0`
- URL: `https://api.mediamath.com/api/v3.0/strategies/{strategy_id}/forecast_query`
- Auth: OAuth 2
  - Authorization code: `https://auth.mediamath.com/authorize`
  - Token URL: `https://auth.mediamath.com/oauth/token` scopes: `offline_access`, `manage:services`
- TypeScript: <https://skmtc.dev/mediamath/apis/campaigns-api/docs/strategies/:strategy_id/forecast_query/get.ts> (a function with typed inputs; its response is checked against the schema)

Get forecast query

## Path parameters

- `strategy_id` integer, required

## Response `200`

Strategy forecast query response

- object
  - `data` StrategyForecastQuery
    - `expression` string
    - `freqCap` integer, nullable
    - `freqDur` 'hour' | 'day' | 'week' | 'month' | 'campaign' | 'not-applicable', nullable
    - `maxSpend` number, float, nullable
    - `maxCPM` number, float, nullable
  - `meta` SingleMetadata
    - `status` string, required

## Other responses

- `400`: Error response
- `401`: Error response
- `403`: Error response
- `404`: Error response

---

[API](https://skmtc.dev/mediamath/apis/campaigns-api.md) - [All operations](https://skmtc.dev/mediamath/apis/campaigns-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mediamath/apis/campaigns-api/revisions/408743891def?raw)
