Stonewake News API

The News API from Stonewake — 2 operation(s) for news.

GitHub OpenAPI

Operations 2

GET /v1/news/companies News Companies #
GET /v1/news/companies/{node_id} News Company #

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/stonewake-ai:stonewake-ai-news-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

stonewake-ai-news-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stonewake News API
  description: 'Read-only API for Stonewake credit monitoring, entity risk, and country intelligence. Documentation and setup guides: https://docs.stonewake.ai. Access is arranged per customer workspace.'
  termsOfService: https://stonewake.ai/terms
  contact:
    name: Stonewake
    url: https://stonewake.ai/contact
    email: contact@stonewake.ai
  license:
    name: Proprietary
    url: https://stonewake.ai/terms
  version: 1.0.0
servers:
- url: https://api.stonewake.ai
  description: Production
tags:
- name: News
paths:
  /v1/news/companies:
    get:
      tags:
      - News
      summary: News Companies
      description: 'The companies of the workspace''s book and watch list, each with its newest daily

        news reading of a day read in full.'
      operationId: news_companies_v1_news_companies_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 50
          title: Limit
        description: The most rows the page holds, 1 to 100.
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          maximum: 9223372036854775807
          minimum: 0
          default: 0
          title: Offset
        description: How many rows of the whole result to skip before this page, 0 to 9223372036854775807.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewsCompanyPageOut'
          headers:
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
        '401':
          description: The credential was missing or not accepted, code unauthenticated. The body is the same for every cause.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1ErrorOut'
          headers:
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
        '403':
          description: The credential or the workspace does not allow this request, code forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1ErrorOut'
          headers:
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
        '429':
          headers:
            Retry-After:
              description: Seconds to wait before the next request.
              schema:
                type: integer
              required: true
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
          description: A traffic ceiling was reached, code rate_limited or daily_quota_exceeded. Retry after the seconds in Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1RetryErrorOut'
        '503':
          headers:
            Retry-After:
              description: Seconds to wait before the next request.
              schema:
                type: integer
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
          description: The request could not be served safely, code quota_unavailable, server_busy or service_unavailable. Retry after the seconds in Retry-After where it is sent, otherwise with backoff. A service_unavailable 503 also carries detail.
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/V1ErrorOut'
                - $ref: '#/components/schemas/V1RetryErrorOut'
                - $ref: '#/components/schemas/V1DetailOut'
                title: Response 503 News Companies V1 News Companies Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          headers:
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
      security:
      - bearerAuth: []
  /v1/news/companies/{node_id}:
    get:
      tags:
      - News
      summary: News Company
      description: 'One company''s daily news readings, the newest articles behind the newest, and its

        serious news events (type, severity, counts, article keys) of the same days.'
      operationId: news_company_v1_news_companies__node_id__get
      parameters:
      - name: node_id
        in: path
        required: true
        schema:
          type: integer
          title: Node Id
        description: The node's id, as /v1/search hits and every node route carry it.
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 90
          minimum: 1
          default: 30
          title: Days
        description: How many days of readings to serve, 1 to 90, 30 unless stated.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewsCompanyDetailOut'
          headers:
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
        '401':
          description: The credential was missing or not accepted, code unauthenticated. The body is the same for every cause.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1ErrorOut'
          headers:
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
        '403':
          description: The credential or the workspace does not allow this request, code forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1ErrorOut'
          headers:
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
        '429':
          headers:
            Retry-After:
              description: Seconds to wait before the next request.
              schema:
                type: integer
              required: true
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
          description: A traffic ceiling was reached, code rate_limited or daily_quota_exceeded. Retry after the seconds in Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1RetryErrorOut'
        '503':
          headers:
            Retry-After:
              description: Seconds to wait before the next request.
              schema:
                type: integer
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
          description: The request could not be served safely, code quota_unavailable, server_busy or service_unavailable. Retry after the seconds in Retry-After where it is sent, otherwise with backoff. A service_unavailable 503 also carries detail.
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/V1ErrorOut'
                - $ref: '#/components/schemas/V1RetryErrorOut'
                - $ref: '#/components/schemas/V1DetailOut'
                title: Response 503 News Company V1 News Companies  Node Id  Get
        '404':
          description: Not found in your workspace, code not_found. The answer never says whether the resource exists elsewhere.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1ErrorOut'
          headers:
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          headers:
            RateLimit-Policy:
              description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
              required: true
              schema:
                type: string
      security:
      - bearerAuth: []
