SmartCrawler Billing API

The Billing API from SmartCrawler — 3 operation(s) for billing.

GitHub OpenAPI

Operations 3

GET /api/billing/usage Billing Usage #
GET /api/billing/usage/{api_key_id} Billing Usage Detail #
GET /api/billing/crawl-usage Crawl Usage #

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/smartcrawler-io:smartcrawler-io-billing-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

smartcrawler-io-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: smart-crawler — 为 AI Agent 打造的竞品数据采集引擎 Billing API
  description: '跨境电商竞品数据采集引擎,覆盖 9 大家居品牌 46 个独立站,并支持 Amazon/市场平台 VOC。


    **AI Agent 推荐用 MCP 接入**:`/mcp`(streamable-http,工具目录见 `/llms.txt`)。

    REST API 用 `X-API-Key: sck_...` 鉴权。能力总览见 `/agents.json`,站点简介见 `/llms.txt`。'
  version: 0.1.0
tags:
- name: Billing
paths:
  /api/billing/usage:
    get:
      summary: Billing Usage
      description: '当前用户所有 API key 的 N 天用量 + 账单。


        用于:

        · 海尔大数据湖项目 · 资源池按订单付费对接

        · 用户自助查询:调用量 / 字节数 / 账单 / 按 endpoint 分组'
      operationId: billing_usage_api_billing_usage_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days
      - name: X-Workspace-ID
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Workspace-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
  /api/billing/usage/{api_key_id}:
    get:
      summary: Billing Usage Detail
      description: 指定 API key 的 N 天用量明细。
      operationId: billing_usage_detail_api_billing_usage__api_key_id__get
      parameters:
      - name: api_key_id
        in: path
        required: true
        schema:
          type: integer
          title: Api Key Id
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days
      - name: X-Workspace-ID
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Workspace-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
  /api/billing/crawl-usage:
    get:
      summary: Crawl Usage
      description: '独立站采集用量:按站点 / 时间聚合的调用次数(类目 + 详情)。


        数据源为 crawl_jobs(每个采集任务一行,重试不累加),计量单位为

        「成功 fetch 调用次数」,不涉及 credit。可按站点、时间范围筛选,并

        返回按天的趋势序列供前端画图。'
      operationId: crawl_usage_api_billing_crawl_usage_get
      parameters:
      - name: site
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Site
      - name: start
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Start
      - name: end
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: End
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days
      - name: X-Workspace-ID
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Workspace-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError