π’ GET - Ranking Score
Get Ranking Score
Get or create a pre-payment AI ranking score for a website
GET
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.ai landing page.
Query Parameters
Website URL to get/create score for
Response
The AI ranking score (32-49 for new URLs)
Array of 4 competitor scores (always higher than user score, sorted descending)
Array of AI platform visibility statuses
How It Works
- Check Database - Looks for existing score in
pre_payment_rankingstable - Return Existing - If found, returns the stored score
- Generate New - If new URL, generates score between 32-49 and saves it
- Generate Competitor Scores - Creates 4 competitor scores higher than the userβs score
- Generate Platform Statuses - Randomly assigns LOW (70%) or MEDIUM (30%) status to each AI platform