# Compare competitor rankings in AI answer shortlists

**Use case:** 

Compare target and competitor placement across AI platforms using ranked entities, competitor ranks, and the winning entity for each query.

## Input

```json
{
  "targetName": "Apify",
  "targetDomain": "apify.com",
  "industry": "web scraping tools",
  "competitors": [
    "Bright Data",
    "Octoparse"
  ],
  "queries": [
    "Rank the best web scraping tools for agencies",
    "What are the top alternatives to Apify?"
  ],
  "queryTemplates": [
    "alternatives",
    "category_leaders"
  ],
  "platforms": [
    "perplexity",
    "chatgpt",
    "gemini"
  ],
  "maxQueries": 2,
  "maxRankedEntities": 10,
  "responseFormat": "concise",
  "webhookUrl": "https://hooks.zapier.com/hooks/catch/123/abc",
  "demoMode": false
}
```

## Output

```json
{
  "platform": {
    "label": "AI Platform",
    "format": "string"
  },
  "query": {
    "label": "Prompt",
    "format": "string"
  },
  "targetRank": {
    "label": "Target Rank",
    "format": "integer"
  },
  "competitorRanks": {
    "label": "Competitor Ranks",
    "format": "array"
  },
  "competitorMentions": {
    "label": "Competitor Mentions",
    "format": "array"
  },
  "winningEntity": {
    "label": "Winning Entity",
    "format": "string"
  },
  "checkedAt": {
    "label": "Checked At",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [AI Rank Tracker - ChatGPT, Perplexity & Gemini](https://apify.com/khadinakbar/ai-rank-tracker) with a specific input configuration. Visit the [Actor detail page](https://apify.com/khadinakbar/ai-rank-tracker) to learn more, explore other use cases, and run it yourself.