S&P Global · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for LLM-ready Line Item API

3 actions 3 updates phrasing extends openapi/sp-global-line-item-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for S&P Global's API. It is a proposal applied on top of the contract, not a document S&P Global publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 3

$.info
$.paths['/api/v1/line_item/'].post
$.paths['/api/v1/line_item/{company_id}/{line_item}/{period_type}/{start_year}/{end_year}/{start_quarter}/{end_quarter}'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for LLM-ready Line Item API
  version: 1.0.0
extends: openapi/sp-global-line-item-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-10-01'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 2
- target: $.paths['/api/v1/line_item/'].post
  update:
    x-apievangelist-phrasing:
      intent: Get a financial line item for several companies
      effect: read
      questions:
      - Can I compare revenue across several companies in one request?
      - How do I pull a single metric like net income for a list of companies over several years?
      - Can I get the last few quarters of a line item without naming exact years?
      instructions:
      - text: Get {line_item} for companies {company_ids}.
        slots:
          line_item: requestBody.line_item
          company_ids: requestBody.company_ids
      - text: Pull {period_type} {line_item} for companies {company_ids} from {start_year} to {end_year}.
        slots:
          period_type: requestBody.period_type
          line_item: requestBody.line_item
          company_ids: requestBody.company_ids
          start_year: requestBody.start_year
          end_year: requestBody.end_year
      - text: Get the last {num_periods} periods of {line_item} for companies {company_ids}.
        slots:
          num_periods: requestBody.num_periods
          line_item: requestBody.line_item
          company_ids: requestBody.company_ids
      method: generated
      generated: '2026-10-01'
- target: $.paths['/api/v1/line_item/{company_id}/{line_item}/{period_type}/{start_year}/{end_year}/{start_quarter}/{end_quarter}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get one company's line item for a fixed period range
      effect: read
      questions:
      - What was one company's revenue between two specific quarters?
      - Can I fetch a single company's line item using a path-based year and quarter range?
      instructions:
      - text: Get {line_item} for company {company_id} as {period_type} from {start_year} Q{start_quarter} to {end_year} Q{end_quarter}.
        slots:
          line_item: path.line_item
          company_id: path.company_id
          period_type: path.period_type
          start_year: path.start_year
          start_quarter: path.start_quarter
          end_year: path.end_year
          end_quarter: path.end_quarter
      - text: For the single company {company_id}, pull {period_type} {line_item} from {start_year}-{start_quarter} through {end_year}-{end_quarter}.
        slots:
          company_id: path.company_id
          period_type: path.period_type
          line_item: path.line_item
          start_year: path.start_year
          start_quarter: path.start_quarter
          end_year: path.end_year
          end_quarter: path.end_quarter
      method: generated
      generated: '2026-10-01'