> ## Documentation Index
> Fetch the complete documentation index at: https://docs.searchcompany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Architecture for the Get Competitor endpoint

## Purpose

Returns full details for a specific competitor, including scraped content for chat context.

## Architecture

```mermaid theme={null}
flowchart TD
    Request["GET /api/explore/competitor/{competitor_id}"]
    
    subgraph db [Database]
        Entities["entities table"]
        Competitors["competitors table"]
    end
    
    Request --> Entities
    Entities --> Competitors
    Competitors --> Response
```

## Response Format

```json theme={null}
{
  "status": "success",
  "competitor": {
    "id": "uuid-...",
    "name": "Competitor Name",
    "url": "https://competitor.com",
    "description": "What they do...",
    "favicon_url": "https://...",
    "scraped_content": "Full markdown content...",
    "source": "auto_discovered",
    "created_at": "2024-01-15T10:30:00Z"
  }
}
```

## Fields

| Field             | Description                              |
| ----------------- | ---------------------------------------- |
| `id`              | Unique identifier                        |
| `name`            | Competitor name                          |
| `url`             | Website URL                              |
| `description`     | Short description                        |
| `favicon_url`     | Favicon image URL                        |
| `scraped_content` | Full scraped markdown (for chat context) |
| `source`          | How it was discovered                    |
| `created_at`      | When it was added                        |

## Code Location

```
src/app/apis/explore/get_competitor/routes.py
```
