Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: ZeroGEX News API
description: 'Real-time options analytics API.
**Two versions are served.**
* **v2 (recommended)** — `/api/v2/*`. Every endpoint returns `{"data": ..., "freshness": {...}}`, where the `freshness` block reports response evaluation time, the underlying data''s source timestamp, the market session, the expected update cadence, and a rolled-up `freshness_status` — so endpoint health and data age are separate, machine-readable facts on every response.
* **v1 (stable)** — `/api/*` and `/api/v1/levels/*`. Unchanged and supported; `data` in a v2 response is byte-for-byte the v1 body.
See "API versions & the freshness envelope" in API_Guide.md for the field contract and the per-endpoint cadence table.'
version: 2.0.0
tags:
- name: News
paths:
/api/news/headlines:
get:
tags:
- News
summary: Headlines
description: 'Return the CNBC headlines the automated X post is built from.
Best-effort: an empty ``headlines`` list means news is disabled
(``BULLETIN_TWEET_NEWS_ENABLED=0``) or every upstream feed failed — the
website renders a clean empty state rather than an error.'
operationId: headlines_api_news_headlines_get
security:
- HTTPBearer: []
parameters:
- name: limit
in: query
required: false
schema:
anyOf:
- type: integer
maximum: 30
minimum: 1
- type: 'null'
description: Maximum number of headlines to return. Defaults to the bulletin tweet's configured cap ($BULLETIN_TWEET_NEWS_MAX_ITEMS, 6).
title: Limit
description: Maximum number of headlines to return. Defaults to the bulletin tweet's configured cap ($BULLETIN_TWEET_NEWS_MAX_ITEMS, 6).
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Headlines Api News Headlines Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
bearerFormat: API-Key