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
xinfos-x402-backend-production.up.railway.app

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 base
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 \
  'http://xinfos-x402-backend-production.up.railway.app/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 base
Invoke Endpoint POST /entrypoints/search/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'http://xinfos-x402-backend-production.up.railway.app/entrypoints/search/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "query": "string"
      }
    }
  '

twitter

Invoke

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

Pricing Invoke: 0.01
Network base
Invoke Endpoint POST /entrypoints/twitter/invoke

No input schema provided. Expect bare JSON payload.

Invoke with curl
curl -s -X POST \
  'http://xinfos-x402-backend-production.up.railway.app/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 base
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 \
  'http://xinfos-x402-backend-production.up.railway.app/entrypoints/tokens/trendings/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {}
    }
  '

ekubo/positions

Invoke

Get positions from Ekubo

Pricing Invoke: 0.01
Network base
Invoke Endpoint POST /entrypoints/ekubo/positions/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "starknetAddress": {
      "type": "string"
    }
  },
  "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 \
  'http://xinfos-x402-backend-production.up.railway.app/entrypoints/ekubo/positions/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "starknetAddress": "string"
      }
    }
  '

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.PRIVATE_KEY as Hex | string;
const baseURL = process.env.RESOURCE_SERVER_URL as string; // e.g. https://example.com
const endpointPath = process.env.ENDPOINT_PATH as string; // e.g. /weather
const url = `${baseURL}${endpointPath}`; // e.g. https://example.com/weather

if (!baseURL || !privateKey || !endpointPath) {
  console.error("Missing required environment variables");
  process.exit(1);
}

/**
 * Demonstrates paying for a protected resource using x402-fetch.
 *
 * Required environment variables:
 * - PRIVATE_KEY            Signer private key
 * - RESOURCE_SERVER_URL    Base URL of the agent
 * - 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…