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

ToolWhat it does
compare_portalsCompare all rates for a store with effective value
best_portalBest recommendation plus two alternatives, optionally filtered by reward type
search_merchantsFind stores by name or domain
find_by_urlIdentify a store from a URL
get_portalPortal information and supported stores
list_portal_bonusesCurrent promotions and enhanced rates
get_deals, best_deal, deals_nowVerified sales and promo codes (empty when none are on file)
black_fridayBest 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 .md suffix or send Accept: text/markdown

Endpoints

EndpointDescription
GET /merchants?q=querySearch stores by name or domain
GET /merchants/:slugFull rate comparison for a store
GET /api/best-portal/:merchantBest site plus two alternatives
GET /api/deals/:merchantVerified deals and codes
GET /portalsAll shopping portals
GET /openapi.jsonOpenAPI description
GET /llms.txtSite map for LLMs
GET /black-fridayBlack 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.md

Discovery endpoints

GET /llms.txtAI site map
GET /.well-known/mcpMCP server capability card
GET /.well-known/agent.jsonAgent-to-agent discovery
GET /robots.txtCrawler 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:

ProgrammeValue per point
American AAdvantage1.5¢
United MileagePlus1.3¢
Delta SkyMiles1.2¢
Southwest Rapid Rewards1.4¢
Marriott Bonvoy0.7¢

Rate types

  • percentage: cash back percentage (e.g. 3%)
  • fixed: fixed amount
  • points_per_dollar: points earned per $1
  • miles_per_dollar: miles earned per $1
  • points_per_pound / miles_per_pound: per £1 (UK, add /uk to any path or pass country: "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.