Metagraphed Adapters API

The adapters API from Metagraphed — 2 operation(s) for adapters.

GitHub OpenAPI

Operations 2

GET /api/v1/adapters/{slug} Adapter #
GET /api/v1/review/adapter-candidates Review adapter candidates #

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/metagraph-sh:metagraph-sh-adapters-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

metagraph-sh-adapters-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Public, read-only API over canonical Metagraphed registry artifacts for Bittensor subnet interfaces. **No authentication** — every operation is an unauthenticated GET. Responses use a stable JSON envelope `{ ok, schema_version, data, meta }` (errors: `{ ok: false, error }`) and carry `ETag` + `Cache-Control` for conditional caching. Rate-limited per client. Multi-network: insert a `/{network}/` segment after `/api/v1/` (mainnet is the default — omit it) to read testnet data, e.g. `/api/v1/testnet/subnets`. Testnet exposes the subset of routes that have data; `/api/v1/lineage` tracks which testnet subnets have graduated.'
  title: Metagraphed Adapters API
  version: 2026-07-03.2
servers:
- description: Production (mainnet default; insert /testnet/ after /api/v1/ for testnet data)
  url: https://api.metagraph.sh
security: []
tags:
- name: Adapters
paths:
  /api/v1/adapters/{slug}:
    get:
      description: Fetch adapter-backed public metrics.
      operationId: adapter
      parameters:
      - description: A provider's URL-safe slug, as published in the provider list.
        in: path
        name: slug
        required: true
        schema:
          pattern: ^[a-z0-9-]+$
          type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                AdapterArtifactResponse:
                  $ref: '#/components/examples/AdapterArtifactResponse'
              schema:
                allOf:
                - $ref: '#/components/schemas/SuccessEnvelope'
                - properties:
                    data:
                      $ref: '#/components/schemas/AdapterArtifact'
                  type: object
          description: Canonical artifact wrapped in the Metagraphed API envelope.
          headers:
            cache-control:
              $ref: '#/components/headers/CacheControl'
            etag:
              $ref: '#/components/headers/ETag'
            x-metagraph-contract-version:
              $ref: '#/components/headers/ContractVersion'
        '304':
          description: ETag matched and the cached response is still valid.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Query parameters were malformed or unsupported.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Artifact or API route was not found.
        '405':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: HTTP method is not supported.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unexpected backend error.
      tags:
      - Adapters
      x-metagraphed-mainnet-only: true
      x-metagraphed-networks:
      - mainnet
      summary: Adapter
      x-summary-source: derived
  /api/v1/review/adapter-candidates:
    get:
      description: Fetch subnets worth deeper adapter work.
      operationId: reviewAdapterCandidates
      parameters:
      - description: Subnet id (netuid). `0` is the root subnet -- a stake-allocation construct rather than a running subnet. It IS present in the registry collections, but it is excluded from application-subnet counts, and stake on it is denominated in TAO rather than in a subnet alpha token, so its economics are not directly comparable to a running subnet's.
        in: query
        name: netuid
        required: false
        schema:
          maximum: 65535
          minimum: 0
          type: integer
      - in: query
        name: curation_level
        required: false
        schema:
          enum:
          - native
          - candidate-discovered
          - community-seeded
          - machine-verified
          - maintainer-reviewed
          - adapter-backed
          type: string
      - in: query
        name: candidate_api_kinds
        required: false
        schema:
          enum:
          - archive
          - dashboard
          - data-artifact
          - docs
          - example
          - openapi
          - repo-registry
          - sdk
          - source-repo
          - sse
          - subnet-api
          - subtensor-rpc
          - subtensor-wss
          - website
          type: string
      - in: query
        name: operational_kinds
        required: false
        schema:
          enum:
          - archive
          - dashboard
          - data-artifact
          - docs
          - example
          - openapi
          - repo-registry
          - sdk
          - source-repo
          - sse
          - subnet-api
          - subtensor-rpc
          - subtensor-wss
          - website
          type: string
      - description: Restrict the result to rows whose field equals this value. Matched exactly (case-insensitively), not searched for as a substring — an unmatched value yields an empty result rather than an error.
        in: query
        name: reason_codes
        required: false
        schema:
          maxLength: 100
          type: string
      - in: query
        name: recommended_adapter_kind
        required: false
        schema:
          enum:
          - custom-adapter
          - data-artifact-adapter
          - generic-openapi-or-custom
          - stream-adapter
          type: string
      - description: Comma-separated allow-list projecting the response's primary row collection down to just these fields. A response carrying several collections projects only the primary one -- the others keep their full shape. An unrecognised field is a 400 `invalid_query` naming both the field and the collection it was resolved against, rather than being ignored.
        in: query
        name: fields
        required: false
        schema:
          pattern: ^[\s,]*[A-Za-z_][A-Za-z0-9_]*(\s*,[\s,]*[A-Za-z_][A-Za-z0-9_]*)*[\s,]*$
          type: string
      - description: Maximum number of rows to return in one page (at most 1000). A larger value, or a non-positive one, is rejected with 400 `invalid_query` -- so a short page means the result set is exhausted, not that the server quietly capped you (#9916). Omitted, every matching row is returned.
        in: query
        name: limit
        required: false
        schema:
          maximum: 1000
          minimum: 1
          type: integer
          x-serving-bound: true
      - description: Row offset to resume from — the numeric position of the first row to return, not an opaque token. Rows inserted since the previous page shift it, so prefer the keyset cursor where a tool offers one.
        in: query
        name: cursor
        required: false
        schema:
          minimum: 0
          type: integer
      - description: 'Opt into checked collection paging: send `start` at cursor 0, then echo the returned snapshot (REST meta.pagination.snapshot; MCP snapshot) with subsequent numeric cursors, or follow the returned Link URLs. A changed result or query returns REST 400 invalid_query with catalog_changed, or MCP catalog_restart_required; restart from cursor 0. This does not retain old rows or continue across mutations. Checked requests bypass page caches. At most 5000 matching rows, 16777216 canonical bytes and 64 nesting levels can be verified; narrow filters on catalog_budget_exceeded. Omit for legacy offset paging.'
        in: query
        name: page_snapshot
        required: false
        schema:
          pattern: ^(start|v1\.[0-9a-f]{64})$
          type: string
      - description: Field to sort by — the bare field name only (e.g. `sort=total_stake_alpha`). Pair with the separate `order` parameter to choose direction; a combined `field:desc` token is NOT supported.
        in: query
        name: sort
        required: false
        schema:
          enum:
          - candidate_api_count
          - candidate_api_kinds
          - curation_level
          - name
          - netuid
          - operational_kinds
          - operational_surface_count
          - priority_score
          - recommended_adapter_kind
          type: string
      - description: 'Sort direction for `sort`: `asc` or `desc` (default `desc`). This is a separate parameter from `sort` — e.g. `?sort=emission_share&order=desc`.'
        in: query
        name: order
        required: false
        schema:
          enum:
          - asc
          - desc
          type: string
      - description: Response format override. Use `csv` to download the transformed list as text/csv; `json` keeps the default response envelope.
        in: query
        name: format
        required: false
        schema:
          default: json
          enum:
          - json
          - csv
          type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                ReviewAdapterCandidatesArtifactResponse:
                  $ref: '#/components/examples/ReviewAdapterCandidatesArtifactResponse'
              schema:
                allOf:
                - $ref: '#/components/schemas/SuccessEnvelope'
                - properties:
                    data:
                      $ref: '#/components/schemas/ReviewAdapterCandidatesArtifact'
                  type: object
            text/csv:
              examples:
                CandidatesCsv:
                  $ref: '#/components/examples/CandidatesCsv'
              schema:
                type: string
          description: Canonical artifact wrapped in the Metagraphed API envelope, or the transformed list as text/csv when CSV is requested.
          headers:
            cache-control:
              $ref: '#/components/headers/CacheControl'
            etag:
              $ref: '#/components/headers/ETag'
            x-metagraph-contract-version:
              $ref: '#/components/headers/ContractVersion'
        '304':
          description: ETag matched and the cached response is still valid.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Query parameters were malformed or unsupported.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Artifact or API route was not found.
        '405':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: HTTP method is not supported.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unexpected backend error.
      tags:
      - Adapters
      x-metagraphed-mainnet-only: true
      x-metagraphed-networks:
      - mainnet
      summary: Review adapter candidates
      x-summary-source: derived
components:
  headers:
    ETag:
      schema:
        type: string
    ContractVersion:
      schema:
        type: string
    CacheControl:
      schema:
        type: string
  schemas:
    CountMap:
      additionalProperties:
        maximum: 9007199254740991
        minimum: 0
        type: integer
      propertyNames:
        type: string
      type: object
    ResponseMeta:
      additionalProperties: {}
      properties:
        artifact_path:
          type: string
        cache:
          $ref: '#/components/schemas/CacheProfile'
        catalog_paging:
          additionalProperties: false
          properties:
            reason:
              enum:
              - catalog_changed
              - catalog_budget_exceeded
              - catalog_unavailable
              type: string
          required:
          - reason
          type: object
        contract_version:
          type: string
        generated_at:
          description: Deterministic build content marker (epoch by default); not a wall clock. Use published_at for human-facing freshness.
          type:
          - string
          - 'null'
        observed_through:
          anyOf:
          - format: date-time
            type: string
          - type: 'null'
          description: How far the tier that answered this request has observed at all. A payload reporting no activity at or before this time is a measured absence; one whose subject is newer is outside coverage, not empty. Null when the horizon is unreadable.
        pagination:
          $ref: '#/components/schemas/PaginationMeta'
        published_at:
          anyOf:
          - format: date-time
            type: string
          - type: 'null'
          description: Real publish time from the KV latest pointer, distinct from generated_at. Null before the first publish or when the control KV is unbound.
        source:
          type: string
        stale_contract:
          additionalProperties: false
          description: 'Present ONLY when the served artifact was built under an older contract than the live one (serve-time drift, #1001) — the body may predate a schema change. Mirrored on the x-metagraph-stale-contract response header for monitoring.'
          properties:
            built_under:
              description: Contract version the served artifact was built under.
              type: string
            live:
              description: Current (live) contract version the Worker is running.
              type: string
          required:
          - built_under
          - live
          type: object
      required:
      - contract_version
      type: object
    ErrorEnvelope:
      additionalProperties: false
      properties:
        data:
          type: 'null'
        error:
          additionalProperties: false
          properties:
            code:
              type: string
            message:
              type: string
          required:
          - code
          - message
          type: object
        meta:
          $ref: '#/components/schemas/ResponseMeta'
        ok:
          const: false
          type: boolean
        schema_version:
          const: 1
          type: number
      required:
      - ok
      - schema_version
      - data
      - error
      - meta
      type: object
    CurationLevel:
      enum:
      - native
      - candidate-discovered
      - community-seeded
      - machine-verified
      - maintainer-reviewed
      - adapter-backed
      type: string
    ReviewAdapterCandidatesArtifact:
      additionalProperties: false
      properties:
        candidates:
          items:
            $ref: '#/components/schemas/ReviewAdapterCandidate'
          type: array
        contract_version:
          type: string
        generated_at:
          type: string
        notes:
          anyOf:
          - type: string
          - items:
              type: string
            type: array
          description: Public-safe notes; may be a string or a string list depending on the adapter.
        schema_version:
          const: 1
          type: number
        summary:
          additionalProperties: false
          properties:
            adapter_backed_count:
              maximum: 9007199254740991
              minimum: 0
              type: integer
            by_curation_level:
              $ref: '#/components/schemas/CountMap'
            by_recommended_adapter_kind:
              $ref: '#/components/schemas/CountMap'
            candidate_api_kind_counts:
              $ref: '#/components/schemas/CountMap'
            candidate_count:
              maximum: 9007199254740991
              minimum: 0
              type: integer
            data_artifact_backed_count:
              maximum: 9007199254740991
              minimum: 0
              type: integer
            openapi_backed_count:
              maximum: 9007199254740991
              minimum: 0
              type: integer
            operational_kind_counts:
              $ref: '#/components/schemas/CountMap'
            sse_backed_count:
              maximum: 9007199254740991
              minimum: 0
              type: integer
          required:
          - adapter_backed_count
          - candidate_api_kind_counts
          - candidate_count
          - by_curation_level
          - by_recommended_adapter_kind
          - data_artifact_backed_count
          - openapi_backed_count
          - operational_kind_counts
          - sse_backed_count
          type: object
      required:
      - generated_at
      - schema_version
      - candidates
      - summary
      type: object
    SurfaceKind:
      enum:
      - archive
      - dashboard
      - data-artifact
      - docs
      - example
      - openapi
      - repo-registry
      - sdk
      - source-repo
      - sse
      - subnet-api
      - subtensor-rpc
      - subtensor-wss
      - website
      type: string
    SuccessEnvelope:
      additionalProperties: false
      properties:
        data:
          additionalProperties: {}
          properties: {}
          type: object
        meta:
          $ref: '#/components/schemas/ResponseMeta'
        ok:
          const: true
          type: boolean
        schema_version:
          const: 1
          type: number
      required:
      - ok
      - schema_version
      - data
      - meta
      type: object
    AdapterArtifact:
      additionalProperties: false
      description: One adapter-backed public metrics snapshot. snapshot and extensions are opaque JSON -- their shape is adapter-specific. Mirrors GET /api/v1/adapters/{slug}'s data envelope.
      properties:
        contract_version:
          type: string
        extensions:
          additionalProperties:
            additionalProperties: {}
            properties: {}
            type: object
          description: Per-adapter extension metadata keyed by provider id; each value's shape is adapter-specific.
          propertyNames:
            type: string
          type: object
        generated_at:
          type: string
        netuid:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        notes:
          anyOf:
          - type: string
          - items:
              type: string
            type: array
          description: Public-safe notes; may be a string or a string list depending on the adapter.
        schema_version:
          const: 1
          type: number
        slug:
          type: string
        snapshot:
          anyOf:
          - additionalProperties: false
            properties:
              adapter_kind:
                type:
                - string
                - 'null'
              contract_version:
                type: string
              dimensions:
                additionalProperties:
                  additionalProperties: {}
                  properties:
                    captured_at:
                      type:
                      - string
                      - 'null'
                    notes:
                      type:
                      - string
                      - 'null'
                    source_url:
                      type:
                      - string
                      - 'null'
                    status:
                      description: '`docs-only` means the dimension is documented but has no verified unauthenticated API surface -- a gap, not a capture failure.'
                      type: string
                  type: object
                propertyNames:
                  type: string
                type: object
              excluded_dimensions:
                items:
                  type: string
                type: array
              generated_at:
                type:
                - string
                - 'null'
              netuid:
                maximum: 9007199254740991
                minimum: 0
                type: integer
              notes:
                anyOf:
                - anyOf:
                  - type: string
                  - items:
                      type: string
                    type: array
                - type: 'null'
              schema_version:
                maximum: 9007199254740991
                minimum: -9007199254740991
                type: integer
              slug:
                type: string
              source:
                type:
                - string
                - 'null'
              status:
                type:
                - string
                - 'null'
            type: object
          - type: 'null'
          description: Captured adapter metrics payload; shape is adapter-specific.
        subnet:
          type: string
      required:
      - generated_at
      - schema_version
      - netuid
      - subnet
      - slug
      - extensions
      type: object
    PaginationMeta:
      additionalProperties: false
      properties:
        collection:
          type: string
        cursor:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        limit:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        next_cursor:
          anyOf:
          - maximum: 9007199254740991
            minimum: 0
            type: integer
          - type: 'null'
        order:
          enum:
          - asc
          - desc
          type: string
        returned:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        snapshot:
          description: Present only for page_snapshot paging. Echo as page_snapshot on subsequent pages; a changed collection or query requires a restart.
          pattern: ^v1\.[0-9a-f]{64}$
          type: string
        sort:
          type:
          - string
          - 'null'
        total:
          maximum: 9007199254740991
          minimum: 0
          type: integer
      required:
      - collection
      - cursor
      - limit
      - next_cursor
      - returned
      - total
      type: object
    ReviewAdapterCandidate:
      additionalProperties: false
      properties:
        candidate_api_count:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        candidate_api_ids:
          items:
            type: string
          type: array
        candidate_api_kinds:
          items:
            $ref: '#/components/schemas/SurfaceKind'
          type: array
        curation_level:
          $ref: '#/components/schemas/CurationLevel'
        name:
          type: string
        netuid:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        operational_kinds:
          items:
            $ref: '#/components/schemas/SurfaceKind'
          type: array
        operational_surface_count:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        operational_surface_ids:
          items:
            type: string
          type: array
        priority_score:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        reason_codes:
          items:
            type: string
          type: array
        recommended_adapter_kind:
          enum:
          - custom-adapter
          - data-artifact-adapter
          - generic-openapi-or-custom
          - stream-adapter
          type: string
        slug:
          type: string
        suggested_next_action:
          type: string
      required:
      - candidate_api_count
      - candidate_api_ids
      - candidate_api_kinds
      - curation_level
      - name
      - netuid
      - operational_kinds
      - operational_surface_count
      - operational_surface_ids
      - priority_score
      - reason_codes
      - recommended_adapter_kind
      - suggested_next_action
      - slug
      type: object
    CacheProfile:
      enum:
      - short
      - standard
      - static
      type: string
  examples:
    ReviewAdapterCandidatesArtifactResponse:
      value:
        data:
          candidates:
          - candidate_api_count: 1
            candidate_api_ids:
            - example
            candidate_api_kinds:
            - archive
            curation_level: native
            name: Example Subnet
            netuid: 7
            operational_kinds:
            - archive
            operational_surface_count: 1
            operational_surface_ids:
            - example
            priority_score: 100
            reason_codes:
            - example
            recommended_adapter_kind: custom-adapter
            slug: example-subnet
            suggested_next_action: example
          contract_version: 2026-06-29.1
          generated_at: '2026-06-01T00:00:00.000Z'
          notes: Example description.
          schema_version: 1
          summary:
            adapter_backed_count: 1
            by_curation_level: {}
            by_recommended_adapter_kind: {}
            candidate_api_kind_counts: {}
            candidate_count: 1
            data_artifact_backed_count: 1
            openapi_backed_count: 1
            operational_kind_counts: {}
            sse_backed_count: 1
        meta:
          artifact_path: example
          cache: short
          catalog_paging:
            reason: catalog_changed
          contract_version: 2026-06-29.1
          generated_at: '2026-06-01T00:00:00.000Z'
          observed_through: '2026-06-01T00:00:00.000Z'
          pagination:
            collection: example
            cursor: 1
            limit: 1
            next_cursor: 1
            order: asc
            returned: 1
            snapshot: v1.a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1
            sort: example
            total: 1
          published_at: '2026-06-01T00:00:00.000Z'
          source: live-cron-prober
          stale_contract:
            built_under: example
            live: example
        ok: true
        schema_version: 1
    AdapterArtifactResponse:
      value:
        data:
          contract_version: 2026-06-29.1
          extensions:
            example: {}
          generated_at: '2026-06-01T00:00:00.000Z'
          netuid: 7
          notes: Example description.
          schema_version: 1
          slug: example-subnet
          snapshot:
            adapter_kind: example
            contract_version: 2026-06-29.1
            dimensions: {}
            excluded_dimensions:
            - example
            generated_at: '2026-06-01T00:00:00.000Z'
            netuid: 7
            notes: Example description.
            schema_version: 1
            slug: example-subnet
            source: live-cron-prober
            status: ok
          subnet: example
        meta:
          artifact_path: example
          cache: short
          catalog_paging:
            reason: catalog_changed
          contract_version: 2026-06-29.1
          generated_at: '2026-06-01T00:00:00.000Z'
          observed_through: '2026-06-01T00:00:00.000Z'
          pagination:
            collection: example
            cursor: 1
            limit: 1
            next_cursor: 1
            order: asc
            returned: 1
            snapshot: v1.a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1
            sort: example
            total: 1
          published_at: '2026-06-01T00:00:00.000Z'
          source: live-cron-prober
          stale_contract:
            built_under: example
            live: example
        ok: true
        schema_version: 1
    CandidatesCsv:
      value: 'netuid,name

        7,Allways'
x-metagraphed:
  canonical_artifact_base_path: /metagraph
  contract_version: 2026-07-03.2
  generated_at: '1970-01-01T00:00:00.000Z'
  notes: OpenAPI describes Worker response envelopes and canonical artifact payloads. Raw /metagraph JSON remains the reviewed source contract.
  schema_version: 1