Skip to main content

Overview

The Syra API Playground is an interactive web interface for testing and exploring the Syra API. Connect your Solana wallet, build requests, handle x402 payments, and inspect responses—all from your browser. Playground URL: https://playground.syraa.fun

Features

  • Interactive Request Builder — Select endpoints, configure parameters, and send requests
  • x402 Payment Handling — Connect Solana wallet for pay-per-request flows
  • Response Inspector — View JSON responses with syntax highlighting
  • Request History — Track your API calls and responses
  • Quick Examples — Pre-configured requests for common use cases
  • Authentication Testing — Test both paid and dev/free endpoints

Supported Endpoints

The playground provides access to all Syra API endpoints:
  • Signals — AI-generated trading analysis (/signal)
  • Analytics Summary — Full analytics overview (/analytics/summary)
  • News — Latest crypto news by ticker (/news)
  • Events — Upcoming crypto events (/event)
  • Sentiment — Market sentiment analysis (/sentiment)
  • Trending Headlines — Hot crypto topics (/trending-headline)
  • Deep Research — AI-powered research (/research)
  • Web Browse — Extract info from URLs (/browse)
  • X Search — Twitter/X trend analysis (/x-search)
  • EXA Search — AI web search (/exa-search)
  • Token Report — Rugcheck analysis (/token-report)
  • Token Risk Alerts — High-risk token scanner (/token-risk/alerts)
  • Token God Mode — Nansen deep research (/token-god-mode)
  • Token Statistics — Rugcheck stats (/token-statistic)
  • Smart Money — Wallet tracking (/smart-money)
  • DEXScreener — DEX data (/dexscreener)
  • Jupiter Trending — Trending on Jupiter (/trending-jupiter)
  • Bubblemaps — Holder maps (/bubblemaps/maps)
  • Fastest Holder Growth — Growth rate analysis
  • Smart Money Mentions — KOL tracking
  • Pre-CEX Accumulation — Early accumulation signals
  • Strong Narrative + Low Mcap — Narrative analysis
  • Experienced Devs — Developer reputation
  • Whale Behavior — Unusual whale activity
  • Trending on X not DEX — Social vs. trading volume
  • Organic Traction — Grassroots growth
  • Surviving Dumps — Resilience metrics
  • Correlation — Asset correlation (/binance/correlation)
  • Correlation Matrix — Full matrix (/binance/correlation-matrix)
  • Health Check — API status (/check-status)
  • Sundown Digest — Daily roundup (/sundown-digest)
  • Crypto KOL — Influencer insights (/crypto-kol)
  • Hidden Gems — Emerging projects (/gems)

Quick Start

1

Open the Playground

2

Connect Wallet (Optional)

For endpoints requiring x402 payment:
  1. Click Connect Wallet
  2. Select your Solana wallet (Phantom, Solflare, etc.)
  3. Approve the connection
Free/dev endpoints don’t require wallet connection during development.
3

Build Your Request

Use the Request Builder:
  1. Select an endpoint from the dropdown
  2. Configure parameters (ticker, token, address, etc.)
  3. Review the generated request
4

Send Request

Click Send Request:
  • Free endpoints: Returns data immediately
  • Paid endpoints: Prompts for x402 payment, then returns data
5

Inspect Response

View the response in the inspector:
  • JSON syntax highlighting
  • Status code and headers
  • Response time metrics

x402 Payment Flow

For endpoints gated by x402 payment:
1

Request Initiated

You send a request to a paid endpoint (e.g., /token-report)
2

Payment Required

API returns 402 Payment Required with payment details:
{
  "statusCode": 402,
  "message": "Payment Required",
  "paymentDetails": {
    "amount": "0.001",
    "currency": "SOL",
    "recipient": "<wallet_address>"
  }
}
3

Wallet Confirmation

The playground prompts you to approve the payment in your wallet
4

Payment Sent

Transaction is broadcast to Solana blockchain
5

Verification

API verifies payment signature and on-chain transaction
6

Data Delivered

API returns requested data with 200 OK status

Request Builder

