xInfos AI Agent

News Intelligence, Data Analysis, InfoFI. Get news from the news xInfos API with AI analysis and scraping of various sources

  • 5 Entrypoints
  • v0.0.1 Version
  • Enabled Payments
api-x402.xinfos.xyz

Entrypoints

Explore the capabilities exposed by this agent. Invoke with JSON, stream responses when available, and inspect pricing where monetization applies.

news

Invoke

Get latest news from the news xInfos API with AI analysis and scraping of various sources

Pricing Invoke: 0.01
Network eip155:8453
Invoke Endpoint POST /entrypoints/news/invoke

No input schema provided. Expect bare JSON payload.

Output Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "content",
          "source"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "success",
    "data"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://api-x402.xinfos.xyz/entrypoints/news/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {}
    }
  '

search

Invoke

Get contents on internet from the news xInfos API with AI analysis and scraping of various sources

Pricing Invoke: 0.05
Network eip155:8453
Invoke Endpoint POST /entrypoints/search/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Query to search for contents on internet"
    }
  },
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://api-x402.xinfos.xyz/entrypoints/search/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "query": "<Query to search for contents on internet>"
      }
    }
  '

twitter

Invoke

Get latest and search tweets from Twitter with AI analysis and scraping of various sources

Pricing Invoke: 0.01
Network eip155:8453
Invoke Endpoint POST /entrypoints/twitter/invoke

No input schema provided. Expect bare JSON payload.

Invoke with curl
curl -s -X POST \
  'https://api-x402.xinfos.xyz/entrypoints/twitter/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {}
    }
  '

tokens/trendings

Invoke

Get trending tokens and Categories market data from the Coingecko API

Pricing Invoke: 0.01
Network eip155:8453
Invoke Endpoint POST /entrypoints/tokens/trendings/invoke

No input schema provided. Expect bare JSON payload.

Output Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "trendingCoins": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "symbol": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "imageUrl": {
                "type": "string"
              },
              "price": {
                "type": "number"
              },
              "price_change_percentage_24h": {
                "type": "number"
              },
              "market_cap": {
                "type": "number"
              },
              "total_volume": {
                "type": "number"
              },
              "market_cap_btc": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "name",
              "symbol",
              "description",
              "imageUrl",
              "price",
              "price_change_percentage_24h",
              "market_cap",
              "total_volume",
              "market_cap_btc"
            ],
            "additionalProperties": false
          }
        },
        "trendingCategories": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "market_cap": {
                "type": "number"
              },
              "total_volume": {
                "type": "number"
              },
              "market_cap_btc": {
                "type": "number"
              },
              "total_volume_btc": {
                "type": "number"
              },
              "market_cap_change_percentage_24h": {
                "type": "number"
              },
              "sparkline": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "coins_count": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "market_cap",
              "total_volume",
              "market_cap_btc",
              "total_volume_btc",
              "market_cap_change_percentage_24h",
              "sparkline",
              "slug",
              "coins_count"
            ],
            "additionalProperties": false
          }
        },
        "count": {
          "type": "number"
        }
      },
      "required": [
        "trendingCoins",
        "trendingCategories",
        "count"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "success",
    "data"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://api-x402.xinfos.xyz/entrypoints/tokens/trendings/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {}
    }
  '

ekubo/positions

Invoke

Get positions from Ekubo

Pricing Invoke: 0.01
Network eip155:8453
Invoke Endpoint POST /entrypoints/ekubo/positions/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "starknetAddress": {
      "type": "string",
      "description": "Starknet address to get positions from"
    }
  },
  "required": [
    "starknetAddress"
  ],
  "additionalProperties": false
}
Output Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "price": {
            "type": "number"
          },
          "total": {
            "type": "number"
          },
          "pool_key": {
            "type": "string"
          },
          "bounds": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "lower": {
                  "type": "number"
                },
                "upper": {
                  "type": "number"
                }
              },
              "required": [
                "lower",
                "upper"
              ],
              "additionalProperties": false
            }
          },
          "token_info": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          "liquidity": {
            "type": "string"
          },
          "amount0": {
            "type": "string"
          },
          "amount1": {
            "type": "string"
          },
          "fees0": {
            "type": "string"
          },
          "fees1": {
            "type": "string"
          },
          "lastUpdated": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "amount",
          "price",
          "total",
          "pool_key",
          "bounds",
          "token_info",
          "liquidity",
          "amount0",
          "amount1",
          "fees0",
          "fees1",
          "lastUpdated"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "success",
    "data"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://api-x402.xinfos.xyz/entrypoints/ekubo/positions/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "starknetAddress": "<Starknet address to get positions from>"
      }
    }
  '

Client Example: x402-fetch

Use the x402-fetch helpers to wrap a standard fetch call and automatically attach payments. This script loads configuration from .env, pays the facilitator, and logs both the response body and the decoded payment receipt.

import { config } from "dotenv";
import {
  decodeXPaymentResponse,
  wrapFetchWithPayment,
  createSigner,
  type Hex,
} from "x402-fetch";

config();

const privateKey = process.env.AGENT_WALLET_PRIVATE_KEY as Hex | string;
const agentUrl = process.env.AGENT_URL as string; // e.g. https://agent.example.com
const endpointPath = process.env.ENDPOINT_PATH as string; // e.g. /entrypoints/echo/invoke
const url = `${agentUrl}${endpointPath}`;

if (!agentUrl || !privateKey || !endpointPath) {
  console.error("Missing required environment variables");
  console.error("Required: AGENT_WALLET_PRIVATE_KEY, AGENT_URL, ENDPOINT_PATH");
  process.exit(1);
}

/**
 * Demonstrates paying for a protected resource using x402-fetch.
 *
 * Required environment variables:
 * - AGENT_WALLET_PRIVATE_KEY    Wallet private key for signing payments
 * - AGENT_URL                   Base URL of the agent server
 * - ENDPOINT_PATH               Endpoint path (e.g. /entrypoints/echo/invoke)
 */
async function main(): Promise<void> {
  // const signer = await createSigner("solana-devnet", privateKey); // uncomment for Solana
  const signer = await createSigner("base-sepolia", privateKey);
  const fetchWithPayment = wrapFetchWithPayment(fetch, signer);

  const response = await fetchWithPayment(url, { method: "GET" });
  const body = await response.json();
  console.log(body);

  const paymentResponse = decodeXPaymentResponse(
    response.headers.get("x-payment-response")!
  );
  console.log(paymentResponse);
}

main().catch((error) => {
  console.error(error?.response?.data?.error ?? error);
  process.exit(1);
});

Manifest

Loading…
Fetching agent card…