UK Market API BETA

Market-namespaced endpoints for UK credit cards. All monetary values are in GBP. The same authentication and response envelope as the core API.

Overview

UK endpoints live under the /api/v1/gb/ namespace. They use the same API key, response envelope, and authentication as the core US API — the only difference is the URL prefix and that all data is scoped to the UK market.

Base URL

https://kokofinance.net/api/v1/gb

Key Differences from US API

AspectUS APIUK API
Base path/api/v1/cards/api/v1/gb/cards
CurrencyUSD ($)GBP (£)
Card catalog150+ US cards20 UK cards (growing)
AuthenticationSame — X-API-Key header
Response formatSame — { success, data, metadata, error }

Why a Separate Namespace?

UK developers see only endpoints relevant to the UK market. US-specific endpoints (Schumer Box terms, CFPB data, US changelog) are not exposed under /gb/, keeping the API surface clean and focused.

Endpoints

Four endpoints are currently available in the UK namespace:

MethodEndpointDescription
GET /api/v1/gb/cards/ List all UK credit cards with filtering and pagination
GET /api/v1/gb/cards/{card_id} Get full details for a specific UK card
POST /api/v1/gb/cards/search Structured search with filters (issuer, fee, type, network)
POST /api/v1/gb/cards/compare Compare 2-3 UK cards side-by-side (fast or verbose mode)

GET   /api/v1/gb/cards/

Returns a paginated list of UK credit cards. Supports filtering by issuer, card type, network, max annual fee, and free-text search.

Query Parameters

ParameterTypeDescription
qstringFuzzy search across card name, issuer, and best_for
issuerstringFilter by issuer (e.g. HSBC, Barclaycard)
card_typestringFilter by card type (e.g. Travel Rewards)
networkstringFilter by network (Visa, Mastercard, Amex)
max_annual_feeintegerMaximum annual fee in GBP
limitintegerResults per page (default 20, max 100)
offsetintegerPagination offset

GET   /api/v1/gb/cards/{card_id}

Returns the full enriched card object for a UK card, including rewards structure, key benefits, sign-on bonus, and apply URL.

POST   /api/v1/gb/cards/search

Structured search that returns matched UK cards ranked by relevance. Accepts the same request body as the US search endpoint.

Request Body

FieldTypeDescription
querystringNatural-language search query
issuerstringFilter by issuer
card_typestringFilter by card type
max_annual_feenumberMaximum annual fee in GBP
limitintegerMax results (default 10)

POST   /api/v1/gb/cards/compare

Compare 2–3 UK credit cards side-by-side. Supports two modes:

  • Fast mode (default) — Deterministic calculation using card data. Returns structured comparison with net value, break-even, rewards by category. Typically <100ms.
  • Verbose mode (?mode=verbose) — AI-generated narrative with winner recommendation, fit scores, pros/cons, and use-case recommendations. 2–5 seconds.

Query Parameters

ParameterTypeDefaultDescription
modestringfastfast or verbose

Request Body

FieldTypeRequiredDescription
card_namesarrayYes2–3 card names to compare
params.spendingobjectNoMonthly spending by category (e.g. {"dining": 200, "travel": 300})

Examples

List UK Cards

curl https://kokofinance.net/api/v1/gb/cards/ \
  -H "X-API-Key: YOUR_API_KEY"
Response (truncated)
{
  "success": true,
  "data": {
    "cards": [
      {
        "card_name": "Gold Card",
        "issuer": "American Express",
        "annual_fee": 160,
        "card_type": "Travel Rewards",
        "network": "Amex",
        "country_code": "GB",
        "currency": "GBP"
      },
      {
        "card_name": "Barclaycard Avios Plus",
        "issuer": "Barclaycard",
        "annual_fee": 144,
        "card_type": "Travel Rewards",
        "network": "Visa",
        "country_code": "GB",
        "currency": "GBP"
      }
    ],
    "total": 20,
    "limit": 20,
    "offset": 0
  }
}

Search for No-Fee Cards

curl -X POST https://kokofinance.net/api/v1/gb/cards/search \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "no annual fee cashback", "max_annual_fee": 0}'

Compare Cards (Fast Mode)

curl -X POST https://kokofinance.net/api/v1/gb/cards/compare \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "card_names": ["Gold Card", "Barclaycard Avios Plus"],
    "params": {
      "spending": {"dining": 200, "travel": 300, "groceries": 400}
    }
  }'
Response (truncated)
{
  "success": true,
  "data": {
    "comparison_table": [
      {
        "card_name": "Gold Card",
        "issuer": "American Express",
        "annual_fee": 160.0,
        "net_value": -160.0,
        "earning_rates": { "base": 1.0 },
        "break_even": {
          "status": "spending_required",
          "monthly_spend_at_base_rate": 2021.0
        }
      },
      {
        "card_name": "Barclaycard Avios Plus",
        "issuer": "Barclaycard",
        "annual_fee": 144.0,
        "net_value": -144.0,
        "earning_rates": { "base": 1.5 },
        "break_even": {
          "status": "spending_required",
          "monthly_spend_at_base_rate": 1212.0
        }
      }
    ],
    "currency": "GBP",
    "spending_source": "user_provided",
    "assumptions": {
      "redemption_rate": 0.66,
      "benefit_utilization_rate": 0.5,
      "point_value": 0.01
    }
  }
}

Compare Cards (Verbose Mode)

curl -X POST "https://kokofinance.net/api/v1/gb/cards/compare?mode=verbose" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"card_names": ["Gold Card", "Barclaycard Avios Plus"]}'

Verbose mode returns AI-generated pros/cons, a winner recommendation, fit scores, and use-case recommendations — all with £ currency formatting.

Coming Soon

The following capabilities are planned for the UK namespace:

FeatureDescriptionStatus
Portfolio Optimization Analyze a portfolio of UK cards for spending overlap and gap analysis Planned
Card Recommend Get card recommendations by spending category Planned
Renewal Analysis Should you keep or cancel a card at renewal? Planned
Merchant Intelligence Best card to use at a UK merchant Planned
Expanded Catalog Additional UK cards from more issuers Ongoing

Have a request? Email team@kokofinance.net and let us know what you'd like to see next.