Catalog
Find the right service for a task by capability or free text. Free.
Tools
catalog_find_services_by_capabilityRanks registered services/tools by relevance to a free-text queryFreecatalog_searchRanks registered services/tools by relevance to a free-text query (public GET)Freecatalog_categoryLists every registration in one category, paginated (public GET)Free
Try a real call right now
What your agent sends
{
"query": "check a wallet address"
}Plain curl stops at the 402 challenge: add an x402 client (Node.js or Python tabs) to pay automatically.
# Plain curl stops at the 402 challenge: add an x402 client (Node.js or Python tabs) to pay automatically.
curl -X POST 'https://api.17711.xyz/registry/catalog/v1/catalog/find_services_by_capability' \
-H 'content-type: application/json' \
-d '{"query":"check a wallet address"}'The x402 SDK handles the 402, the signature and the retry for you: one call, one result.
// npm install @x402/fetch @x402/evm viem
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));
const fetchWithPayment = wrapFetchWithPayment(fetch, client);
const res = await fetchWithPayment("https://api.17711.xyz/registry/catalog/v1/catalog/find_services_by_capability", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"query":"check a wallet address"}),
});
console.log(await res.json());The x402 SDK handles the 402, the signature and the retry for you: one call, one result.
# pip install "x402[httpx]" eth_account
import asyncio, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
async def main() -> None:
client = x402Client()
account = Account.from_key(os.environ["EVM_PRIVATE_KEY"])
register_exact_evm_client(client, EthAccountSigner(account))
async with x402HttpxClient(client) as http:
response = await http.post("https://api.17711.xyz/registry/catalog/v1/catalog/find_services_by_capability", json={"query":"check a wallet address"})
await response.aread()
print(response.json())
asyncio.run(main())The x402 Java reference client from the official repository. There is no published Java SDK yet: you supply the signature (for example with web3j).
// Reference client from github.com/coinbase/x402 (java/): build it with `mvn clean install`, then
// <dependency><groupId>org.x402</groupId><artifactId>x402</artifactId><version>1.0.0-SNAPSHOT</version></dependency>
import org.x402.client.X402HttpClient;
import org.x402.crypto.CryptoSigner;
import java.math.BigInteger;
import java.net.URI;
import java.net.http.HttpResponse;
import java.util.Map;
public class Call {
public static void main(String[] args) throws Exception {
// You provide the EIP-3009 signature (for example with web3j) from your private key (env EVM_PRIVATE_KEY).
CryptoSigner signer = new CryptoSigner() {
@Override
public String sign(Map<String, Object> payload) {
return signWithWallet(System.getenv("EVM_PRIVATE_KEY"), payload);
}
};
X402HttpClient client = new X402HttpClient(signer);
BigInteger amount = BigInteger.valueOf(0); // in USDC (6 decimals)
String usdcOnBase = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
String payTo = "<the seller address from the 402 challenge>";
HttpResponse<String> response = client.get(URI.create("https://api.17711.xyz/registry/catalog/v1/catalog/find_services_by_capability"), amount, usdcOnBase, payTo);
System.out.println(response.body());
}
}The x402 SDK handles the 402, the signature and the retry for you: one call, one result.
// go get github.com/x402-foundation/x402/go/v2
package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"time"
"strings"
x402 "github.com/x402-foundation/x402/go/v2"
x402http "github.com/x402-foundation/x402/go/v2/http"
evm "github.com/x402-foundation/x402/go/v2/mechanisms/evm/exact/client"
evmsigners "github.com/x402-foundation/x402/go/v2/signers/evm"
)
func main() {
signer, _ := evmsigners.NewClientSignerFromPrivateKey(os.Getenv("EVM_PRIVATE_KEY"))
client := x402.Newx402Client().Register("eip155:*", evm.NewExactEvmScheme(signer))
httpClient := x402http.WrapHTTPClientWithPayment(http.DefaultClient, x402http.Newx402HTTPClient(client))
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
req, _ := http.NewRequestWithContext(ctx, "POST", "https://api.17711.xyz/registry/catalog/v1/catalog/find_services_by_capability", strings.NewReader(`{"query":"check a wallet address"}`))
req.Header.Set("content-type", "application/json")
res, err := httpClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res.StatusCode, string(body))
}The x402 SDK handles the 402, the signature and the retry for you: one call, one result.
// Cargo.toml: x402-reqwest = "0.6", x402-chain-eip155, alloy-signer-local, reqwest, tokio (features = ["full"])
use alloy_signer_local::PrivateKeySigner;
use reqwest::Client;
use std::sync::Arc;
use x402_chain_eip155::V2Eip155ExactClient;
use x402_reqwest::{ReqwestWithPayments, ReqwestWithPaymentsBuild, X402Client};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let signer: Arc<PrivateKeySigner> = Arc::new(std::env::var("EVM_PRIVATE_KEY")?.parse()?);
let x402 = X402Client::new().register(V2Eip155ExactClient::new(signer));
let http = Client::new().with_payments(x402).build();
let res = http
.post("https://api.17711.xyz/registry/catalog/v1/catalog/find_services_by_capability")
.header("content-type", "application/json")
.body(r#"{"query":"check a wallet address"}"#)
.send()
.await?;
println!("{} {}", res.status(), res.text().await?);
Ok(())
}What your agent's x402 client does behind the scenes (technical, illustrative).
- 1
Call the endpoint
→POST https://api.17711.xyz/registry/catalog/v1/catalog/find_services_by_capability content-type: application/json { "query": "check a wallet address" }←402 Payment RequiredHTTP/1.1 402 Payment Required PAYMENT-REQUIRED: <base64> { "x402Version": 2, "accepts": [ { "scheme": "exact", "network": "eip155:8453", "amount": "0", "asset": "USDC", "payTo": "0x…" } ] } - 2
Sign the payment (local)
Your wallet signs a USDC authorisation locally. Nothing leaves your machine except the signature.
→wallet.sign(transferWithAuthorization, to: payTo, value: 0 ( USDC), network: base)←signaturePAYMENT-SIGNATURE: <signed authorisation> - 3
Retry with the signature
→POST https://api.17711.xyz/registry/catalog/v1/catalog/find_services_by_capability PAYMENT-SIGNATURE: <signed authorisation> content-type: application/json { "query": "check a wallet address" }←200 OKHTTP/1.1 200 OK PAYMENT-RESPONSE: <settlement receipt> { … the tool's JSON answer … }
The x402 SDK does steps 2 and 3 for you.
Try it live
A real call to the API from your browser, using the free calls included with this service.
OpenAPI definition
OpenAPI definition · catalog_find_services_by_capability
{
"operationId": "catalog_find_services_by_capability",
"summary": "Ranks registered services/tools by relevance to a free-text query",
"description": "Finds which registered service/tool can handle a given task, ranked by semantic similarity between a free-text `query` and every physically-registered instance's own live tool descriptions (read from each instance's own `/openapi.json`) -- falls back to keyword overlap when no local embedding model is available. This is the read side of fleet-wide service discovery; the instance list itself is owned by `service-registry` (see `service_registry_register_instance`).",
"security": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"query": {
"type": "string"
},
"top_k": {
"default": 5,
"type": "integer",
"minimum": 0
}
},
"required": [
"query"
]
},
"example": {
"query": "string",
"top_k": 0
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"service_name": {
"type": "string"
},
"tool_name": {
"type": "string"
},
"description": {
"type": "string"
},
"route": {
"type": "string"
},
"method": {
"type": "string"
},
"host": {
"type": "string"
},
"port": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"score": {
"type": "number"
},
"price_usdc": {
"type": "string"
}
},
"required": [
"service_name",
"tool_name",
"description",
"route",
"method",
"host",
"port",
"score",
"price_usdc"
]
}
}
},
"required": [
"results"
]
},
"example": {
"results": [
{
"service_name": "string",
"tool_name": "string",
"description": "string",
"route": "string",
"method": "string",
"host": "string",
"port": 0,
"score": 0,
"price_usdc": "string"
}
]
}
}
}
},
"default": {
"description": "Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.",
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "ErrorEnvelope"
}
}
}
}
}
}OpenAPI definition · catalog_search
{
"operationId": "catalog_search",
"summary": "Ranks registered services/tools by relevance to a free-text query (public GET)",
"description": "Public, curl/browser-friendly sibling of `catalog_find_services_by_capability`: same semantic-similarity ranking (falling back to keyword overlap when no local embedding model is available), reachable via a plain `?q=` query string instead of a JSON body, with an optional `category` filter. Not exposed as an MCP tool -- agents should use `catalog_find_services_by_capability` instead, to avoid two near-identical discovery tools.",
"security": [],
"parameters": [
{
"name": "category",
"in": "query",
"required": false,
"schema": {
"type": [
"string",
"null"
]
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"default": 5,
"type": "integer",
"minimum": 0
}
},
{
"name": "q",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"service_name": {
"type": "string"
},
"category": {
"type": "string"
},
"tool_name": {
"type": "string"
},
"description": {
"type": "string"
},
"route": {
"type": "string"
},
"method": {
"type": "string"
},
"host": {
"type": "string"
},
"port": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"score": {
"type": "number"
},
"price_usdc": {
"type": "string"
}
},
"required": [
"service_name",
"category",
"tool_name",
"description",
"route",
"method",
"host",
"port",
"score",
"price_usdc"
]
}
}
},
"required": [
"results"
]
},
"example": {
"results": [
{
"service_name": "string",
"category": "string",
"tool_name": "string",
"description": "string",
"route": "string",
"method": "string",
"host": "string",
"port": 0,
"score": 0,
"price_usdc": "string"
}
]
}
}
}
},
"default": {
"description": "Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.",
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "ErrorEnvelope"
}
}
}
}
}
}OpenAPI definition · catalog_category
{
"operationId": "catalog_category",
"summary": "Lists every registration in one category, paginated (public GET)",
"description": "Browse-by-category: every physically-registered instance tagged with the exact category `q`, unranked, paginated via `limit`/`offset`. Complements `catalog_search`'s ranked free-text search -- useful to browse the whole catalog a category at a time as it grows, without ever needing to list everything at once. Only reads the raw registration list (via `service-registry`'s own internal tool); does not poll each instance's own tool catalog, so it stays cheap regardless of registry size.",
"security": [],
"parameters": [
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"default": 50,
"type": "integer",
"minimum": 0
}
},
{
"name": "offset",
"in": "query",
"required": false,
"schema": {
"default": 0,
"type": "integer",
"minimum": 0
}
},
{
"name": "q",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"entries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"host": {
"type": "string"
},
"port": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"category": {
"type": "string"
},
"description": {
"type": "string"
},
"registered_at": {
"type": "integer"
}
},
"required": [
"name",
"host",
"port",
"category",
"description",
"registered_at"
]
}
},
"total_count": {
"type": "integer",
"minimum": 0
},
"limit": {
"type": "integer",
"minimum": 0
},
"offset": {
"type": "integer",
"minimum": 0
}
},
"required": [
"entries",
"total_count",
"limit",
"offset"
]
},
"example": {
"entries": [
{
"name": "string",
"host": "string",
"port": 0,
"category": "string",
"description": "string",
"registered_at": 0
}
],
"total_count": 0,
"limit": 0,
"offset": 0
}
}
}
},
"default": {
"description": "Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.",
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "ErrorEnvelope"
}
}
}
}
}
}