curl -X POST https://searchcompany-main.up.railway.app/api/cron/analyze-visibility \ -H "Content-Type: application/json" \ -d '{ "business_id": "nike", "prompt": "What are the best running shoes for marathons?" }'
Copy
{ "status": "success", "prompt": "What are the best running shoes for marathons?", "chatgpt": true, "claude": true, "gemini": false, "perplexity": true, "copilot": false, "deepseek": true, "grok": false, "google_ai": true}
Cron
Analyze Prompt Visibility
Analyze a SINGLE prompt across 8 AI platforms in parallel
POST
https://searchcompany-main.up.railway.app
/
api
/
cron
/
analyze-visibility
Copy
curl -X POST https://searchcompany-main.up.railway.app/api/cron/analyze-visibility \ -H "Content-Type: application/json" \ -d '{ "business_id": "nike", "prompt": "What are the best running shoes for marathons?" }'
Copy
{ "status": "success", "prompt": "What are the best running shoes for marathons?", "chatgpt": true, "claude": true, "gemini": false, "perplexity": true, "copilot": false, "deepseek": true, "grok": false, "google_ai": true}
Internal endpoint for the Cron service to check visibility for a single prompt.Called 100 times (once per prompt) by the cron job for each entity.
curl -X POST https://searchcompany-main.up.railway.app/api/cron/analyze-visibility \ -H "Content-Type: application/json" \ -d '{ "business_id": "nike", "prompt": "What are the best running shoes for marathons?" }'
Copy
{ "status": "success", "prompt": "What are the best running shoes for marathons?", "chatgpt": true, "claude": true, "gemini": false, "perplexity": true, "copilot": false, "deepseek": true, "grok": false, "google_ai": true}