# Download campaigns as JSON

**GET** `https://api.zoined.com/v2/download/campaigns.json?limit=1000&offset=0&campaign_id=123k&start_date=2017-01-01&end_date=2017-01-31`

Endpoint: GET /v2/download/campaigns.json
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer token

## Query parameters:

  - `limit` (number)
    How many entries to return

  - `offset` (number)
    Which offset to return data from

  - `campaign_id` (string)
    Returns data of Campaigns based on the given id

  - `start_date` (string)
    Return data starting from given date

  - `end_date` (string)
    Return data ending to given date

## Response 200:

  - `200` (unknown)
    Request has been processed successfully.
**Headers**
- `Content-Type: application/json`

## Response 200 fields (application/json):

  - `campaign_id` (string, required)
    Campaign ID
    Example: 6344

  - `campaign_name` (string, required)
    Campaign name
    Example: February 2016

  - `campaign_type` (string)
    Campaign type
    Example: Web

  - `start_date` (string)
    Campaign Start Date (yyyy-mm-dd)
    Example: 2016-02-01

  - `end_date` (string)
    Campaign End Date (yyyy-mm-dd)
    Example: 2016-02-29

  - `custom_field_1` (string)
    Custom Field 1
    Example: New

  - `custom_field_2` (string)
    Custom Field 2
    Example: New

  - `custom_field_3` (string)
    Custom Field 3
    Example: New

  - `custom_field_4` (string)
    Custom Field 4
    Example: New

  - `custom_field_5` (string)
    Custom Field 5
    Example: Old

## Response 400:

  - `400` (unknown)
    Invalid or malformed request.
**Headers**
- `Content-Type: application/json`

## Response 400 fields (application/json):

  - `status` (string, required)
    Status of the operation OK / Not OK
    Example: Not OK

  - `msg` (string, required)
    Message describing result of operation
    Example: Reason for error

## Response 401:

  - `401` (unknown)
    Missing or invalid authorization token in header
**Headers**
- `Content-Type: application/json`

## Response 401 fields (application/json):

  - `status` (string, required)
    Status of the operation OK / Not OK
    Example: Not OK

  - `msg` (string, required)
    Message describing result of operation
    Example: Unauthorized

## Response 500:

  - `500` (unknown)
    Internal error or exception
**Headers**
- `Content-Type: application/json`

## Response 500 fields (application/json):

  - `status` (string, required)
    Status of the operation OK / Not OK
    Example: Not OK

  - `msg` (string, required)
    Message describing result of operation
    Example: Reason for error

## Response 200 examples:

  - `response` (unknown)

## Response 400 examples:

  - `response` (unknown)

## Response 401 examples:

  - `response` (unknown)

## Response 500 examples:

  - `response` (unknown)

