Spark Ads API

Spark Ads API as documented publicly: 2 operations. Contract generated from the documentation by API Evangelist (2026-11-25); not the provider's own document.

GitHub OpenAPI

Operations 2

GET /api/serve Returns the cards this app should render right now #
POST /api/tally Counts an impression or a click against every creative in the body #

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/sparkads-dev:sparkads-dev-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

sparkads-dev-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Spark Ads API
  version: '2026-11-25'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-25: 2 operation(s) read from 1 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Spark Ads has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 0
    documentation: 2
    pages-with-code: 0
    pages-read: 1
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-25'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://sparkads.dev/docs/api
paths:
  /api/serve:
    get:
      operationId: get_api_serve
      tags:
      - Api
      summary: Returns the cards this app should render right now
      description: One request per app, cached at the edge.
      x-source: https://sparkads.dev/docs/api
      parameters:
      - name: app
        in: query
        required: true
        schema:
          type: string
        description: Your SparkPay app_id — the key your numbers are filed under, and how the network knows not to hand you your own advert. Slug
          characters only, 40 max.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiServeResponse'
      x-evidence:
        kind: documentation
  /api/tally:
    post:
      operationId: post_api_tally
      tags:
      - Api
      summary: Counts an impression or a click against every creative in the body
      description: Fire and forget. No auth, tiny body, 204 back.
      x-source: https://sparkads.dev/docs/api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiTallyRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiTallyResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetApiServeResponse:
      type: object
      properties:
        ads:
          type: array
          description: List of ad entries to display
        ads[].id:
          type: string
          description: Stable key. A creative UUID, or a house entry slug.
        ads[].name:
          type: string
          description: App name, up to 40 characters.
        ads[].url:
          type: string
          description: Where the card links. Always https.
        ads[].domain:
          type: string
          description: Bare hostname. The logo and accent colour are resolved from it.
        ads[].tagline:
          type: string
          description: Four or five words, under the name.
        ads[].body:
          type: string
          description: One sentence, up to 160 characters.
        ads[].accent:
          type: string
          description: Tailwind text colour pair for the name, resting then hover. A fallback only.
        ads[].monogram:
          type: string
          description: One letter, for when no logo file resolves.
        ads[].appId:
          type: string
          description: The SparkPay app_id, present on house entries whose slug differs from it.
        ads[].paid:
          type: boolean
          description: True on the one paid card, when this hour is sold, approved and paying.
        ads[].discount:
          type: object
          description: A live public coupon (house entries only).
        ads[].discount.percent:
          type: number
          description: Discount percent.
        ads[].discount.code:
          type: string
          description: Discount code.
        ads[].discount.expiresAt:
          type: string
          description: Expiration timestamp or null.
        slot:
          type: object
          description: Info about slot availability.
        slot.forSale:
          type: boolean
          description: True whenever this hour has no paid ad in it.
        slot.pricingUrl:
          type: string
          description: URL where to send whoever clicks.
        slot.from:
          type: string
          description: Pricing string, e.g., "$9/month".
        layout:
          type: object
          description: Layout configuration for the carousel.
        layout.minCards:
          type: number
          description: Fewest cards to show, currently 2.
        layout.maxCards:
          type: number
          description: Most cards to show, currently 5.
        layout.minCardWidth:
          type: number
          description: Pixels a card needs before another column is worth adding.
        layout.gap:
          type: number
          description: Pixels between cards.
    PostApiTallyRequest:
      type: object
      properties:
        app:
          type: string
          description: Your SparkPay app_id. Slug characters only, 40 max.
        creativeIds:
          type: array
          description: The ids you are reporting on, up to 50. Each one is counted separately.
        creativeId:
          type: string
          description: A single id instead of the list. The older shape, and it keeps working.
        event:
          type: string
          description: Exactly "impression" or "click".
        source:
          type: string
          description: Either "sellular" or "direct". Anything else becomes "network".
      required:
      - app
      - creativeIds
      - event
    PostApiTallyResponse:
      type: object
      properties:
        '204':
          type: string
          description: Counted, or quietly dropped. Nothing back.
        '400':
          type: string
          description: Missing field, unknown event, an id that is not slug or UUID shaped, or more than 50 of them.
        '429':
          type: string
          description: Over 300 requests a minute from one IP.
tags:
- name: Api