Fluxtail Facets API

The Facets API from Fluxtail — 2 operation(s) for facets.

GitHub OpenAPI

Operations 2

GET /api/v1/facets Read one facet #
GET /api/v1/facets/batch Read multiple facets #

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/fluxtail-io:fluxtail-io-facets-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

fluxtail-io-facets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fluxtail Stream Facets API
  version: 1.0.0
  description: Public account-isolated log and analytics reads.
servers:
- url: https://stream.fluxtail.io
security:
- bearerAuth: []
  activeAccount: []
tags:
- name: Facets
paths:
  /api/v1/facets:
    get:
      summary: Read one facet
      parameters:
      - $ref: '#/components/parameters/ActiveAccount'
      - name: field
        in: query
        required: true
        schema:
          $ref: '#/components/schemas/FacetField'
      - name: metric
        in: query
        description: Duration statistics in milliseconds; requires startTime and endTime. Use field all for a summary, or another field to rank by approximate p95. Omit for counts.
        schema:
          type: string
          enum:
          - request_duration_ms
          - upstream_duration_ms
          - request_processing_duration_ms
          - response_processing_duration_ms
      - name: topK
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 10
      responses:
        '200':
          description: Facet values and counts
        '401':
          description: Token is missing or invalid
        '403':
          description: Account or scope is denied
      tags:
      - Facets
      operationId: getApiV1Facets
      x-operation-id-source: derived
  /api/v1/facets/batch:
    get:
      summary: Read multiple facets
      parameters:
      - $ref: '#/components/parameters/ActiveAccount'
      - name: fields
        in: query
        schema:
          type: string
      - name: topK
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 15
      responses:
        '200':
          description: Map of facet names to values and counts
        '401':
          description: Token is missing or invalid
        '403':
          description: Account or scope is denied
      tags:
      - Facets
      operationId: getApiV1FacetsBatch
      x-operation-id-source: derived
components:
  schemas:
    FacetField:
      type: string
      enum:
      - all
      - response_status
      - upstream_status
      - error_reason
      - request_path
      - request_host
      - request_endpoint
      - request_method
      - aws_alb_elb_status_code
      - aws_alb_target_status_code
      - aws_alb_error_reason
      - client_address
      - severity
      - host
      - service_name
      - service_namespace
      - stream
      - k8s_namespace
      - k8s_deployment_name
      - k8s_pod_name
      - k8s_container_name
      - k8s_node_name
      - k8s_cluster_name
  parameters:
    ActiveAccount:
      name: X-Active-Account
      in: header
      required: true
      schema:
        type: string
        format: uuid
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    activeAccount:
      type: apiKey
      in: header
      name: X-Active-Account