Data API
Powerful, secure, and scalable data APIs for real-time analytics and integration across your applications.
Overview
The egegasas Data API provides programmatic access to real-time data streams and historical datasets. With advanced filtering, streaming capabilities, and built-in security features, it's perfect for developers building analytics platforms, business intelligence tools, or data-driven applications.
- Real-time data streaming with WebSocket support
- Advanced query syntax for data slicing
- Customizable data transformation pipelines
- Role-based access control (RBAC)
Key Features
Secure Authentication
API keys and OAuth 2.0 support with token-based rate limiting and IP whitelisting.
Custom Queries
Filter, sort, and aggregate data with our flexible query language.
Streaming
Real-time updates through WebSocket connections for live dashboards.
Analytics
Pre-built analytical models for predictive insights and trend analysis.
Getting Started
1. Install SDK
npm install @egegasas/data-sdk
2. Initialize Client
const client = new DataClient({ apiKey: 'YOUR_API_KEY', env: 'production' });
3. Make Request
const data = await client.query({ dataset: 'sales', filters: { region: 'APAC', date: '2025-09' } });
Code Examples
JavaScript
const client = new DataClient({ apiKey: 'YOUR_KEY' }); async function fetchSalesData() { const result = await client.query({ dataset: 'sales', filters: { region: ['EMEA', 'AMER'], date: { from: '2025-09-01', to: '2025-09-30' } }, metrics: ['total_revenue', 'units_sold'], limit: 100 }); console.log(result); }
Python
from egegasas.data import DataClient client = DataClient(api_key='YOUR_KEY') response = client.query( dataset='inventory', parameters={ 'warehouse': 'ASIA', 'date_range': 'last_30_days' }, format='json' ) print(response.data)