Kunkafa Widgets API

The Widgets API from Kunkafa — 4 operation(s) for widgets.

GitHub OpenAPI

Operations 4

GET /api/widgets/snapshot.json Market names and optional percentage questions #
GET /api/widgets/history.json Selected historical examples for widget asset pages #
POST /api/widgets/events Record a consented, cookieless widget load or click #
GET /api/widgets/questions.json Hourly question-only widget data; no standalone market prices or daily changes #

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/kunkafa-com:kunkafa-com-widgets-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

kunkafa-com-widgets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kunkafa public data and integrations Widgets API
  version: '2026-09-21'
  description: 'MCP is available on every plan. Public JSON for market questions, selected results, historical performance, plans and articles remains available without an integration token. API and MCP return selections of current forecasts (one market, chosen durations, optional filters), with published historical performance and selected results from their own operations. Replies are in English. The complete prepared-conversation file stays in the app. MCP is included in every plan; REST API access requires Pro or Publisher. Kunkafa’s confidence is separate from historical performance. Probability, Not Prophecy. Not financial advice. The best of both worlds: Kunkafa’s market analysis and your AI app’s ability to explore news, text and context. Prepare your conversation in Kunkafa, choose your AI app, then paste the copied message. For a custom MCP connection, complete setup and approve access in your browser.'
  contact:
    email: contact@kunkafa.com
servers:
- url: https://kunkafa.com
tags:
- name: Widgets
paths:
  /api/widgets/snapshot.json:
    servers:
    - url: https://widget.kunkafa.com
    get:
      summary: Market names and optional percentage questions
      description: Published independently on widget.kunkafa.com, scheduled hourly. Inspect generatedAt and per-asset source timestamps for freshness and availability. No latest confidence values or private forecast arrays.
      x-implementation-status: deployed
      responses:
        '200':
          description: Hourly snapshot, with per-asset source timestamps and availability.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WidgetSnapshot'
        '302':
          description: The kunkafa.com alias redirects to this endpoint on widget.kunkafa.com.
        '503':
          description: No verified snapshot available.
      tags:
      - Widgets
      operationId: getApiWidgetsSnapshotJson
      x-operation-id-source: derived
  /api/widgets/history.json:
    servers:
    - url: https://widget.kunkafa.com
    get:
      summary: Selected historical examples for widget asset pages
      description: Latest eligible completed result for each original duration per market, combined across both directions, ordered by record closure descending with stable ID ties. Original forecast window strictly longer than one day and confidence strictly above 80%, from a 90-day lookback. Unknown outcomes are excluded. These selected results are not an aggregate performance denominator. sourceGeneratedAt records the historical query time.
      x-implementation-status: deployed
      responses:
        '200':
          description: Dated historical examples with per-asset coverage states.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WidgetHistory'
        '302':
          description: The kunkafa.com alias redirects to this endpoint on widget.kunkafa.com.
        '503':
          description: No verified historical snapshot available.
      tags:
      - Widgets
      operationId: getApiWidgetsHistoryJson
      x-operation-id-source: derived
  /api/widgets/events:
    post:
      summary: Record a consented, cookieless widget load or click
      description: Optional measurement. Requires publisher consent. Approximate observed events, not unique visitors or verified installations. No cookies, account IDs, full URLs, queries or fragments. Requests are limited to 2 KiB. Activated only with the isolated collector release.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - id
              - event
              - at
              - assets
              - layout
              - locale
              properties:
                id:
                  type: string
                  format: uuid
                event:
                  enum:
                  - view
                  - click
                at:
                  type: integer
                  description: Unix milliseconds; at most 2 hours late or 5 minutes future
                assets:
                  type: array
                  minItems: 1
                  maxItems: 6
                  items:
                    type: string
                    pattern: ^[a-z][a-z0-9-]{0,63}$
                layout:
                  enum:
                  - mini
                  - inline
                  - ticker
                  - vertical
                  - horizontal
                  - card
                  - strip
                  - board
                locale:
                  enum:
                  - en
                  - ar
                host:
                  type:
                  - string
                  - 'null'
                  maxLength: 253
                path:
                  type:
                  - string
                  - 'null'
                  maxLength: 160
                  description: Explicit public static path; sensitive or uncertain values discarded
      responses:
        '204':
          description: Accepted
        '400':
          description: Invalid event
        '403':
          description: Origin rejected
        '413':
          description: Payload too large
        '429':
          description: Admission cap reached
        '503':
          description: Collector unavailable
      x-implementation-status: deployed
      tags:
      - Widgets
      operationId: postApiWidgetsEvents
      x-operation-id-source: derived
  /api/widgets/questions.json:
    get:
      operationId: publicWidgetQuestions
      summary: Hourly question-only widget data; no standalone market prices or daily changes
      security: []
      responses:
        '200':
          description: Public Kunkafa questions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WidgetQuestions'
      tags:
      - Widgets
