{
  "x402Version": 2,
  "id": 35171,
  "slug": "35171",
  "resource": "https://api.marketintelligenceapi.com/api/v1/analytics/percentile",
  "description": "Use to rank a value against a dataset ($0.01), e.g. today's volume versus the last 90 days: send value and values; get its 0-100 percentile rank with counts below, equal and above. Methods LINEAR (default, interpolated), MIDRANK and AT_OR_BELOW. Deterministic, no data fetched.",
  "type": "http",
  "serviceName": "Market Intelligence API",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "9CAhY1vdaZfrfoto3KLQtRAo1dVWxNn5xAfmc2XbZVsf",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:480",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
      "amount": "9000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:480",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x1C60ba0A0eD1019e8Eb035E6daF4155A5cE2380B",
      "amount": "9000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:84532",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "additionalProperties": true,
    "properties": {
      "example": {
        "description": "Example JSON response returned by this endpoint"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "method": "LINEAR",
            "value": 95,
            "values": [
              10,
              20,
              30,
              40,
              50,
              60,
              70,
              80,
              90,
              100
            ]
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "countAbove": 1,
            "countBelow": 9,
            "countEqual": 0,
            "max": 100,
            "method": "LINEAR",
            "min": 10,
            "observations": 10,
            "operation": "percentile",
            "percentile": 94.444444,
            "result": 94.444444,
            "value": 95
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "method": {
                    "default": "LINEAR",
                    "enum": [
                      "LINEAR",
                      "MIDRANK",
                      "AT_OR_BELOW"
                    ],
                    "type": "string"
                  },
                  "value": {
                    "description": "The value to rank",
                    "type": "number"
                  },
                  "values": {
                    "items": {
                      "description": "Reference value",
                      "type": "number"
                    },
                    "maxItems": 10000,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "value",
                  "values"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "additionalProperties": true,
            "properties": {
              "example": {
                "description": "Example JSON response returned by this endpoint"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input",
          "output"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "statistics",
    "percentile",
    "ranking",
    "bazaar"
  ],
  "sourceHost": "api.marketintelligenceapi.com",
  "lastUpdated": "2026-10-08T06:08:45.984Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:08:45.753Z"
  },
  "metadata": {
    "serviceName": "Market Intelligence API",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "method": "LINEAR",
              "value": 95,
              "values": [
                10,
                20,
                30,
                40,
                50,
                60,
                70,
                80,
                90,
                100
              ]
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "countAbove": 1,
              "countBelow": 9,
              "countEqual": 0,
              "max": 100,
              "method": "LINEAR",
              "min": 10,
              "observations": 10,
              "operation": "percentile",
              "percentile": 94.444444,
              "result": 94.444444,
              "value": 95
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "method": {
                      "default": "LINEAR",
                      "enum": [
                        "LINEAR",
                        "MIDRANK",
                        "AT_OR_BELOW"
                      ],
                      "type": "string"
                    },
                    "value": {
                      "description": "The value to rank",
                      "type": "number"
                    },
                    "values": {
                      "items": {
                        "description": "Reference value",
                        "type": "number"
                      },
                      "maxItems": 10000,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "value",
                    "values"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "additionalProperties": true,
              "properties": {
                "example": {
                  "description": "Example JSON response returned by this endpoint"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input",
            "output"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.marketintelligenceapi.com",
    "manifest_name": "api.marketintelligenceapi.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": null,
    "type": "string"
  }
}