Overview
The CYNK MAAT API allows you to integrate eye-tracking capabilities directly into your applications. Access gaze coordinates, eye-tracking events, and control overlay elements programmatically.
Eye Tracking API
Access real-time gaze coordinates and tracking events from the eye-tracking model.
// Initialize eye tracking
const eyeTracker = new CYNK.EyeTracker({
apiKey: 'your-api-key'
});
eyeTracker.onGazeUpdate((gaze) => {
console.log('Gaze position:', gaze.x, gaze.y);
});
Overlay Control API
Programmatically control overlay elements, positions, and visibility.
// Control overlay elements
const overlay = new CYNK.Overlay({
projectId: 'your-project-id'
});
overlay.setElementPosition('button-1', { x: 100, y: 200 });
overlay.toggleVisibility('panel-1', true);
Component API
Create and manipulate overlay components dynamically.
// Create components programmatically
overlay.addComponent({
type: 'button',
id: 'custom-btn',
props: {
text: 'Click Me',
x: 50,
y: 100
}
});
Getting Started
API access is available for both Desktop License and Enterprise License holders. The Desktop License includes basic API access, while the Enterprise License provides priority API access, higher rate limits, and advanced features.
Documentation
Full API documentation is available for licensed users. Access includes:
- Complete API reference
- Code examples and tutorials
- SDK downloads for popular languages
- Sandbox environment for testing
Rate Limits
Desktop License: 1,000 API calls per hour
Enterprise License: Unlimited API calls with priority processing