searchpipe-tech Usage API

The usage API from searchpipe-tech — 3 operation(s) for usage.

Operations 3

GET /usage Usage #
GET /usage/logs Usage Logs #
GET /usage/export Usage Export #

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/searchpipe-tech:searchpipe-tech-usage-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

searchpipe-tech-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SearchPipe Usage API
  version: 0.2.0
tags:
- name: Usage
paths:
  /usage:
    get:
      tags:
      - Usage
      summary: Usage
      operationId: usage_usage_get
      security:
      - HTTPBearer: []
      parameters:
      - 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: granularity
        in: query
        required: false
        schema:
          type: string
          pattern: ^(hour|day)$
          default: day
          title: Granularity
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /usage/logs:
    get:
      tags:
      - Usage
      summary: Usage Logs
      operationId: usage_logs_usage_logs_get
      security:
      - HTTPBearer: []
      parameters:
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page
      - name: size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Size
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageLogListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /usage/export:
    get:
      tags:
      - Usage
      summary: Usage Export
      description: CSV 导出全部用量明细。
      operationId: usage_export_usage_export_get
      security:
      - HTTPBearer: []
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UsageLogItem:
      properties:
        id:
          type: string
          title: Id
        query:
          type: string
          title: Query
        max_results:
          type: integer
          title: Max Results
        search_depth:
          type: string
          title: Search Depth
        credits_consumed:
          type: integer
          title: Credits Consumed
        latency_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: Latency Ms
        status:
          type: string
          title: Status
        error_msg:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Msg
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - query
      - max_results
      - search_depth
      - credits_consumed
      - latency_ms
      - status
      - error_msg
      - created_at
      title: UsageLogItem
    UsageLogListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/UsageLogItem'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        size:
          type: integer
          title: Size
      type: object
      required:
      - items
      - total
      - page
      - size
      title: UsageLogListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UsagePoint:
      properties:
        bucket:
          anyOf:
          - type: string
          - type: 'null'
          title: Bucket
        count:
          type: integer
          title: Count
        credits:
          type: integer
          title: Credits
        free:
          type: integer
          title: Free
          default: 0
        avg_latency:
          type: integer
          title: Avg Latency
      type: object
      required:
      - bucket
      - count
      - credits
      - avg_latency
      title: UsagePoint
    UsageResponse:
      properties:
        points:
          items:
            $ref: '#/components/schemas/UsagePoint'
          type: array
          title: Points
        granularity:
          type: string
          title: Granularity
      type: object
      required:
      - points
      - granularity
      title: UsageResponse
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer