---
title: "List Site Lists"
method: GET
path: "/site_lists"
tags: ["Site Lists"]
---

# List Site Lists

`GET /site_lists`

## Request

- Base URL: `https://api.mediamath.com/api/v3.0`
- URL: `https://api.mediamath.com/api/v3.0/site_lists`
- 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/site_lists/get.ts> (a function with typed inputs; its response is checked against the schema)

Get a list of site lists. Site lists can be sorted and queried by fields:
- `id`,
- `version`,
- `status`,
- `organization_id`,
- `name`,
- `restriction`,
- `filename`,
- `content_updated_on`,
- `sites_count`,
- `created_on`,
- `updated_on`.

## Query parameters

- `page_limit` integer
- `page_offset` integer
- `sort_by` string
- `q` string
- `full` string

## Response `200`

List site lists response

- union
  - SiteListCollection
    - `data` object[]
      - `id` integer
      - `entity_type` string
      - `name` string
    - `meta` ListMetadata
      - `status` string, required: The status of the response, indicating success or failure.
      - `count` integer, required: The number of items returned in the current response.
      - `total_count` integer: The total number of items available in the dataset.
      - `offset` integer: The offset from the start of the dataset, used for pagination.
      - `next_page` string: The URL to fetch the next page of results.
      - `prev_page` string: The URL to fetch the previous page of results.
  - SiteListCollectionFull
    - `data` SiteListFull[]
      - `id` integer
      - `version` integer
      - `status` boolean
      - `organization_id` integer
      - `name` string
      - `restriction` 'INCLUDE' | 'EXCLUDE'
      - `filename` string, nullable
      - `content_updated_on` string, date-time
      - `sites_count` integer, nullable
      - `sites_count_domain` integer, nullable
      - `sites_count_app` integer, nullable
      - `sites_count_primary_seller_id` integer, nullable
      - `created_on` string, date-time
      - `updated_on` string, date-time
    - `meta` ListMetadata
      - `status` string, required: The status of the response, indicating success or failure.
      - `count` integer, required: The number of items returned in the current response.
      - `total_count` integer: The total number of items available in the dataset.
      - `offset` integer: The offset from the start of the dataset, used for pagination.
      - `next_page` string: The URL to fetch the next page of results.
      - `prev_page` string: The URL to fetch the previous page of results.

## 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)
