Rayana AI Macro API

The macro API from Rayana AI — 4 operation(s) for macro.

GitHub OpenAPI

Operations 4

GET /v1/macro/cycle Cycle #
GET /v1/macro/axes Axes #
GET /v1/macro/earnings Earnings #
GET /v1/macro/indicators Indicators #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rayana-ai:rayana-ai-macro-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rayana-ai-macro-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rayana AI Macro API
  description: 'Impersonal market-research data from the Rayana AI engine: rankings, signals, per-ticker scores, rotation, attention trends, and daily briefs. All content is computed once against broadcast model state and served identically to every caller.'
  version: 1.1.0
tags:
- name: macro
paths:
  /v1/macro/cycle:
    get:
      tags:
      - macro
      summary: Cycle
      description: 'The business-cycle phase: the newest reading and recent month-ends.'
      operationId: cycle_v1_macro_cycle_get
      parameters:
      - name: history_months
        in: query
        required: false
        schema:
          type: integer
          default: 24
          title: History Months
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MacroCycleResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/macro/axes:
    get:
      tags:
      - macro
      summary: Axes
      description: 'Liquidity, credit, policy and inflation: the newest reading per axis and

        recent month-ends.'
      operationId: axes_v1_macro_axes_get
      parameters:
      - name: history_months
        in: query
        required: false
        schema:
          type: integer
          default: 24
          title: History Months
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MacroAxesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/macro/earnings:
    get:
      tags:
      - macro
      summary: Earnings
      description: S&P 500 or Nasdaq-100 profit growth, breadth and beat rate by quarter.
      operationId: earnings_v1_macro_earnings_get
      parameters:
      - name: index
        in: query
        required: false
        schema:
          enum:
          - spx
          - ndx
          type: string
          default: spx
          title: Index
      - name: quarters
        in: query
        required: false
        schema:
          type: integer
          default: 8
          title: Quarters
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProfitAggregatesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/macro/indicators:
    get:
      tags:
      - macro
      summary: Indicators
      description: The FRED series behind the cycle, with source credits.
      operationId: indicators_v1_macro_indicators_get
      parameters:
      - name: points
        in: query
        required: false
        schema:
          type: integer
          default: 24
          title: Points
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MacroIndicator'
                title: Response Indicators V1 Macro Indicators Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MacroAxisReading:
      properties:
        as_of:
          type: string
          title: As Of
        source:
          type: string
          title: Source
        axis:
          type: string
          title: Axis
        composite:
          anyOf:
          - type: number
          - type: 'null'
          title: Composite
        change_3m:
          anyOf:
          - type: number
          - type: 'null'
          title: Change 3M
        quadrant:
          anyOf:
          - type: string
          - type: 'null'
          title: Quadrant
        phase:
          anyOf:
          - type: string
          - type: 'null'
          title: Phase
        months_in_phase:
          anyOf:
          - type: integer
          - type: 'null'
          title: Months In Phase
        components:
          additionalProperties: true
          type: object
          title: Components
          default: {}
      type: object
      required:
      - as_of
      - source
      - axis
      title: MacroAxisReading
    MacroIndicator:
      properties:
        series_id:
          type: string
          title: Series Id
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        concept:
          anyOf:
          - type: string
          - type: 'null'
          title: Concept
        frequency:
          anyOf:
          - type: string
          - type: 'null'
          title: Frequency
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
        citation:
          type: string
          title: Citation
        latest:
          anyOf:
          - $ref: '#/components/schemas/MacroObservation'
          - type: 'null'
        observations:
          items:
            $ref: '#/components/schemas/MacroObservation'
          type: array
          title: Observations
      type: object
      required:
      - series_id
      - citation
      - observations
      title: MacroIndicator
    MacroAxesResponse:
      properties:
        axes:
          additionalProperties:
            $ref: '#/components/schemas/MacroAxis'
          type: object
          title: Axes
        method:
          type: string
          title: Method
        evidence:
          type: string
          title: Evidence
      type: object
      required:
      - axes
      - method
      - evidence
      title: MacroAxesResponse
    MacroCycleResponse:
      properties:
        latest:
          anyOf:
          - $ref: '#/components/schemas/MacroCycleReading'
          - type: 'null'
        month_ends:
          items:
            $ref: '#/components/schemas/MacroCycleReading'
          type: array
          title: Month Ends
        method:
          type: string
          title: Method
      type: object
      required:
      - month_ends
      - method
      title: MacroCycleResponse
    ProfitAggregatesResponse:
      properties:
        index:
          type: string
          title: Index
        in_season:
          items:
            $ref: '#/components/schemas/ProfitAggregateRow'
          type: array
          title: In Season
        history:
          items:
            $ref: '#/components/schemas/ProfitAggregateRow'
          type: array
          title: History
        method:
          type: string
          title: Method
      type: object
      required:
      - index
      - in_season
      - history
      - method
      title: ProfitAggregatesResponse
    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
    MacroCycleReading:
      properties:
        as_of:
          type: string
          title: As Of
        source:
          type: string
          title: Source
        composite:
          anyOf:
          - type: number
          - type: 'null'
          title: Composite
        change_3m:
          anyOf:
          - type: number
          - type: 'null'
          title: Change 3M
        quadrant:
          anyOf:
          - type: string
          - type: 'null'
          title: Quadrant
        phase:
          anyOf:
          - type: string
          - type: 'null'
          title: Phase
        months_in_phase:
          anyOf:
          - type: integer
          - type: 'null'
          title: Months In Phase
        components:
          additionalProperties: true
          type: object
          title: Components
          default: {}
      type: object
      required:
      - as_of
      - source
      title: MacroCycleReading
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ProfitAggregateRow:
      properties:
        as_of:
          type: string
          title: As Of
        cal_quarter:
          type: string
          title: Cal Quarter
        source:
          type: string
          title: Source
        n_members:
          type: integer
          title: N Members
        n_reported:
          type: integer
          title: N Reported
        n_like_for_like:
          type: integer
          title: N Like For Like
        n_non_usd:
          type: integer
          title: N Non Usd
        n_no_data:
          type: integer
          title: N No Data
        ni_growth:
          anyOf:
          - type: number
          - type: 'null'
          title: Ni Growth
        median_ni_growth:
          anyOf:
          - type: number
          - type: 'null'
          title: Median Ni Growth
        op_income_growth:
          anyOf:
          - type: number
          - type: 'null'
          title: Op Income Growth
        median_op_growth:
          anyOf:
          - type: number
          - type: 'null'
          title: Median Op Growth
        n_op_like_for_like:
          anyOf:
          - type: integer
          - type: 'null'
          title: N Op Like For Like
        revenue_growth:
          anyOf:
          - type: number
          - type: 'null'
          title: Revenue Growth
        breadth:
          anyOf:
          - type: number
          - type: 'null'
          title: Breadth
        beat_rate:
          anyOf:
          - type: number
          - type: 'null'
          title: Beat Rate
        revisions_ratio:
          anyOf:
          - type: number
          - type: 'null'
          title: Revisions Ratio
        survivorship_biased:
          type: boolean
          title: Survivorship Biased
      type: object
      required:
      - as_of
      - cal_quarter
      - source
      - n_members
      - n_reported
      - n_like_for_like
      - n_non_usd
      - n_no_data
      - survivorship_biased
      title: ProfitAggregateRow
    MacroObservation:
      properties:
        date:
          type: string
          title: Date
        value:
          type: number
          title: Value
      type: object
      required:
      - date
      - value
      title: MacroObservation
    MacroAxis:
      properties:
        latest:
          anyOf:
          - $ref: '#/components/schemas/MacroAxisReading'
          - type: 'null'
        month_ends:
          items:
            $ref: '#/components/schemas/MacroAxisReading'
          type: array
          title: Month Ends
      type: object
      required:
      - month_ends
      title: MacroAxis