Developer Documentation

Technical documentation for integrating WhichPortal into your applications.

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 Available

Protocol: MCP 2024-11-05
Transport: Stateless HTTP (SSE responses)
Authentication: None required

REST API

Base URL

https://whichportal.com

Content Negotiation

All endpoints support multiple formats:

Endpoints

Endpoint Description
GET /merchants?q=query Search merchants by name or domain
GET /merchants/:slug Full rate comparison for a merchant
GET /portals List all 15+ shopping portals
GET /llms.txt AI-optimized site map

Example

# Get comparison for Nike
curl https://whichportal.com/merchants/nike

# Get as Markdown
curl https://whichportal.com/merchants/nike.md

Discovery Endpoints

WebMCP

Browser-based MCP via navigator.modelContext (Chrome origin trial through March 30, 2027).

WhichPortal is registered for WebMCP and can be accessed directly from web applications that support the Model Context API.

Rate Limits

Free tier limits:

Rate limit headers 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 for consistent comparison:

Rate Types

Support

Questions? Email support@whichportal.com

← Back to WhichPortal