Flexible Queries

GraphQL API

Flexible, efficient data queries with our GraphQL endpoint. Request exactly what you need with intelligent query optimization.

Interactive Query Explorer

Test GraphQL queries and see live responses

Query Editor
query LatestCandles {
  candles(
    pairAddress: "GtKKKs3yaPdHbQd2aZS4SfWhy8zQ988BJGnKNndLxYsN"
    timeframe: "1m"
    limit: 5
  ) {
    timestamp
    open
    high
    low
    close
    volumeSol
    tradeCount
  }
}

OHLCV for the BONK / SOL pool — request exactly the fields you want.

Response
// Click "Execute Query" to see the response
// Try different query types from the dropdown

Flexible Queries

Request exactly the fields you need. No over-fetching or under-fetching of data.

Nested Relationships

Traverse complex data relationships in a single query.

Real-time Subscriptions

Subscribe to real-time updates with GraphQL subscriptions.

Why GraphQL?

Precise Data

Get exactly what you ask for

Single Request

Multiple resources in one call

Type Safety

Strongly typed with validation

Introspection

Self-documenting API

Quick Start

JavaScript / Apollo Client
import { ApolloClient, InMemoryCache, gql } from '@apollo/client';

// Initialize Apollo Client
const client = new ApolloClient({
  uri: 'https://graphql.dexploit.io/v1',
  cache: new InMemoryCache(),
  headers: {
    'X-API-Key': 'your-api-key'
  }
});

// Query token data
const GET_TOKEN = gql`
  query GetToken($address: String!) {
    token(address: $address) {
      symbol
      name
      price {
        usd
        change24h
      }
      volume24h
    }
  }
`;

// Execute query
const { data } = await client.query({
  query: GET_TOKEN,
  variables: { address: '0x...' }
});

Start Building with GraphQL

Experience the flexibility and efficiency of GraphQL. Query exactly what you need.