Alpaca · Capability

Market Data API — News

Market Data API — News. 1 operations. Lead operation: News API. Self-contained Naftiko capability covering one Alpaca business surface.

Run with Naftiko AlpacaNews

What You Can Do

GET
Getnews — News API
/v1/v1beta1/news

MCP Tools

news-api

News API

read-only idempotent

Capability Spec

data-news.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Market Data API — News
  description: 'Market Data API — News. 1 operations. Lead operation: News API. Self-contained Naftiko capability covering
    one Alpaca business surface.'
  tags:
  - Alpaca
  - News
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ALPACA_API_KEY: ALPACA_API_KEY
capability:
  consumes:
  - type: http
    namespace: data-news
    baseUri: https://data.alpaca.markets
    description: Market Data API — News business capability. Self-contained, no shared references.
    resources:
    - name: v1beta1-news
      path: /v1beta1/news
      operations:
      - name: getnews
        method: GET
        description: News API
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sort
          in: query
          type: string
          description: 'Sort articles by updated date. Options: DESC, ASC'
        - name: include_content
          in: query
          type: boolean
          description: Boolean indicator to include content for news articles (if available)
        - name: exclude_contentless
          in: query
          type: boolean
          description: Boolean indicator to exclude news articles that do not contain content
    authentication:
      type: apikey
      key: APCA-API-KEY-ID
      value: '{{env.ALPACA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: data-news-rest
    port: 8080
    description: REST adapter for Market Data API — News. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1beta1/news
      name: v1beta1-news
      description: REST surface for v1beta1-news.
      operations:
      - method: GET
        name: getnews
        description: News API
        call: data-news.getnews
        with:
          sort: rest.sort
          include_content: rest.include_content
          exclude_contentless: rest.exclude_contentless
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: data-news-mcp
    port: 9090
    transport: http
    description: MCP adapter for Market Data API — News. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: news-api
      description: News API
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-news.getnews
      with:
        sort: tools.sort
        include_content: tools.include_content
        exclude_contentless: tools.exclude_contentless
      outputParameters:
      - type: object
        mapping: $.