components:
  schemas:
    V1RetryErrorBodyOut:
      properties:
        code:
          type: string
          title: Code
          description: rate_limited or daily_quota_exceeded on a 429, server_busy on a 503.
        message:
          type: string
          title: Message
          description: Plain text, one fixed message per code. docs.stonewake.ai/errors lists it.
        retry_after_seconds:
          type: integer
          title: Retry After Seconds
          description: Seconds to wait before the next request, equal to the Retry-After header.
      type: object
      required:
      - code
      - message
      - retry_after_seconds
      title: V1RetryErrorBodyOut
      description: A refusal that names when to retry, a traffic ceiling or server_busy.
    V1DetailOut:
      properties:
        error:
          $ref: '#/components/schemas/V1ErrorBodyOut'
          description: The refusal, its code service_unavailable and that code's fixed message.
        detail:
          type: string
          title: Detail
          description: Why the request could not be served, in one plain sentence. Retry with backoff.
      type: object
      required:
      - error
      - detail
      title: V1DetailOut
      description: A 503 that names no code of its own, so it carries the envelope code service_unavailable beside its detail. Retry with backoff.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
          description: Where the failure is, the part of the request (path, query or body) and then the parameter or field.
        msg:
          type: string
          title: Message
          description: What failed, in one plain sentence. For an unknown query parameter it names the parameters the endpoint reads.
        type:
          type: string
          title: Error Type
          description: The kind of failure, such as missing, value_error, extra_forbidden for a query parameter the endpoint does not read, literal_error for a closed value outside its list, finite_number for a number that is not finite, such as 1e400, inf or nan, timezone_aware for a date and time without a UTC offset, or too_many_errors for the entry that counts the entries beyond the first 10.
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    NewsEventOut:
      properties:
        event_type:
          type: string
          enum:
          - insolvency
          - sanctions
          - fraud
          - cyberattack
          - accident
          - legal_action
          - executive_exit
          - layoffs
          - strike
          - environment_rights
          title: Event Type
          description: The event type, from GDELT's own theme codes under a reviewed mapping.
        severity:
          type: string
          enum:
          - critical
          - high
          - info
          title: Severity
          description: critical, high or info.
        opened_at:
          type: string
          format: date-time
          title: Opened At
          description: When the event's first article appeared.
        detected_at:
          type: string
          format: date-time
          title: Detected At
          description: When the rule found the event.
        closes_at:
          type: string
          format: date-time
          title: Closes At
          description: Until when later articles join the event.
        last_article_at:
          type: string
          format: date-time
          title: Last Article At
          description: When the event's newest article appeared.
        articles:
          type: integer
          title: Articles
          description: How many articles the event holds.
        sources:
          type: integer
          title: Sources
          description: How many independent sources report it.
        languages:
          items:
            type: string
          type: array
          title: Languages
          description: The languages its articles are written in.
        alerted:
          type: boolean
          title: Alerted
          description: True when the event raised an alert, which only a confirmed event does.
        article_keys:
          items:
            type: string
          type: array
          title: Article Keys
          description: The keys of its newest 20 articles.
        mapping_version:
          type: string
          title: Mapping Version
          description: The version of the reviewed theme mapping.
        rule_version:
          type: string
          title: Rule Version
          description: The version of the rule that found the event.
        check:
          $ref: '#/components/schemas/NewsCheckOut'
          description: The news check of the event.
      type: object
      required:
      - event_type
      - severity
      - opened_at
      - detected_at
      - closes_at
      - last_article_at
      - articles
      - sources
      - languages
      - alerted
      - article_keys
      - mapping_version
      - rule_version
      - check
      title: NewsEventOut
      description: A serious news event about the company, its type from GDELT's own theme codes under a reviewed mapping and rule, its severity, its dates and counts, whether it alerted and its news check. No headline, text or person's name is served.
    NewsReadingOut:
      properties:
        day:
          type: string
          format: date
          title: Day
          description: The UTC day the reading is for.
        state:
          type: string
          enum:
          - reading
          - too_little_coverage
          - feed_gap
          title: State
          description: reading with a tone, too_little_coverage when a fully read window holds fewer than three articles, feed_gap when the day or a thin window was not fully read.
        tone_mean:
          anyOf:
          - type: number
          - type: 'null'
          title: Tone Mean
          description: The mean GDELT document tone of the window's articles, set only when state is reading.
        articles_day:
          type: integer
          title: Articles Day
          description: How many articles of the day the reading counts.
        articles_window:
          type: integer
          title: Articles Window
          description: How many articles the reading rests on across its window.
        window_days:
          type: integer
          title: Window Days
          description: The length of the reading's window in days.
        gap_days:
          type: integer
          title: Gap Days
          description: How many days of the window were not fully read.
        article_keys:
          items:
            type: string
          type: array
          title: Article Keys
          description: The newest 100 articles the reading rests on.
        method:
          type: string
          title: Method
          description: The version of the reading method.
      type: object
      required:
      - day
      - state
      - tone_mean
      - articles_day
      - articles_window
      - window_days
      - gap_days
      - article_keys
      - method
      title: NewsReadingOut
      description: One company's reading on one UTC day. A reading carries the mean GDELT document tone of the window's articles, too_little_coverage and feed_gap carry none. article_keys cite the newest 100 articles the reading rests on, and articles_window counts them all.
    V1ErrorBodyOut:
      properties:
        code:
          type: string
          title: Code
          description: A stable code, today one of unauthenticated (401), forbidden (403), not_found (404), method_not_allowed (405, a method the path does not serve, so no operation declares it), content_too_large (413), validation_failed (422), rate_limited and daily_quota_exceeded (429), internal_error (500), quota_unavailable, server_busy and service_unavailable (503). New codes may be added over time.
        message:
          type: string
          title: Message
          description: Plain text, one fixed message per code, except quota_unavailable, whose message names which of its two counts could not be verified. docs.stonewake.ai/errors lists every message.
      type: object
      required:
      - code
      - message
      title: V1ErrorBodyOut
      description: 'One refusal. Branch on code, never on message. Codes are stable, and new

        codes may be added over time.'
    NewsCheckOut:
      properties:
        status:
          type: string
          enum:
          - confirmed
          - not_confirmed
          - pending
          - unchecked
          - covered
          title: Status
          description: confirmed when the check confirmed the event, the only status that alerts, not_confirmed, pending before it is read, unchecked when the check could not run, or covered when an event of the company at least as severe had already alerted.
        verdict:
          anyOf:
          - type: string
            enum:
            - 'yes'
            - 'no'
            - unsure
          - type: 'null'
          title: Verdict
          description: The check's verdict, yes, no or unsure, null before a verdict.
        event_type:
          anyOf:
          - type: string
            enum:
            - insolvency
            - sanctions
            - fraud
            - cyberattack
            - accident
            - legal_action
            - executive_exit
            - layoffs
            - strike
            - environment_rights
          - type: 'null'
          title: Event Type
          description: The event type the check names, null without a verdict.
        severity:
          anyOf:
          - type: string
            enum:
            - critical
            - high
            - info
          - type: 'null'
          title: Severity
          description: The confirmed event's severity, critical, high or info, never above the rule's, null unless confirmed.
        article_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Article Key
          description: The first article the check cites, one of the event's own or of its second source articles, null when it cites none.
        reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Reason
          description: The code of a downgrade or of a check that could not run, null otherwise.
        model:
          anyOf:
          - type: string
          - type: 'null'
          title: Model
          description: The model that read the articles, null before a check ran.
        prompt_version:
          anyOf:
          - type: string
          - type: 'null'
          title: Prompt Version
          description: The version of the check's instructions, null before a check ran.
        checked_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Checked At
          description: When the check ran, null before it ran.
        second_source_articles:
          items:
            $ref: '#/components/schemas/NewsCheckArticleOut'
          type: array
          title: Second Source Articles
          description: The NewsAPI.ai articles the check read beside the event's own, empty while that source is off.
      type: object
      required:
      - status
      - verdict
      - event_type
      - severity
      - article_key
      - reason
      - model
      - prompt_version
      - checked_at
      - second_source_articles
      title: NewsCheckOut
      description: The news check of an event. A model read the event's articles and a fixed rule decided whether its verdict counts, and only a confirmed event alerts. No snippet or article text is kept.
    NewsCompanyPageOut:
      properties:
        items:
          items:
            $ref: '#/components/schemas/NewsCompanyOut'
          type: array
          title: Items
          description: This page's companies and watched persons.
        limit:
          type: integer
          title: Limit
          description: The most rows this page could hold, as asked or by default.
        offset:
          type: integer
          title: Offset
          description: How many rows come before this page.
        total:
          type: integer
          title: Total
          description: The exact count of companies and watched persons.
        attribution:
          $ref: '#/components/schemas/NewsAttributionOut'
          description: The GDELT source line to show with the data.
      type: object
      required:
      - items
      - limit
      - offset
      - total
      - attribution
      title: NewsCompanyPageOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
          maxItems: 11
          description: At most 10 entries, in the order the request was checked. When there are more, one further entry of type too_many_errors with an empty loc counts them in its msg. A loc part longer than 64 bytes and a msg longer than 2,048 bytes are cut and end in ...
        error:
          type: object
          title: Error
          description: The refusal envelope, code validation_failed.
          properties:
            code:
              type: string
              description: validation_failed on every 422.
            message:
              type: string
              description: The fixed message of the code, never a value sent.
          required:
          - code
          - message
      type: object
      title: HTTPValidationError
      required:
      - error
    NewsArticleOut:
      properties:
        article_key:
          type: string
          title: Article Key
          description: The article's key, the sha256 of its address, which readings and events cite.
        url:
          type: string
          title: Url
          description: The article's address.
        publisher_host:
          type: string
          title: Publisher Host
          description: The publisher's host name.
        published_at:
          type: string
          format: date-time
          title: Published At
          description: When the article was published.
        language:
          type: string
          title: Language
          description: The article's language.
        gdelt_tone:
          anyOf:
          - type: number
          - type: 'null'
          title: Gdelt Tone
          description: The article's GDELT document tone, null for a sole trader, which is never scored.
        matched_organization:
          type: string
          title: Matched Organization
          description: The organization name the article was matched on.
      type: object
      required:
      - article_key
      - url
      - publisher_host
      - published_at
      - language
      - gdelt_tone
      - matched_organization
      title: NewsArticleOut
      description: 'One article behind a reading, cited by article_key (the sha256 of its URL):

        where and when it was published, its language, its GDELT document tone and the

        name that matched the company or the followed person, as the article wrote it.'
    NewsCheckArticleOut:
      properties:
        article_key:
          type: string
          title: Article Key
          description: The article's key, the sha256 of its address.
        url:
          type: string
          title: Url
          description: The article's address.
        publisher_host:
          type: string
          title: Publisher Host
          description: The publisher's host name.
        published_at:
          type: string
          format: date-time
          title: Published At
          description: When the article was published.
        language:
          type: string
          title: Language
          description: The article's language.
        provider:
          type: string
          const: newsapi_ai
          title: Provider
          description: The second source that served the article, newsapi_ai.
      type: object
      required:
      - article_key
      - url
      - publisher_host
      - published_at
      - language
      - provider
      title: NewsCheckArticleOut
      description: 'A second source article the news check read (NewsAPI.ai, provider newsapi_ai):

        its article_key (the sha256 of its URL), link, publisher, date and language, never a

        headline or text.'
    V1ErrorOut:
      properties:
        error:
          $ref: '#/components/schemas/V1ErrorBodyOut'
          description: The refusal, with its stable code and message.
      type: object
      required:
      - error
      title: V1ErrorOut
      description: 'The /v1 error envelope every 4xx refusal carries, except a 422 (its body names

        the parameter) and a 413 that arrives without a body.'
    NewsCompanyDetailOut:
      properties:
        node_id:
          type: integer
          title: Node Id
          description: The company's node id, or a watched person's.
        label:
          type: string
          title: Label
          description: The company's or person's name.
        node_type:
          type: string
          enum:
          - company
          - person
          title: Node Type
          description: company, or person for a natural person the workspace watches.
          default: company
        sole_trader:
          type: boolean
          title: Sole Trader
          description: True when the register states the company to be a natural person's business (a sole trader). No tone is served for it, so latest is null, readings are empty and every article's gdelt_tone is null, while its articles and news events stay. It is never scored.
          default: false
        readings:
          items:
            $ref: '#/components/schemas/NewsReadingOut'
          type: array
          title: Readings
          description: Its daily readings, newest first, at most as many as the days parameter asks, 30 unless stated.
        articles:
          items:
            $ref: '#/components/schemas/NewsArticleOut'
          type: array
          title: Articles
          description: The newest 100 articles behind the newest reading, and every article its events list.
        events:
          items:
            $ref: '#/components/schemas/NewsEventOut'
          type: array
          title: Events
          description: Its serious news events of the same days.
        attribution:
          $ref: '#/components/schemas/NewsAttributionOut'
          description: The GDELT source line to show with the data.
      type: object
      required:
      - node_id
      - label
      - readings
      - articles
      - events
      - attribution
      title: NewsCompanyDetailOut
    V1RetryErrorOut:
      properties:
        error:
          $ref: '#/components/schemas/V1RetryErrorBodyOut'
          description: The refusal, with its stable code, its message and the seconds to wait.
      type: object
      required:
      - error
      title: V1RetryErrorOut
      description: 'The envelope of a refusal that names when to retry: every 429 and a 503 server_busy

        carry retry_after_seconds beside the Retry-After header.'
    NewsCompanyOut:
      properties:
        node_id:
          type: integer
          title: Node Id
          description: The company's node id, or a watched person's.
        label:
          type: string
          title: Label
          description: The company's or person's name.
        node_type:
          type: string
          enum:
          - company
          - person
          title: Node Type
          description: company, or person for a natural person the workspace watches.
          default: company
        sole_trader:
          type: boolean
          title: Sole Trader
          description: True when the register states the company to be a natural person's business (a sole trader). No tone is served for it, so latest is null, readings are empty and every article's gdelt_tone is null, while its articles and news events stay. It is never scored.
          default: false
        latest:
          anyOf:
          - $ref: '#/components/schemas/NewsReadingOut'
          - type: 'null'
          description: The newest reading of a day read in full, null when none is stored, which says nothing about coverage.
      type: object
      required:
      - node_id
      - label
      - latest
      title: NewsCompanyOut
    NewsAttributionOut:
      properties:
        text:
          type: string
          title: Text
          description: The GDELT source line to show with the data.
        url:
          type: string
          title: Url
          description: The address the source line links to.
      type: object
      required:
      - text
      - url
      title: NewsAttributionOut
      description: The source citation every news answer carries (GDELT's terms).
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An API key (swk_live_ followed by 40 characters) on /v1, a workspace administrator's session token on /org/api-keys.