Build on WhichPortal
Technical documentation for integrating WhichPortal into your applications and agents.
MCP server
WhichPortal provides a Model Context Protocol (MCP) server for AI assistants.
Endpoint
https://whichportal.com/mcp
Configuration
Add to your MCP client configuration:
{
"mcpServers": {
"whichportal": {
"url": "https://whichportal.com/mcp",
"transport": "streamable-http"
}
}
}
Tools
| Tool | What it does |
|---|---|
compare_portals | Compare all rates for a store with effective value |
best_portal | Best recommendation plus two alternatives, optionally filtered by reward type |
search_merchants | Find stores by name or domain |
find_by_url | Identify a store from a URL |
get_portal | Portal information and supported stores |
list_portal_bonuses | Current promotions and enhanced rates |
get_deals, best_deal, deals_now | Verified sales and promo codes (empty when none are on file) |
black_friday | Best current rates at popular US and UK Black Friday stores |
Transport: streamable HTTP. Authentication: none. Every tool takes country: "US" | "UK".
REST API
Base URL
https://whichportal.com
Content negotiation
All endpoints support multiple formats:
- JSON: send
Accept: application/json - HTML: send
Accept: text/html(browser default) - Markdown: add a
.mdsuffix or sendAccept: text/markdown
Endpoints
| Endpoint | Description |
|---|---|
GET /merchants?q=query | Search stores by name or domain |
GET /merchants/:slug | Full rate comparison for a store |
GET /api/best-portal/:merchant | Best site plus two alternatives |
GET /api/deals/:merchant | Verified deals and codes |
GET /portals | All shopping portals |
GET /openapi.json | OpenAPI description |
GET /llms.txt | Site map for LLMs |
GET /black-friday | Black Friday rates, US and UK (JSON at /black-friday.json) |
Example
# Comparison for Nike as JSON
curl -H "Accept: application/json" https://whichportal.com/merchants/nike
# As Markdown
curl https://whichportal.com/merchants/nike.md
# UK edition
curl https://whichportal.com/uk/merchants/nike.mdDiscovery endpoints
GET /llms.txt | AI site map |
GET /.well-known/mcp | MCP server capability card |
GET /.well-known/agent.json | Agent-to-agent discovery |
GET /robots.txt | Crawler directives |
WebMCP
Every WhichPortal page registers WebMCP tools with document.modelContext.registerTool() (falling back to navigator.modelContext on older builds) and exposes window.webmcp otherwise. See /agents for the tool list.
Rate limits
Free tier limits:
- 60 requests per minute
- 1000 requests per hour
Rate limit headers are included in responses: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.
Data model
Effective value
All points and miles are converted to cents per dollar (or pence per pound) for a like-for-like comparison. Example estimates:
| Programme | Value per point |
|---|---|
| American AAdvantage | 1.5¢ |
| United MileagePlus | 1.3¢ |
| Delta SkyMiles | 1.2¢ |
| Southwest Rapid Rewards | 1.4¢ |
| Marriott Bonvoy | 0.7¢ |
Rate types
percentage: cash back percentage (e.g. 3%)fixed: fixed amountpoints_per_dollar: points earned per $1miles_per_dollar: miles earned per $1points_per_pound/miles_per_pound: per £1 (UK, add/ukto any path or passcountry: "UK"to MCP tools)
Support
Questions? Email support@whichportal.com.
Rates can change, so check the cashback site before you buy. Shopping direct with the store does not earn portal cashback.