Public endpoint used on the marketing website to show visitors their initial AI ranking score. If the URL hasn’t been checked before, a new score is generated and saved.
This is a public endpoint - no authentication required. Used on the
searchcompany.co landing page.
Query Parameters
Website URL to get/create score for
Response
The AI ranking score (32-49 for new URLs)
How It Works
- Check Database - Looks for existing score in
pre_payment_rankings table
- Return Existing - If found, returns the stored score
- Generate New - If new URL, generates score between 32-49 and saves it
This ensures the same URL always gets the same score, creating consistency across page refreshes.
curl "https://searchcompany-main.up.railway.app/api/ranking-score?url=https://example.com"
Usage on Landing Page
const response = await fetch(
`https://searchcompany-main.up.railway.app/api/ranking-score?url=${encodeURIComponent(
userUrl
)}`
);
const { score } = await response.json();
// Display: "Your AI Visibility Score: 38"