Endpoint Selection

Choose from categorized endpoints:
  • Quick Select — Common operations
  • Full List — All available endpoints
  • Examples — Pre-configured use cases

Parameter Configuration

GET /news?ticker=BTC
Parameters:
  • ticker (optional): BTC, ETH, SOL, or general (default)

Response Inspector

The response viewer provides:

JSON Formatting

{
  "status": "success",
  "data": {
    "token": "bitcoin",
    "signal": {
      "price": 67500,
      "trend": "bullish",
      "confidence": 0.85
    }
  },
  "timestamp": "2026-03-03T12:00:00Z"
}

Response Metadata

  • Status Code: HTTP status (200, 402, 404, etc.)
  • Response Time: Request duration in ms
  • Content Type: Response format
  • Headers: Full response headers

Error Handling

Common Errors:
  • 402 Payment Required — Connect wallet and approve payment
  • 400 Bad Request — Check parameter format
  • 404 Not Found — Verify endpoint URL
  • 500 Server Error — API service issue (check status)

Request History

Track all your API calls:
  • Timestamp — When the request was made
  • Endpoint — Which API route was called
  • Parameters — Request configuration
  • Status — Success/failure indicator
  • Payment — Whether x402 payment was required

History Actions

  • Replay — Re-send the same request
  • Edit — Modify parameters and resend
  • Export — Save request/response as JSON
  • Clear — Remove history entries

Example Workflows

1. Token Due Diligence

1

Get Token Report

GET /token-report?address=<token_address>
Review Rugcheck analysis and risk score.
2

Check Holder Distribution

GET /bubblemaps/maps?address=<token_address>
Analyze holder concentration.
3

Research Social Sentiment

GET /x-kol?address=<token_address>
See what KOLs are saying.
4

Get Trading Signal

GET /signal?token=<token_name>
AI-generated entry/exit recommendations.

2. Market Overview

1

Check Market Sentiment

GET /sentiment?ticker=general
2

Get Latest News

GET /news?ticker=general
3

View Analytics Summary

GET /analytics/summary
Comprehensive market snapshot.

3. Memecoin Screening

1

Fastest Growing

GET /memecoin/fastest-holder-growth
2

Smart Money Activity

GET /memecoin/most-mentioned-by-smart-money-x
3

Strong Narratives

GET /memecoin/strong-narrative-low-market-cap

Development Mode

Dev Routes (No Payment)

For local testing without x402 payments:
Point the playground to your local API:
VITE_API_BASE_URL=http://localhost:3000
Dev routes available at /endpoint/dev (no payment required).

Tech Stack

LayerTechnology
BuildVite, TypeScript
UIReact, shadcn-ui, Tailwind CSS
Wallet@solana/wallet-adapter, Privy (Solana + Base + social)
Payment@x402/core
API ClientFetch API with x402 integration

Security

Best Practices:
  • Never share your wallet private keys
  • Verify payment amounts before approving
  • Use the playground on trusted networks only
  • Review transaction details in your wallet
  • Wallet Security: Your keys never leave your wallet extension
  • HTTPS Only: All requests use encrypted connections
  • Payment Verification: Transactions are verified on-chain
  • No Storage: Private data is not stored on servers

Troubleshooting

  • Ensure wallet extension is installed and unlocked
  • Try refreshing the page
  • Check browser console for errors
  • Verify you’re on a supported network (Solana mainnet)
  • Check wallet balance (sufficient SOL for transaction + fees)
  • Verify network is not congested
  • Try increasing transaction priority fee
  • Ensure wallet is connected to mainnet-beta
  • Check API status at /check-status
  • Verify your internet connection
  • Try a simpler endpoint first
  • Check request parameters are valid
  • Verify endpoint URL is correct
  • Check parameter names and values
  • Review API documentation for expected format
  • Try the same request in dev mode (local API)

Next Steps

API Reference

Complete endpoint documentation

MCP Server

Use API in Cursor/Claude

x402 Agent

Deploy autonomous agents

n8n Workflows

Automate with n8n

Build docs developers (and LLMs) love