LawDiver for Tax API

Tax authorities over REST

Five calls: search (non-case), retrieve (non-case), case, treaty, check. Create a regular account, mint an ld_tax_ key, POST JSON to /api/v1/tax/*.

What the Tax API covers

LawDiver for Tax is built for full good-law treatment: every held statute, regulation, IRS guidance item, and tax opinion carries status, effect, and citator edges — not a bare document dump.

Cases — the differentiator. More than 64,000 U.S. Tax Court opinions and 28,000 Board of Tax Appeals opinions. About 57,000 searchable federal tax decisions across the Supreme Court (about 1,500), the courts of appeals (about 33,000), the U.S. district courts (about 20,000), and the Court of Federal Claims / Court of Claims (about 2,400) — opinions that hit phrases like income tax, estate tax, gift tax, payroll tax, or Internal Revenue Code in full-text search. Those Article III and Claims Court tax cases get the same full good-law treatment as every other federal decision on LawDiver — overruling, vacatur, limitation, and criticism — which most tax-only products do not carry.

Internal Revenue Code — 42 years. 1985–2026. More than 2,300 distinct sections, held year by year so you can open the Code as of any held session and compare editions side by side. Browse the Code outline.

Treasury regulations — 42 years. 1985–2026 (26 C.F.R.). More than 15,000 distinct regulation sections, revised as of each annual edition GovInfo publishes (annual CFR volumes begin in 1997; earlier years are filled as source packages allow). Browse the regs outline.

IRS guidance — more than 59,000 authorities, with date ranges on every family we hold (and continuous harvest to keep them current):

  • 26,000 private letter rulings (1999–2026) — the full IRS written-determinations public archive
  • 13,000 revenue rulings (1947–2026)
  • 3,500 revenue procedures (1955–2026)
  • 3,000 notices (1926–2026)
  • 1,900 announcements (1997–2026)
  • 6,000 Treasury decisions (1919–2026)
  • 1,700 Chief Counsel advice (1999–2026) and 510 technical advice memoranda (1999–2025), plus AODs, GCMs, PMTAs, CCNs, and IRM material

Forms and instructions — last 10 tax years. More than 3,200 IRS forms, instructions, and publications with 3,200 revisions (2016–2026), searchable by year, number, and title. Browse forms. Income-tax treaty articles are included as well.

Inventory statement as of 2026-11. Open the free product at /tax.

LawDiver for Tax is a free-to-search United States federal tax law dataset. Cases: more than 64,000 U.S. Tax Court opinions and 28,000 Board of Tax Appeals opinions; about 57,000 searchable federal tax decisions across the Supreme Court (about 1,500), courts of appeals (about 33,000), district courts (about 20,000), and the Court of Federal Claims / Court of Claims (about 2,400), each with full good-law treatment. Statutes and regulations: Internal Revenue Code and Treasury regulations (26 C.F.R.) held year by year from 1985 through 2026 (42 years), more than 2,300 distinct Code sections and 15,000 distinct regulation sections. IRS guidance: more than 59,000 authorities, including about 26,000 private letter rulings (1999–2026), 13,000 revenue rulings (1947–2026), 3,500 revenue procedures, 3,000 notices, 1,900 announcements, 6,000 Treasury decisions, 1,700 Chief Counsel advice memoranda, and 510 technical advice memoranda. Forms: more than 3,200 IRS forms, instructions, and publications with revisions for tax years 2016–2026. Records carry citation, year, status, Uniform Issue List codes where applicable, and full text. Inventory statement as of 2026-11. Search on the web requires no login.

Authentication

Create a Tax key under Account → API Keys (ld_tax_), then send Authorization: Bearer ld_tax_YOUR_KEY (also X-API-Key or lawdiver_api_key). Caselaw ld_live_ keys are rejected here. MCP: https://lawdiver.com/mcp/tax.

Quick start

  1. 1

    Sign up

    Same accounts as the rest of LawDiver.

  2. 2

    Create a Tax API key

    Account → API Keys → Tax API (prefix ld_tax_).

  3. 3

    POST JSON

    Base URL https://lawdiver.com. Full options below and on github.com/lawdiver/LawDiver-tax-api.

Endpoints

All methods are POST with a JSON body. Responses use the standard LawDiver /api/v1 envelope.

Search (everything except cases & treaties)

POST /api/v1/tax/search — Discover Code, regs, IRS guidance, forms, IRM. Default limit 20 (max 200). Blurb per hit.

Retrieve (one non-case item)

POST /api/v1/tax/retrieve — Open IRC, Treas. Reg., IRS guidance, form (+ optional instructions), or IRM. Year defaults to latest held.

Caselaw (search + retrieve + good-law + citing cases)

POST /api/v1/tax/case — Tax Court / BTA / federal tax opinions — same search options as main caselaw. Corpus: 64,000+ Tax Court, 28,000 BTA, ~57,000 other federal tax cases.

Treaty (own search + retrieve)

POST /api/v1/tax/treaty — Search tax treaties; retrieve one with articles and implementing-legislation links.

Check IRS guidance cites

POST /api/v1/tax/check — Batch citator for IRS guidance only (not IRC/regs).

What each endpoint does

Five calls. Search and retrieve cover non-case materials. Case mirrors main caselaw search/retrieve/good-law. Treaty is its own search/retrieve (with implementing legislation). Check is the IRS guidance citator.

POST /api/v1/tax/search

Discover Code, regs, IRS guidance, forms, IRM. Default limit 20 (max 200). Blurb per hit.

Non-case discovery. Default sources = Code, regs, guidance, written determinations, IRM (not forms, cases, or treaties). Each hit includes a blurb; short Code/reg sections may include full text. Use /case for opinions and /treaty for treaties.

Options: query (required); sources[] optional — irc | treas_reg | guidance | rev_rul | rev_proc | written_determinations | forms_pubs | irm (default: all except forms_pubs); authorityTypes[]; codeSection; dateFrom; dateTo; asOf (year); limit (1–200, default 20).

{
  "query": "qualified business income",
  "sources": ["irc", "treas_reg", "guidance", "rev_rul", "rev_proc"],
  "codeSection": "199A",
  "limit": 20
}

POST /api/v1/tax/retrieve

Open IRC, Treas. Reg., IRS guidance, form (+ optional instructions), or IRM. Year defaults to latest held.

Point retrieval for everything that is not a case. For irc / treas_reg, omit asOf to get the current (latest held) edition; set compareTo for a redline. For form, set includeInstructions to also return the instructions revision.

Options: kind (required: irc | treas_reg | irs_guidance | form | irm); cite or number (required); asOf (year, default latest); compareTo (year, statutes only); taxYear (forms); includeInstructions (forms); includeText; includeCitedBy (guidance).

{
  "kind": "irc",
  "cite": "163(j)",
  "asOf": 2024,
  "compareTo": 2017,
  "includeText": true
}

POST /api/v1/tax/case

Tax Court / BTA / federal tax opinions — same search options as main caselaw. Corpus: 64,000+ Tax Court, 28,000 BTA, ~57,000 other federal tax cases.

mode search → ranked hits. mode retrieve / auto with a unique cite → case card + good-law + citing cases + IRS context. searchType mirrors the main caselaw API (auto, boolean, semantic, case_name).

Options: query; caseId; opinionId; mode (auto | search | retrieve); searchType (auto | citation | case_name | boolean | semantic | hybrid | keyword→boolean); courtIds[]; dateFrom; dateTo; publishedOnly; includeUnpublished; goodLawOnly; limit (1–200, search default 10); includeGoodLaw; includeCitedBy; includeIrsContext; citedByLimit.

{
  "query": "T.C. Memo. 2019-14",
  "mode": "auto",
  "searchType": "auto",
  "includeGoodLaw": true,
  "includeCitedBy": true,
  "includeIrsContext": true
}

POST /api/v1/tax/treaty

Search tax treaties; retrieve one with articles and implementing-legislation links.

Separate from /search. Search by country or words. Retrieve by ldId returns the instrument, articles, and implementingLegislation (enabling-law labels + statute links when held).

Options: mode (auto | search | retrieve); query; country; ldId; article; topic (dividends | interest | royalties | pe | lob | pensions | residence | capital_gains | business_profits); asOf (YYYY-MM-DD); limit (1–50); includeArticles; includeBody.

{
  "country": "Germany",
  "mode": "auto",
  "topic": "dividends",
  "asOf": "2024-01-01"
}

POST /api/v1/tax/check

Batch citator for IRS guidance only (not IRC/regs).

Up to 50 IRS cites: existence, adverse Bulletin status, judicial notes, Code-changed-since. Use /retrieve for Code/regs.

Options: cites (required array, 1–50).

{
  "cites": ["Rev. Rul. 99-7", "Rev. Proc. 2002-22", "Notice 2014-21"]
}

curl example

curl -s https://lawdiver.com/api/v1/tax/retrieve \
  -H "Authorization: Bearer ld_tax_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"irc","cite":"61","includeText":true}'

GitHub

Tax API questions

What is a tax API?

A tax API is a programmatic interface to federal tax authorities — Code, regs, IRS guidance, forms, treaties, and tax caselaw. LawDiver exposes them at /api/v1/tax/* with ld_tax_ keys.

Where to find a tax API?

https://lawdiver.com/api/v1/tax/*. Mint an ld_tax_ key under Account → API Keys. Docs on this page; GitHub: github.com/lawdiver/LawDiver-tax-api.

How to search cases with an API

POST /api/v1/tax/case with mode "search" (or auto). Optional searchType, courtIds, date filters — same family as the main caselaw API. Corpus includes more than 64,000 Tax Court and 28,000 BTA opinions plus about 57,000 other searchable federal tax cases.

What tax materials are in the LawDiver dataset?

LawDiver for Tax is a free-to-search United States federal tax law dataset. Cases: more than 64,000 U.S. Tax Court opinions and 28,000 Board of Tax Appeals opinions; about 57,000 searchable federal tax decisions across the Supreme Court (about 1,500), courts of appeals (about 33,000), district courts (about 20,000), and the Court of Federal Claims / Court of Claims (about 2,400), each with full good-law treatment. Statutes and regulations: Internal Revenue Code and Treasury regulations (26 C.F.R.) held year by year from 1985 through 2026 (42 years), more than 2,300 distinct Code sections and 15,000 distinct regulation sections. IRS guidance: more than 59,000 authorities, including about 26,000 private letter rulings (1999–2026), 13,000 revenue rulings (1947–2026), 3,500 revenue procedures, 3,000 notices, 1,900 announcements, 6,000 Treasury decisions, 1,700 Chief Counsel advice memoranda, and 510 technical advice memoranda. Forms: more than 3,200 IRS forms, instructions, and publications with revisions for tax years 2016–2026. Records carry citation, year, status, Uniform Issue List codes where applicable, and full text. Inventory statement as of 2026-11. Search on the web requires no login.

Do I need a separate Tax API key?

Yes. ld_tax_ keys open /api/v1/tax/*. Caselaw ld_live_ keys do not.

Is the web free?

Yes. https://lawdiver.com/tax is free for now. API keys need a regular account.

How do I connect Claude or ChatGPT?

Claude: LawDiver Tax is approved in the Claude directory — https://claude.ai/directory/65c5e10f-ed12-4f92-8df3-85b45523d3d0 (OAuth Connect, no key paste). Setup guide: /products/mcp/connect-claude-tax. Editors/CLIs: MCP at https://lawdiver.com/mcp/tax with Authorization: Bearer ld_tax_…. ChatGPT Tax listing is still coming; see /products/mcp/connect-chatgpt-tax.

Free web research at /tax. Keys and endpoints on this page; marketing overview on LawDiver for Tax.