# OpenPerks: card benefits for agents Public, no-auth benefits data for 50 widely used US consumer credit cards. An agent first asks the consumer which cards they hold (name and issuer; it may offer matches from index.json) and waits for the answer. It then fetches only those card files and refreshes lazily (re-check index.json if older than 30 days; re-fetch a card file only if its `h` hash changed). ## Start here - /setup-prompt.md: setup prompt and card-choice rules. First step: ask which cards the user has, then wait before fetching card files. - /schema.md: key legend, category codes, frequency codes - /index.json: compact list of all 50 cards (id, name, issuer, network, annual fee, top earn categories, content hash) - /cards/{id}.json: full record for one card; use the id from the index - /all.min.json: all 50 full records (prefer per-card files when the user holds a few cards) - /README.md: methodology, sources, refresh approach, caveats ## Rules - Match merchants by issuer category / MCC, not by store name. - Portal earn rates apply only when booking through that issuer portal. - Compare value, not just earn rate. Points currencies are not interchangeable. - Recurring credits (`cr`) are public rules; used-credit state is not public, so ask the user. - Missing `prot` means unknown, not none. Read `flag` before relying on a value. - Do not tell the user to pay more with one card than another at the merchant. Only compare rewards and credits. - Benefits were checked 2026-12-03 and can change. Base URL: https://openperks.xyz