Overview
Agencies can build custom dashboards on top of Ranked AI’s data using the REST API for data retrieval and webhooks for real-time updates. This guide walks through the recommended architecture.Architecture
Your dashboard pulls data from the API and caches it locally. Webhooks push updates so you don’t need to poll.1
API pulls data into your database
Your server calls the Ranked AI API to fetch keywords, audits, backlinks, and other data, then stores it in your database.
2
Webhooks push real-time updates
When keyword positions update or content changes, Ranked AI sends a webhook to your server with the event details.
3
Your dashboard reads from the cache
Your frontend reads from your local database instead of calling the API on every page load. Fast and always available.
Step 1: Discover projects
List all SEO projects for the authenticated user:Step 2: Initial data sync
Pull the full dataset for each project:Step 3: Set up webhooks for real-time updates
Instead of polling, subscribe to events:Step 4: Handle webhook events
Recommended sync strategy
Tips
- Use Read Only API keys for data fetching and a separate Read + Write key for webhook management
- Cache API responses in your database rather than calling the API on every page load
- The
keywords.updatedwebhook fires once per daily scan, not per keyword — use it as a signal to re-sync - Implement retry logic for your API calls with exponential backoff