---
title: "Mcp Query Details"
method: GET
path: "/api/admin/mcp/query-details"
---

# Mcp Query Details

`GET /api/admin/mcp/query-details`

## Request

- Base URL: `https://www.awardflightdaily.com` (the document declares no server; this is the origin it was published from)
- URL: `https://www.awardflightdaily.com/api/admin/mcp/query-details`
- Auth: none declared

Get detailed search query analytics from the main database.

Query params:
    days (int, optional): Number of days to analyze (default 7)

Returns:
    {
        "total_searches": integer,
        "direct_only_pct": float (0-100),
        "period_days": integer,
        "top_origins": [{"code": "JFK", "count": 100}, ...],
        "top_destinations": [{"code": "LHR", "count": 100}, ...],
        "top_routes": [{"route": "JFK-LHR", "count": 50}, ...],
        "cabin_distribution": {"Y": 200, "W": 50, "J": 30, "F": 10},
        "top_programs": [{"program": "united", "count": 150}, ...],
        "searches_by_hour": [{"hour": 0, "count": 10}, {"hour": 1, "count": 15}, ...]
    }

## Query parameters

- `days` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/awardflightdaily/apis/award-flight-database.md) · [All operations](https://skmtc.dev/awardflightdaily/apis/award-flight-database/llms.txt) · [OpenAPI document](https://skmtc.dev/awardflightdaily/apis/award-flight-database/revisions/93e62de446f9?raw)
