API Endpoints

Moonsense provides a lightweight REST API that powers the dashboard app. Developers can use these endpoints for integrations or extensions.

GET /api/prices

  • Description: Fetches real-time cryptocurrency prices.

  • Data Source: Aggregated from free public APIs such as CoinGecko.

  • Response Example:

{
  "BTC": { "price": 42150, "change_24h": 2.4 },
  "ETH": { "price": 3250, "change_24h": -1.2 },
  "DOGE": { "price": 0.083, "change_24h": 5.6 }
}

GET /api/new-listings

  • Description: Returns a list of new tokens launched across multiple exchanges.

  • Data Source: Aggregated from free listings feeds (CoinGecko new listings, CoinMarketCap new tokens).

  • Response Example:

[
  { "symbol": "MOON", "name": "Moonsense Token", "launch_date": "2025-08-20", "chain": "ETH" },
  { "symbol": "XYZ", "name": "Xylo Finance", "launch_date": "2025-08-19", "chain": "BSC" }
]

POST /api/analysis

  • Description: Runs AI-powered analysis on a specific token and returns its Moon Potential Score.

  • Body Example:

{ "symbol": "DOGE" }
  • Response Example:

{
  "symbol": "DOGE",
  "category": "Memecoin",
  "moon_potential": 78,
  "factors": {
    "social_hype": 85,
    "community_size": 80,
    "risk_score": 40
  }
}

GET /api/user/watchlist

  • Description: Returns the logged-in user’s saved watchlist.

  • Auth Required: Yes (wallet login).

  • Response Example:

[
  { "symbol": "ETH", "alerts": ["price_above_4000", "moon_score_above_70"] },
  { "symbol": "PEPE", "alerts": ["moon_score_above_80"] }
]

Last updated