cbic-exchange-rate
v1.3.30
Published
Official Central Board of Indirect Taxes and Customs (CBIC) (India) fortnightly exchange rates — 22 currencies vs INR, history since 2020. Zero-dependency Node.js/TypeScript client.
Maintainers
Keywords
Readme
Central Board of Indirect Taxes and Customs (CBIC) Exchange Rates API — cbic-exchange-rate
Official Central Board of Indirect Taxes and Customs (CBIC) (India) fortnightly exchange rates for Node.js and TypeScript. The published tax authority rates behind tax filings, customs valuations, audits, and compliant invoicing — not market estimates, but the numbers Central Board of Indirect Taxes and Customs (CBIC) itself prints, about every fortnight.
🚀 Why this client?
- 🏛️ Official rates — Central Board of Indirect Taxes and Customs (CBIC)'s own table, with the publisher's own
rate_dateon every response - 📅 History back to 2020 — point-in-time tables and daily series for any past date
- 🔀 Official vs derived, always flagged — computed inverse/cross pairs carry
derived: true, never mixed with official prints - ⚡ Zero dependencies — pure ESM + CJS over global
fetch; Node 18+, Bun, Deno, and edge runtimes - 🔷 Type-safe — full TypeScript definitions shipped with the package
- 🧾 Compliance-grade metadata —
rate_type, publication date, and source disclaimer on every response
Official rate, not mid-market: every value here is a number Central Board of Indirect Taxes and Customs (CBIC) itself published, fixed once printed and carrying the tax authority's own
rate_date— what filings and audits require. Need the live mid-market rate for pricing or display instead? Use the mid-market API or@allratestoday/sdk. The two can diverge by several percent.
🔑 Get your API key
Get a free API key at allratestoday.com/register — no credit card required. Latest rates are on every plan, including free.
📈 Latest official table
The image is rendered live from the keyless endpoint, so it follows the tax authority's publications on npm and on GitHub alike without a new release. The same table as text is folded below for search and copy-paste: on GitHub a daily Action refreshes it whenever the tax authority publishes a new table; on npm it is as of the package's publish date.
| Base | Quote | Type | Rate | | --- | --- | --- | ---: | | AED | INR | export | 25 | | AED | INR | import | 26.5 | | AUD | INR | export | 64.85 | | AUD | INR | import | 67.75 | | BHD | INR | export | 235.85 | | BHD | INR | import | 266.05 | | CAD | INR | export | 66.65 | | CAD | INR | import | 68.85 | | CHF | INR | export | 113.65 | | CHF | INR | import | 118.65 | | CNY | INR | export | 13.9 | | CNY | INR | import | 14.4 | | DKK | INR | export | 14.05 | | DKK | INR | import | 14.45 | | EUR | INR | export | 104.65 | | EUR | INR | import | 108.3 | | GBP | INR | export | 125.5 | | GBP | INR | import | 129.55 | | HKD | INR | export | 11.9 | | HKD | INR | import | 12.2 | | JPY | INR | export | 0.5895 | | JPY | INR | import | 0.608 | | KRW | INR | export | 0.0685 | | KRW | INR | import | 0.0725 | | KWD | INR | export | 294.95 | | KWD | INR | import | 313.7 | | NOK | INR | export | 10.05 | | NOK | INR | import | 10.3 | | NZD | INR | export | 52.1 | | NZD | INR | import | 54.8 | | QAR | INR | export | 24.3 | | QAR | INR | import | 27.7 | | SAR | INR | export | 23.95 | | SAR | INR | import | 26.6 | | SEK | INR | export | 9.65 | | SEK | INR | import | 9.85 | | SGD | INR | export | 72.8 | | SGD | INR | import | 75.35 | | TRY | INR | export | 1.85 | | TRY | INR | import | 1.95 | | USD | INR | export | 93.65 | | USD | INR | import | 95.35 | | ZAR | INR | export | 5.6 | | ZAR | INR | import | 5.95 |
Source: Official rates published by CBIC, served by AllRatesToday. Rates are as printed by the tax authority; AllRatesToday is not affiliated with it.
📦 Installation
npm install cbic-exchange-rateyarn add cbic-exchange-ratepnpm add cbic-exchange-rateRequires Node 18+ (global fetch); also runs on Bun, Deno and edge runtimes. Also published under the org scope as @allratestoday/cbic-exchange-rate — same code, same versions.
🏁 Quick start
import { getRate } from 'cbic-exchange-rate';
const pair = await getRate('USD', 'INR', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date); // the official Central Board of Indirect Taxes and Customs (CBIC) rate, on the tax authority's own date📚 API reference
- Latest pair rate — one pair from the latest official table
- Full official table — everything the tax authority printed, in one call
- Table for a date — the official table for an invoice or filing date
- Daily time series — one pair across a date range
Latest pair rate
Free plan and up. Pairs the tax authority does not print directly are resolved from its table and flagged (see Official vs derived rates below).
const pair = await getRate('USD', 'INR', { apiKey: 'art_live_...' });Response:
{
bank: 'cbic',
name: 'Central Board of Indirect Taxes and Customs (CBIC)',
rate_date: '2026-11-06', // Central Board of Indirect Taxes and Customs (CBIC)'s own publication date
source: 'USD',
target: 'INR',
rate: 93.65,
rate_type: 'export',
derived: false,
method: 'published',
disclaimer: 'Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned.'
}Full official table
Free plan and up. The complete table for the latest publication date.
import { getLatestRates } from 'cbic-exchange-rate';
const table = await getLatestRates({ apiKey: 'art_live_...' });
console.log(table.rate_date, table.rates.length);Response:
{
bank: 'cbic',
name: 'Central Board of Indirect Taxes and Customs (CBIC)',
rate_date: '2026-11-06',
rates: [
{ "base": "USD", "quote": "INR", "type": "export", "value": 93.65 },
{ "base": "USD", "quote": "INR", "type": "import", "value": 95.35 },
// … the rest of the official table (22 currencies vs INR)
],
disclaimer: '…'
}Table for a date
Paid plans. The official table for any date since 2020 — weekends and holidays return the most recent published date, flagged via published_on_requested_date, which is exactly the in-force rate a filing needs.
import { getRatesForDate } from 'cbic-exchange-rate';
const day = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...' });
// Optionally narrow to one pair:
const one = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...', source: 'USD', target: 'INR' });Response:
{
bank: 'cbic',
requested_date: '2026-06-30',
rate_date: '2026-06-30', // the date actually published
published_on_requested_date: true, // false when a weekend/holiday fell back
rates: [ /* the full table for that date */ ],
disclaimer: '…'
}Daily time series
Paid plans. One resolved rate per publication date — ready for charting, revaluation runs, or audit workpapers.
import { getHistory } from 'cbic-exchange-rate';
const series = await getHistory(
{ source: 'USD', target: 'INR', from: '2026-01-01', to: '2026-11-06' },
{ apiKey: 'art_live_...' }
);Response:
{
bank: 'cbic',
source: 'USD',
target: 'INR',
from: '2026-01-01',
to: '2026-11-06',
count: 152,
rates: [
// one entry per publication date
{ date: '2026-11-06', rate: 93.65, rate_type: 'export', derived: false, method: 'published' },
// …
],
disclaimer: '…'
}Pass { symbol: 'USD' } instead of source/target to get the raw published rows for one currency (all rate types, no pair resolution).
🗺️ Currencies covered
Central Board of Indirect Taxes and Customs (CBIC) currently publishes rates covering 22 currencies against the INR (as of the latest table):
🇦🇪 AED · 🇦🇺 AUD · 🇧🇭 BHD · 🇨🇦 CAD · 🇨🇭 CHF · 🇨🇳 CNY · 🇩🇰 DKK · 🇪🇺 EUR · 🇬🇧 GBP · 🇭🇰 HKD · 🇯🇵 JPY · 🇰🇷 KRW · 🇰🇼 KWD · 🇳🇴 NOK · 🇳🇿 NZD · 🇶🇦 QAR · 🇸🇦 SAR · 🇸🇪 SEK · 🇸🇬 SGD · 🇹🇷 TRY · 🇺🇸 USD · 🇿🇦 ZAR
🏛️ Source
The Central Board of Indirect Taxes and Customs (CBIC) notifies the customs exchange rates for India under Section 14 of the Customs Act, 1962 — the rates at which the value of imported and exported goods is converted into rupees on a Bill of Entry or Shipping Bill, and the rates GST valuation rules borrow for imports. A notification is issued roughly every fortnight, takes effect the following day, and carries two rates per currency: one for imported goods and one for exported goods. They are set off State Bank of India card rates, so they sit a few percent either side of the Reserve Bank of India's reference rate by design.
- Publisher's own page: Exchange rate notifications (ICEGATE) · www.cbic.gov.in
- Publication: about every fortnight; the exact schedule, freshness status and any current delay are on the Central Board of Indirect Taxes and Customs (CBIC) rates page
- Values are stored unmodified, with the publisher's own
rate_dateon every row — see the methodology
🧭 Reading the numbers
valueis always quote currency per 1 unit of base currency (base: "EUR", quote: "USD", value: 1.15means 1 EUR = 1.15 USD).- Central Board of Indirect Taxes and Customs (CBIC) quotes INR per 1 unit of foreign currency (e.g.
base: "USD", quote: "INR"means INR per one US dollar). - Need the other way round? Ask
getRate(target, source)and the API inverts or crosses for you, flaggedderived: true— never divide a published rate yourself in a compliance workflow. rate_typetells you which of the tax authority's series a row belongs to (exporthere); some publishers print buy/sell or several fixings for the same pair.
🧩 ERP & accounting systems
Loading the official Central Board of Indirect Taxes and Customs (CBIC) rate into an accounting system is a supported workflow, not a hack. Step-by-step guides with the direction each system expects:
- Dynamics 365 Business Central — built-in Currency Exchange Rate Service, no code
- Xero · QuickBooks Online · SAP S/4HANA and ECC · Odoo
The same keyed endpoints return ?format=csv, ?format=xml and ?format=xlsx, and accept the key as ?api_key= on the URL for importers that cannot send headers:
curl "https://allratestoday.com/api/v1/central-bank/cbic/latest?format=xml&api_key=art_live_..."🤖 AI agents
- MCP server:
npx -y @allratestoday/central-bank-mcp(stdio) or the hosted endpointhttps://allratestoday.com/api/mcp— tools for official rates, history, cross-bank comparison and publication calendars - Already using the general SDK or MCP server? Since 2026-10-01
@allratestoday/sdk1.4+ hasofficialRates('cbic')and@allratestoday/mcp-server0.6+ has aget_official_ratestool — both return this source's latest table with no key, so you can add it without a second dependency - Claude Code plugin (no key):
/plugin marketplace add AllRates-Today/claude-code-pluginthen/plugin install allratestoday@allratestoday— bundles both MCP servers plus an/official-rate cbic ...command - Evaluating? Agents can self-issue a trial key with no signup:
POST https://allratestoday.com/api/agent/keys(sendContent-Type: application/json) returns a 100-call key valid 7 days that covers the free-plan methods (latest table, pairs); dated tables and history need a paid plan. The MCP servers expose it asrequest_trial_key - Machine-readable site guide: llms.txt · for-ai-agents
⚖️ Official vs derived rates
If Central Board of Indirect Taxes and Customs (CBIC) does not print a pair directly, the API resolves it from the tax authority's own table and says so — official and computed values are never confused:
| method | derived | Meaning |
| --- | --- | --- |
| published | false | The tax authority printed this pair directly |
| inverse | true | Computed as 1 ÷ the published opposite direction |
| cross | true | Computed via INR from two published rates |
🛡️ Error handling
Errors are thrown as Error with status (HTTP code) and body (the API's JSON error) attached:
try {
const pair = await getRate('USD', 'XXX', { apiKey: 'art_live_...' });
} catch (err) {
console.log(err.message); // human-readable reason
console.log(err.status); // e.g. 404
}| Status | Meaning |
| ------ | ------- |
| — | Missing apiKey (thrown before any request) |
| 400 | Malformed date or parameters |
| 401 | Invalid API key |
| 403 | Endpoint needs a paid plan (historical dates & series) |
| 404 | Pair or date range not covered by Central Board of Indirect Taxes and Customs (CBIC) |
| 429 | Monthly quota exceeded |
🔷 TypeScript
Full definitions ship with the package — no @types install:
import type { LatestRates, PairRate, DatedRates, RateEntry, HistoryQuery, RequestOptions } from 'cbic-exchange-rate';📦 CommonJS
const { getRate } = require('cbic-exchange-rate');
getRate('USD', 'INR', { apiKey: 'art_live_...' }).then((pair) => console.log(pair.rate));💡 Quota tips
- Rates change about once a fortnight — cache the official table locally and a small monthly quota goes a long way.
- Every request counts toward your AllRatesToday quota, shared across all AllRatesToday endpoints on your key.
📖 Methods reference
| Method | Plan | Description |
| ------ | ---- | ----------- |
| getRate(source, target, { apiKey }) | Free | Latest rate for one pair, resolved from the official table |
| getLatestRates({ apiKey }) | Free | The tax authority's full latest official table |
| getRatesForDate(date, { apiKey, source?, target? }) | Paid | The official table (or one pair) for a YYYY-MM-DD date |
| getHistory({ symbol \| source+target, from?, to? }, { apiKey }) | Paid | Daily series since 2020 |
📥 Bulk data (no key)
Need the whole archive rather than an API call? The same official tables are mirrored daily as open data:
- Hugging Face: AllRatesToday/central-bank-exchange-rates — one CSV per institution (
rates/cbic.csv) - Kaggle: allratestoday/central-bank-exchange-rates
- Raw JSON on GitHub:
https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/cbic/latest.json
🔗 Links
- Website: allratestoday.com
- Central Board of Indirect Taxes and Customs (CBIC) rates page — live table, publication cadence, FAQ
- All tax authority sources · Full list of 130+ central banks and tax authorities — one API, the same response shape for every source
- Download central bank rates — every bank's latest table and history as Excel, CSV or JSON
- Package docs on the site · ERP integration guides
- API documentation · Interactive reference · Methodology
- Register (Free) · Dashboard · Pricing
- Status
- Postman collection
- ChatGPT app — ask ChatGPT for live and official central bank rates
- OpenAPI reference on Bump.sh — also on SwaggerHub
- GitHub
📜 License
MIT
