Auto-Sync Webhooks
Set up automatic data synchronization
Auto-Sync Already Active! ⚡
Smart Auto-Sync: Data automatically refreshes when users visit pages
Cooldown: Only syncs if data is older than 30 minutes
💡 The webhooks below are optional for more frequent updates or background syncing!
🔐 Setup: Create Your Webhook API Key
⚠️ Required Setup
- Go to Dashboard → Settings → Secrets
- Add a new secret:
WEBHOOK_API_KEY - Set a strong random value (e.g., a UUID or long random string)
- Use that same value in your webhook calls below
Update this to see it in the examples below
Available Webhook Endpoints
Sync All Data
POST
Syncs both YouTube and Roblox data in one call
https://nikoplayz.com/api/functions/webhookSyncAllcurl -X POST "https://nikoplayz.com/api/functions/webhookSyncAll" \
-H "Content-Type: application/json" \
-d '{"api_key": "your-webhook-api-key"}'Sync YouTube Only
POST
Syncs only YouTube videos and channel stats
https://nikoplayz.com/api/functions/webhookSyncYouTubecurl -X POST "https://nikoplayz.com/api/functions/webhookSyncYouTube" \
-H "Content-Type: application/json" \
-d '{"api_key": "your-webhook-api-key"}'Sync Roblox Only
POST
Syncs only Roblox games data
https://nikoplayz.com/api/functions/webhookSyncRobloxcurl -X POST "https://nikoplayz.com/api/functions/webhookSyncRoblox" \
-H "Content-Type: application/json" \
-d '{"api_key": "your-webhook-api-key"}'Recommended Cron Services
Use these services to automatically call your webhooks on a schedule
📝 Setup Instructions
- Sign up for a free account on one of the services above
- Create a new cron job / monitor
- Set the URL to one of your webhook endpoints
- Configure it as a POST request with JSON body:
{"api_key": "your-key"} - Set the schedule (recommended: every 30-60 minutes)
- Save and activate!
