Nibgate Reputation API

Onchain reputation and leaderboards

GitHub OpenAPI

Operations 4

GET /hub/reputation/leaderboards Reputation leaderboards #
POST /hub/reputation/ratings/prepare Prepare an onchain rating #
GET /hub/reputation/ratings/stats Read a content's onchain rating stats #
POST /hub/reputation/ratings/index Index an onchain rating #

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/nibgate-xyz:nibgate-xyz-reputation-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

nibgate-xyz-reputation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nibgate Hub Reputation API
  version: 0.2.15
  description: 'Public API for the Nibgate hub: verified content discovery, paid unlocks over x402 (Circle Gateway on Arc (chain ID 5042)), Nib Tips, public ledger, reputation, and platform stats. Nibgate is an open protocol for paid content on creator-owned domains. Agent guide: https://nibgate.xyz/discovery.md'
  contact:
    name: Nibgate
    url: https://nibgate.xyz
servers:
- url: https://api.nibgate.xyz
  description: Production hub API
tags:
- name: Reputation
  description: Onchain reputation and leaderboards
paths:
  /hub/reputation/leaderboards:
    get:
      tags:
      - Reputation
      summary: Reputation leaderboards
      description: Ranked creators, sites, or content by reputation score, unlocks, views, and revenue.
      parameters:
      - name: type
        in: query
        schema:
          type: string
          enum:
          - creators
          - sites
          - content
          default: creators
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 20
      - name: skip
        in: query
        schema:
          type: integer
          minimum: 0
          default: 0
      responses:
        '200':
          description: Leaderboard items
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  type:
                    type: string
                  items:
                    type: array
                    items:
                      type: object
                  total:
                    type: integer
                  limit:
                    type: integer
                  skip:
                    type: integer
      operationId: getHubReputationLeaderboards
      x-operation-id-source: derived
  /hub/reputation/ratings/prepare:
    post:
      tags:
      - Reputation
      summary: Prepare an onchain rating
      description: Returns the signing message, content hash, and reputation contract details so a wallet can submit an onchain rating. Preparation does not verify purchase eligibility; indexing checks the transaction and applicable unlock evidence.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - contentId
              - walletAddress
              - ratingValue
              properties:
                contentId:
                  type: string
                walletAddress:
                  type: string
                ratingValue:
                  type: integer
                  minimum: 1
                  maximum: 50
                paymentId:
                  type: string
                pageOrigin:
                  type: string
      responses:
        '200':
          description: Rating preparation payload
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  ratingValue:
                    type: integer
                  contentHash:
                    type: string
                  contractAddress:
                    type: string
                  chainId:
                    type: string
                  chainName:
                    type: string
                  rpcUrl:
                    type: string
      operationId: postHubReputationRatingsPrepare
      x-operation-id-source: derived
  /hub/reputation/ratings/stats:
    get:
      tags:
      - Reputation
      summary: Read a content's onchain rating stats
      description: 'Hub-authoritative rating read: resolves the content (id or externalId) and returns its indexed on-chain-proved ratings (live contract read is the fallback for not-yet-indexed ratings). Satellite stacks must use this instead of recomputing the content hash locally. Returns average on the 1-5 scale.'
      parameters:
      - name: contentId
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Onchain rating stats
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  contentId:
                    type: string
                  externalId:
                    type: string
                    nullable: true
                  contentHash:
                    type: string
                  average:
                    type: number
                  count:
                    type: integer
      operationId: getHubReputationRatingsStats
      x-operation-id-source: derived
  /hub/reputation/ratings/index:
    post:
      tags:
      - Reputation
      summary: Index an onchain rating
      description: Registers an onchain rating transaction for a content id after the wallet has submitted the rating on the reputation contract.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - contentId
              - txHash
              properties:
                contentId:
                  type: string
                txHash:
                  type: string
                walletAddress:
                  type: string
                contentHash:
                  type: string
                ratingValue:
                  type: integer
      responses:
        '200':
          description: Indexing result
          content:
            application/json:
              schema:
                type: object
      operationId: postHubReputationRatingsIndex
      x-operation-id-source: derived
components:
  securitySchemes:
    x402:
      type: apiKey
      in: header
      name: Payment
      description: x402 payment challenge-response header. Include the header on retry after settlement to unlock paid content.
x-discovery:
  ownershipProofs:
  - '0x7514Ff68BE453931ce1a8e752140E209Dd125A'