DappLooker Docs
  • 👋Welcome
  • Data APIs for AI
    • Overview
    • Changelog
    • API Authentication
    • API Endpoints
      • GET: Crypto Token Market Data
      • GET: List of All Tokens
      • GET: Multi-Timeframe Technical Analysis
      • GET: Agent Details
      • POST: AI-Powered Query via NLQ
    • Best Practices
    • Conclusion
  • DappLooker Analytics
    • 🗃️Products
      • 📶Analytics
        • 🔎Browse and Search data
        • 📈Creating Charts
          • No-Code Charts
          • SQL Charts
        • 🔢Custom Values
        • 📊Dashboards
          • Create Dashboard
          • Add Charts to Dashboard
          • Discover Page
          • Link dashboard to another dashboard
          • Adding Filters to Dashboard
            • Time Filter
        • ♻️Convert No-Code to SQL
        • 🔗Making Charts and Dashboards Public
      • 🔍Subgraph Analyzer
      • ✨AI Studio
        • AI Studio API Support
      • 🤖DataBOT
        • 🎮Discord Bot
        • ▶️Telegram Bot
        • 🌐Connect with Leading Networks and dApps
      • 🔑DappLooker SDK
        • 🔎Tracking API Usage
    • 🌐Supported Networks
      • Blockchain Data
      • Smart Contracts
      • Subgraphs
      • SubQuery
      • Offchain Data Sources
    • 📲Registering Data
      • My Dashboard Overview
      • Smart Contracts
      • Subgraph
      • Subquery
      • Off-Chain Integration
    • 🔖Featured Projects
    • 🎯Features
      • XRay Feature
      • Filtering
      • Summarize
      • Downloading
        • Download Chart Data
      • Editor Panel
        • Preview Chart
        • Joining Data
        • Types Of Join Data
        • Sorting
        • Row Limit
        • Convert to models
        • Duplicate a Chart
        • New Collection
      • Creating Custom Column and Custom Expressions
      • 📷Screenshot
      • 🗃️Collections
        • Browse Collection
        • Personal Collection
        • Team Collection
    • ⛓️Smart Contract Live Query
    • 🔔Push Notifications
      • 👀Where to view notifications?
      • 📰Push x MetaMask Snaps
    • 👨‍⚖️Case Studies
      • 1️⃣Community Updates
      • 2️⃣DeFi Reports
      • 3️⃣On-Chain & Off-Chain Analysis
      • 4️⃣User Retention Analysis
      • 5️⃣DappLooker Telegram Bot
      • 6️⃣Subgraph Powered No-Code Dashboards
      • 7️⃣API Use Case: Beamswap
      • 8️⃣Embedding Use Case: GRTDataHub
    • 💰Pricing
      • Pricing Breakdown
      • Discounts And Payments
    • 💻Deploy a subgraph on the DappLooker custom node
    • 🥷DappLooker No-code Ninjas Program!
    • 🤝Sponsor With Us
    • 🔗Relevant Resources
    • ☎️Contact Us
  • API Guides
    • Get API Key
    • How to Get an API of a Chart
    • Render Chart or Dashboard as an Image with API
    • Mintbase
      • Individual Store Level APIs
      • Mintbase Protocol Level APIs
    • Nordek Developer APIs
  • Explorers
    • CeloSpy
    • VaraSpy
Powered by GitBook
On this page

Was this helpful?

  1. Data APIs for AI
  2. API Endpoints

POST: AI-Powered Query via NLQ

Query token data and chart insights using natural language.

Endpoint:

POST: /ask-loky

Body Parameters:

Parameter name

Type

Description

api_key

string

Your unique API key.

chain

string

The network chain to query. Values - base/solana

question

string

Query to ask. [Use $ with tickers for best response]

Sample cURL Request:

curl -X POST 'https://api.dapplooker.com/v1/ask-loky' \
--header 'Content-Type: application/json' \
--data '{
    "api_key":"<API_KEY>",
    "chain":"base",
    "question":"Give me deep analysis of $AIXBT"
}'

Sample Response:

{
    "questionId": "ffd30ded-0a72-4735-8211-7daea644906c",
    "answerId": "aad9ac4e-2025-470e-97b1-29d7b6dca864",
    "nlpResponse": "Diving into the analytics of $AIXBT:\n\n- Current Price: Trading at $0.077, down by 3% in the last 24 hours.\n- Market Cap: It has a market capitalization of approximately $65.4M, which has declined by around 3.1% in the last day.\n- Volume and Liquidity: The token saw a volume of roughly $29.6M over the past day with total liquidity standing at about $937.6K.\n- Recent Performance: Over the past week, its price increased by 8.5%, although its volume decreased by -30.6%. \n- Wallet Activity:\n   - Top Holders Activity: In terms of top holders' activity (the top 25 wallets), they purchased approximately an additional 2.6M AIXBT tokens and sold around 5.3M AIXBT tokens over the last day.\n   - Developer Wallet Activity: There haven't been any outgoing transactions from developer's wallet in the past day while inflow amounts to zero as well indicating no new tokens were added into it.\n\nOn a technical analysis front:\n\n- Support/Resistance Levels: The support level is currently situated near $0.075, whereas resistance can be found at about $0.088.\n- SMA and RSI Indicators:\n   - Its Relative Strength Index (RSI) stands at approximately 35.9 which suggests it might be nearing oversold territory lowering likelihood for drastic drops in price from this point onward unless there are other market factors involved that need consideration too.\n   - Meanwhile, its current price is slightly below its recent average with respect to 50-hour simple moving average ($0 .081).\n\nLet me know if you'd like more specific insights or details on another token!",
    "tokenDetails": [
        {
            "token_ticker": "aixbt",
            "token_ca": "0x4f9fd6be4a90f2620860d680c0d4d5fb53d1a825",
            "token_name": "aixbt by Virtuals",
            "token_id": "aixbt",
            "chain": "base",
            "current_usd_price": "0.0766600000",
            "last_24_hrs_price_change_percentage": "-3.03",
            "market_cap": "65386763.00",
            "last_24_hrs_market_cap_change_percentage": "-3.15",
            "last_24_hrs_volume": "29551265.00",
            "last_24_hrs_price_high": "0.0832810000"
        }
    ]
}

Response Fields Explanation:

  • questionId (string): A unique identifier assigned to the user's natural language question.

  • answerId (string): A unique identifier for the generated answer corresponding to the question.

  • nlpResponse (string): The interpreted response from Loky's Natural Language Query (NLQ) system based on the user's input.

  • tokenDetails (Object[]): An array containing detailed information about each token referenced in the user's question.

PreviousGET: Agent DetailsNextBest Practices

Last updated 10 hours ago

Was this helpful?