---
title: "Fetch All Deals"
method: GET
path: "/v2/publishers/deals"
tags: ["Deals"]
---

# Fetch All Deals

`GET /v2/publishers/deals`

## Request

- Base URL: `https://api.trackier.com`
- URL: `https://api.trackier.com/v2/publishers/deals`
- Auth: API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/trackier/apis/trackier-publisher-api-docs/docs/v2/publishers/deals/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns all deals for all campaigns

## Query parameters

- `pageToken` string

## Response `200`

Successful operation

- PublisherDealData
  - `deals` object[]
    - `id` string
    - `name` string
    - `description` string
    - `status` 'active'
    - `campaign_name` string
    - `campaign_id` number
    - `created` string, date-time
  - `pageToken` string: Token to access next page

## Other responses

- `400`: Invalid API Key

## Changes

- **2024-03-19** (1.0.0) `c83de4fe6f7d`: 1 info
  - added the optional property `deals/items/id` to the response with the `200` status

[Operation history](https://skmtc.dev/trackier/apis/trackier-publisher-api-docs/changes/v2/publishers/deals/get.md)

---

[API](https://skmtc.dev/trackier/apis/trackier-publisher-api-docs.md) - [All operations](https://skmtc.dev/trackier/apis/trackier-publisher-api-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/trackier/apis/trackier-publisher-api-docs/revisions/662d56d3e6f1?raw)