components:
  schemas:
    WidgetQuote:
      type: object
      additionalProperties: false
      required:
      - currency
      - unit
      properties:
        currency:
          type:
          - string
          - 'null'
          description: Display currency; USDT is labeled USD. No absolute market prices are published.
        unit:
          $ref: '#/components/schemas/WidgetText'
    WidgetAsset:
      type: object
      additionalProperties: false
      required:
      - id
      - name
      - decimals
      - quote
      - sourceAt
      - status
      - question
      - questionSourceAt
      - url
      - category
      - questionBasis
      properties:
        id:
          type: string
          description: Public market identity derived from the full English asset name.
        name:
          $ref: '#/components/schemas/WidgetText'
        decimals:
          type:
          - integer
          - 'null'
          minimum: 0
          maximum: 20
        quote:
          anyOf:
          - $ref: '#/components/schemas/WidgetQuote'
          - type: 'null'
        sourceAt:
          type:
          - string
          - 'null'
          format: date-time
        status:
          enum:
          - available
          - delayed
          - unavailable
        question:
          anyOf:
          - $ref: '#/components/schemas/WidgetText'
          - type: 'null'
        questionSourceAt:
          type:
          - string
          - 'null'
          format: date-time
        url:
          type: string
          format: uri
          pattern: ^https://kunkafa\.com/markets/
        category:
          $ref: '#/components/schemas/WidgetText'
        slug:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
          description: Public English-name route slug. Internal id remains the stable data key; clients accept older snapshots without slug.
        questionBasis:
          const: percentage
        lookupKeys:
          type: array
          description: Compatibility locators for existing market links. These are not credentials and grant no access.
          items:
            type: string
            pattern: ^[a-f0-9]{64}$
    WidgetSnapshot:
      type: object
      additionalProperties: false
      required:
      - schema
      - generatedAt
      - dataUrl
      - historyUrl
      - assets
      properties:
        schema:
          const: 1
        generatedAt:
          type: string
          format: date-time
        dataUrl:
          const: https://widget.kunkafa.com/api/widgets/snapshot.json
        historyUrl:
          const: https://widget.kunkafa.com/api/widgets/history.json
        assets:
          type: array
          items:
            $ref: '#/components/schemas/WidgetAsset'
    WidgetText:
      type: object
      additionalProperties: false
      required:
      - en
      - ar
      properties:
        en:
          type: string
        ar:
          type: string
    WidgetHistoricalExample:
      type: object
      additionalProperties: false
      required:
      - id
      - direction
      - openedAt
      - closedAt
      - moveFraction
      - outcome
      - durationLabel
      - confidencePct
      properties:
        id:
          type: string
        direction:
          enum:
          - up
          - down
        openedAt:
          type: string
          format: date-time
        closedAt:
          type: string
          format: date-time
        moveFraction:
          type: number
        outcome:
          enum:
          - reached
          - not-reached
        durationLabel:
          type: object
          required:
          - en
          - ar
          properties:
            en:
              type: string
            ar:
              type: string
          description: Official localized duration, matched and rounded by the server using the app catalogue. This is the single published duration label.
        confidencePct:
          type: number
          maximum: 100
          description: Recorded confidence rounded to two decimals, not historical performance. Eligibility uses the original confidence strictly above 80%; a qualifying value just above 80% can display as 80.00% after rounding.
          minimum: 80
        mfePercent:
          type:
          - number
          - 'null'
          minimum: 0
          description: Recorded furthest favorable price movement in percentage points.
        targetProgressPercent:
          type:
          - number
          - 'null'
          minimum: 0
          description: Favorable move as a percentage of target distance; can exceed 100. Missing is null.
      description: Selected examples, not the denominator for aggregate performance. Elapsed time and nominal maximum window are separate. No maximum-movement claim.
    WidgetHistory:
      type: object
      additionalProperties: false
      required:
      - schema
      - generatedAt
      - dataUrl
      - selection
      - lookbackDays
      - assets
      - sourceGeneratedAt
      properties:
        schema:
          const: 1
        generatedAt:
          type: string
          format: date-time
        dataUrl:
          const: https://widget.kunkafa.com/api/widgets/history.json
        selection:
          const: latest-per-duration-over80-over1day-90days-v9
        lookbackDays:
          const: 90
        assets:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
            - id
            - status
            - examples
            properties:
              id:
                type: string
              status:
                enum:
                - available
                - unavailable
                description: Availability of selected results only; not a measure of aggregate performance or evidence quality.
              examples:
                type: array
                items:
                  $ref: '#/components/schemas/WidgetHistoricalExample'
        sourceGeneratedAt:
          type: string
          format: date-time
          description: Time the historical sample was actually queried; preserved during hourly cache reuse.
    WidgetQuestions:
      type: object
      required:
      - schema
      - kind
      - generatedAt
      - assets
      - questionBasis
      additionalProperties: false
      properties:
        schema:
          const: 1
        kind:
          const: questions
        generatedAt:
          type: string
        assets:
          type: array
          items:
            type: object
            required:
            - id
            - slug
            - name
            - question
            - sourceAt
            additionalProperties: false
            properties:
              id:
                type: string
              slug:
                type: string
              name:
                type: object
                required:
                - en
                - ar
                additionalProperties: false
                properties:
                  en:
                    type: string
                  ar:
                    type: string
              question:
                anyOf:
                - type: 'null'
                - type: object
                  required:
                  - en
                  - ar
                  additionalProperties: false
                  properties:
                    en:
                      type: string
                    ar:
                      type: string
              sourceAt:
                type:
                - string
                - 'null'
              lookupKeys:
                type: array
                description: Compatibility locators for existing market links. These are not credentials and grant no access.
                items:
                  type: string
                  pattern: ^[a-f0-9]{64}$
        questionBasis:
          const: percentage
  securitySchemes:
    KunkafaPersonalToken:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: Pro or Publisher personal token created in Account, displayed once and expiring after 90 days. Select the required operation scopes when creating it. Never put tokens in URLs, logs, browser bundles or support messages. Not accepted for MCP.
    KunkafaOAuth:
      type: oauth2
      description: 'Authorization code with required PKCE. Issuer https://kunkafa.com/oauth. Request resource https://kunkafa.com/mcp for MCP or https://kunkafa.com/api/v1 for Pro or Publisher REST. Access tokens expire after 10 minutes; refresh tokens rotate and reuse revokes the grant. An MCP connection stays connected while used: it expires after 90 days without use and at most one year after approval. The same app approving again replaces its connection; asking only for access already allowed needs no second approval. Validate issuer/resource/audience; never give an agent app sign-in credentials.'
      flows:
        authorizationCode:
          authorizationUrl: https://kunkafa.com/oauth/authorize
          tokenUrl: https://kunkafa.com/oauth/token
          refreshUrl: https://kunkafa.com/oauth/token
          scopes:
            markets:read: List authorized markets
            outlooks:read: Read controlled current summaries
            performance:read: Read published performance
            results:read: Read selected public results
            usage:read: Check current usage
            following:write: Follow and unfollow markets
externalDocs:
  description: English and Arabic setup, interpretation, limits, security and troubleshooting guides.
  url: https://kunkafa.com/developers