---
title: "Posting slot times in a date range"
method: GET
path: "/posting-slots/occurrences"
tags: ["Posts"]
---

# Posting slot times in a date range

`GET /posting-slots/occurrences`

## Request

- Base URL: `https://www.sociahive.com/api/v1`
- URL: `https://www.sociahive.com/api/v1/posting-slots/occurrences`
- Auth: one of:
  - API key in header `X-API-Key`
  - OAuth 2 (authorization code, authorization URL `/api/oauth/authorize`, token URL `/api/oauth/token`, scopes: `posts:read`)

Every slot instance between `from` and `to` (local days in `timezone`, at most 42 days), with whether it is free.

## Query parameters

- `from` string, required
- `to` string, required
- `timezone` string
- `account_ids` string: Comma-separated connected-account ids.

## Response `200`

Slot times

- object
  - `success` true, required
  - `data` SlotOccurrence[], required
    - `slot_id` string, required: MongoDB ObjectId (24-character hex string)
    - `at` string, date-time, required
    - `account_ids` string[], required
    - `timezone` string, required
    - `free` boolean, required: No scheduled post targets one of the accounts within 5 minutes.

## Other responses

- `400`: Bad request — invalid parameters
- `401`: Authentication required — provide X-API-Key or Bearer token
- `403`: Insufficient scope for this operation
- `429`: Rate limit exceeded
- `500`: Internal server error

---

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