The credit card JSON data model
What a credit card record looks like as JSON: CardAPI's card object, one full sample card, which fields each plan returns, and how to page through every card live.
What this is, and what it isn't
CardAPI serves credit card products from the US and Canada as JSON over an API. There is no CSV or dataset file to download; the reasons are below.
This is card-product data: fees, reward rates, welcome offers and eligibility. If you need transaction or fraud data to train a model, this isn't that.
The card object
Three rules matter most:
- A successful response is wrapped in
data. List calls also returntotal,limitandoffset. - Fields above your plan are left out, not sent as
null.nullmeans CardAPI doesn't know the value, soannual_fee: nullmeans unknown, not zero. - A card's country is
issuers.country. There is no top-levelcountryfield.
Fields come in groups: identity, annual fee, reward currency and top rates, welcome offer, referral bonus, product changes and application rules, every reward rate, benefits, APRs, fees, eligibility, authorized users, design, links and freshness, spend bonuses, best-ever offer, military benefits and card art.
Every field, with its type and plan, is in /docs/fields. The full schema is in the live OpenAPI spec at https://api.cardapi.dev/v1/openapi.json.
One card, in full
GET /v1/cards/american-express-cobalt-card at Free-plan values (live), not abridged:
{
"data": {
"issuer_id": "aee865fd-0b87-49e8-9b12-94ea3341e113",
"slug": "american-express-cobalt-card",
"name": "American Express Cobalt® Card",
"network": "AMEX",
"card_type": "personal",
"annual_fee": 191.88,
"annual_fee_waived_first_year": false,
"signup_bonus": "Earn up to 15,000 Membership Rewards points by earning 1,250 points for each monthly billing period in which you spend $750 on your Card in your first year",
"signup_bonus_value": 15000,
"signup_min_spend": 750,
"signup_min_spend_months": 12,
"reward_currency": "points",
"reward_currency_name": "Membership Rewards",
"referral_bonus_amount": null,
"referral_bonus_url": null,
"product_change_eligible": null,
"product_change_notes": null,
"product_family": null,
"churning_notes": null,
"application_rules": "Current or former Cardmembers with this Card are not eligible for the welcome offer",
"is_discontinued": false,
"signup_bonus_points": 15000,
"signup_bonus_cash_value": null,
"issuers": {
"name": "American Express Canada",
"slug": "amex-ca",
"country": "CA",
"website": "https://www.americanexpress.com/ca/",
"logo_url": null
},
"reward_rates": [
{
"id": "52823563-580e-4e43-abd2-ec3bab928ea6",
"card_id": "7076c30d-ba59-4154-8e43-ee2c1de2354e",
"category_slug": "groceries+dining+food-delivery",
"rate_multiplier": 5,
"rate_type": "multiplier",
"cap_amount": 2500,
"cap_period": "monthly",
"fallback_rate": 1,
"is_base_rate": false,
"is_rotating": false,
"rotating_quarter": null,
"rotating_year": null,
"notes": "Earn 5 points for every $1 at (i) restaurant, quick service restaurant, coffee shop and drinking establishments in Canada, (ii) stand-alone grocery stores in Canada, (iii) delivery of food and groceries in Canada as a primary business, up to a combined maximum of $2,500 in net purchases posted to your account monthly on these categories. Earn 1 point for every $1 thereafter. Calculation resets to zero on the 1st of each month.",
"created_at": "2026-11-25T22:38:25.955996+00:00",
"categories": [
"groceries",
"dining",
"food-delivery"
],
"merchant": null,
"booking_channel": null,
"choice_group": null,
"choice_picks": null,
"choice_selection": null,
"excluded_merchants": null,
"excluded_categories": null,
"cap_group": null,
"cap_reset": "calendar",
"exclusions_known": false
},
{
"id": "5019514e-8c15-429d-9dcd-c432c0f5b15f",
"card_id": "7076c30d-ba59-4154-8e43-ee2c1de2354e",
"category_slug": "streaming",
"rate_multiplier": 3,
"rate_type": "multiplier",
"cap_amount": null,
"cap_period": null,
"fallback_rate": null,
"is_base_rate": false,
"is_rotating": false,
"rotating_quarter": null,
"rotating_year": null,
"notes": "Eligible streaming subscriptions in Canada",
"created_at": "2026-11-25T22:38:25.955996+00:00",
"categories": [
"streaming"
],
"merchant": null,
"booking_channel": null,
"choice_group": null,
"choice_picks": null,
"choice_selection": null,
"excluded_merchants": null,
"excluded_categories": null,
"cap_group": null,
"cap_reset": null,
"exclusions_known": false
},
{
"id": "35fd369d-272c-441b-ab13-cbe5fc3b2e6a",
"card_id": "7076c30d-ba59-4154-8e43-ee2c1de2354e",
"category_slug": "gas+transit",
"rate_multiplier": 2,
"rate_type": "multiplier",
"cap_amount": null,
"cap_period": null,
"fallback_rate": null,
"is_base_rate": false,
"is_rotating": false,
"rotating_quarter": null,
"rotating_year": null,
"notes": "Eligible gas, transit & ride share purchases in Canada",
"created_at": "2026-11-25T22:38:25.955996+00:00",
"categories": [
"gas",
"transit"
],
"merchant": null,
"booking_channel": null,
"choice_group": null,
"choice_picks": null,
"choice_selection": null,
"excluded_merchants": null,
"excluded_categories": null,
"cap_group": null,
"cap_reset": null,
"exclusions_known": false
}
]
}
}Live result at Free-plan values; offers and rates change.
What to notice:
reward_ratesholds the card's best 3 rates on a Free key. Every rate needs the Starter plan or above. On this card, the base rate is one of the rates left out.signup_bonusis the issuer's text.signup_bonus_valueis deprecated: usesignup_bonus_pointsfor points or miles andsignup_bonus_cash_valuefor the cash value, in the card's home currency.annual_feeis the yearly total. Some cards bill monthly;monthly_feeholds that on the Starter plan or above.exclusions_known: falseon a rate means CardAPI hasn't read that rate's exclusions. It does not mean nothing is excluded.
Which fields need which plan
| Field group | Example fields | Plan |
|---|---|---|
| Identity, fee and welcome offer | slug, annual_fee, signup_bonus | Every plan |
| Top reward rates | reward_currency_name, reward_rates (top 3) | Every plan |
| Every reward rate and caps | reward_rates (all), annual_reward_cap | Starter plan and above |
| APRs, fees, eligibility, freshness | interest_rate_purchase, foreign_transaction_fee, min_income, last_verified | Starter plan and above |
| Spend bonuses and best-ever offer | spend_bonuses, historical_best_offer | Pro plan and above |
| Card art | image_url | Enterprise plan |
Pricing is at /pricing.
What null means on the fields people ask about:
foreign_transaction_feeis often null, especially on Canadian cards. Null means not recorded, not "no fee".min_incomeis usually null on US cards, because issuers rarely publish one.cap_amounton a rate is null when CardAPI has no cap recorded.reward_ratescan be empty, for example on a card whosereward_currencyisnone.last_verifiedis set on almost every card. Show it to your users where freshness matters.
A note for TypeScript users
The Card type in @cardapi/client declares every field, including those above your plan. On a Free key those fields are missing from the JSON, so they are undefined at runtime: check === undefined for "not on your plan" and === null for "unknown".
function foreignTransactionFee(card) {
if (card.foreign_transaction_fee === undefined) return "not on plan"; // the field is above your plan
if (card.foreign_transaction_fee === null) return "unknown"; // CardAPI has no value recorded
return card.foreign_transaction_fee;
}Why there's no CSV download
The licence. Among the things the terms rule out: "Re-serve the raw data to others: offer it through an API or data feed of your own, as a CSV or spreadsheet download, or as any other bulk export. An API that only your own site or app uses to show the data to its users is fine."
What you may do: "While your plan is active, you may display CardAPI data to the users of your own website, app, product or content, and store or cache API responses in order to do that." Full text at /terms.
A file goes stale. Card records change most weeks. Welcome offers change most, then minimum spend; fee changes are rarer but happen. A file saved months ago will be wrong on many cards' offers. CardAPI re-checks issuer sites every Friday, and the public weekly log is at /changes.
To track changes in your app:
GET /v1/cards/:slug/history: changed fields on one card (Pro plan and above).GET /v1/offers/history: offer changes on one card (Pro plan and above).- Webhooks such as
card.updated(Enterprise plan).
GET /v1/product-changes is not for this: it lists upgrade and downgrade paths between cards.
Getting every card
GET /v1/cards returns cards sorted by name:
limit: results per page. Default 20; values above 100 are treated as 100.offset: results to skip. Default 0.- Filters:
country,issuer,network,type,max_annual_fee,no_annual_fee,credit_score,include_discontinued.
Loop with offset += limit until offset reaches total, keeping the filters and limit the same. A card added mid-loop can shift a page, so dedupe by slug. Each page is one call against your quota; limits are at /docs/rate-limits.
import { CardAPI } from "@cardapi/client";
const api = new CardAPI({ apiKey: process.env.CARDAPI_API_KEY });
async function* allCards(filters = {}) {
const limit = 100;
const seen = new Set();
let offset = 0;
while (true) {
const page = await api.getCards({ ...filters, limit, offset });
const fresh = page.data.filter((card) => !seen.has(card.slug)); // a card added mid-loop can shift a page
fresh.forEach((card) => seen.add(card.slug));
if (fresh.length > 0) yield fresh;
if (page.data.length === 0 || offset + page.data.length >= page.total) return;
offset += limit;
}
}
for await (const cards of allCards({ country: "CA" })) {
await saveToMyDatabase(cards); // your own database, to show your own users
}Store and cache the results to show your own users, and refresh daily or weekly. Don't republish them as a file or feed. If your plan ends, delete what you stored within 30 days. Reference: /docs#get-v1-cards.
Next
Get a key with the quickstart (no credit card required), show the cards with building a comparison site, and see every field in /docs/fields. An AI assistant can read the same card object through @cardapi/mcp (/docs/mcp).
Related guides
- Credit card data APIs compared: CardAPI next to other credit card data APIs, each row from that product's own public pages and dated.
- Give an AI agent live credit card data: Tool definitions and handler code for an LLM agent, plus the MCP server for Claude, Cursor and VS Code.
- MCP is live: CardAPI's card data in Claude and Cursor: What the MCP server is, questions to ask it, how to install it, the tools each plan can use and where it is listed.
- Plaid + CardAPI: from a linked card to its reward rates: Match a Plaid credit account to a card, have the user confirm it, then score transactions by category.
- A "which card should I use?" endpoint with /v1/cards/best: Rank cards by what they earn in a spending category: the filters, store exclusions, wallet ranking and point values.
- Issuer application rules as data, and an eligibility warning built on them: The two rules endpoints, the rule object, a warning built from a rule and the user's own cards, and where the Canadian bank restrictions live.
- Build a credit card comparison site with Next.js: A step-by-step walkthrough with the SDK and incremental static regeneration.