Skip to main content

Citation Lookup API: Build a Brief Checker in One Request

Short answer: To check the case citations in a brief with a citation lookup API, send the brief's text to POST /us/cases/resolve. One request takes up to 200,000 characters of text and up to 300 distinct citations, or a list of up to 100 citation strings. It finds each citation, including Id. short forms, and returns one row per citation with a status: resolved, ambiguous, not_found or unparsed. A checker turns the rows into a report and sends every ambiguous and not_found row to a person. An existence check stops there. It does not tell you that the case name is right, the quote is verbatim, the pinpoint is correct or the case supports the point.

Written and checked on 25 November 2026. This is general information, not legal advice; check the cited opinion before relying on it.

TL;DR

  • One request, not one per citation. text takes up to 200,000 characters and 300 distinct citations. citations takes up to 100 strings. More than 300 distinct citations in text is a 422, so split the brief first.
  • Four statuses, three buckets. resolved goes to a reader. ambiguous and not_found go to a person with the reason attached. The checker never picks a record on its own.
  • The extractor can skip a citation. In the run below, a Westlaw citation got no row at all, so the checker scans for it separately.
  • The run is real. One request on 25 November 2026 returned 11 rows for a test paragraph: 6 resolved, 3 ambiguous and 2 not found. Gideon, Florida v. J.L. and Lindke each matched more than one record.

Order text, as of 25 November 2026

Order: Whiting v. City of Athens, Nos. 24-5918/5919 and 25-5424 (6th Cir. March 13, 2026). Its appendix lists the fake citations and misstatements the court found in briefs filed for the appellant and in the show-cause responses.

What it says, verbatim: On a cite to "Jones v. Hamilton Cnty., 29 F.4th 647, 655 (6th Cir. 2022)": "The Federal Reporter citation does not correspond with a Sixth Circuit decision." (slip op. at 18). On a Westlaw cite to "Berg v. Knox Cnty., TN": "We cannot find this case. The WL citation does not generate a case." (slip op. at 19).

Read from: the court's opinion PDF, on 25 November 2026. The test paragraph below reuses six citation strings from that appendix, written as the brief wrote them (the pinpoint after Fox is added here). The order's findings on each are what the checker's output is compared with later. For the order as a whole, see how to check case citations in four checks.

What would you do?
Question 1 of 4

Your checker sends a brief and gets back a row for 372 U.S. 335 with status ambiguous. It lists two records, both named Gideon v. Wainwright, same court and decision date, with different cited-by counts. What should the report do?

Who this is for and what you need

This is for an engineer building a cite checker, or a litigator's ops person asking an engineer for one. You need an API key from your dashboard, described in the authentication docs, sent as Authorization: Bearer <key>. The code reads it from an environment variable named VAQUILL_API_KEY. The base URL is https://api.vaquill.ai/api/v1/us. The request is documented under Check the citations in a brief and Search and read cases.

How the output here was obtained: the resolve request in step 2 was run against the Vaquill API on 25 November 2026 with a real key, and the response in step 3 is trimmed from it. The report function in step 4 was run offline on that saved response, so it did not cost a second request. The curl line was not run against the API. This page covers US case law only.

What one request takes

InputLimitWhat you get
text200,000 characters and 300 distinct citationsEvery citation found, full and short forms, each with start and end positions in your text
citations100 stringsOne row per string, in the order sent. Send 410 U.S. 113, without the case name

The MCP tool resolve_case_citations takes the same two inputs: citations (up to 100) or text (up to 200,000 characters). A text with more than 300 distinct citations is a 422, so split it. You pay per distinct citation: a repeated citation counts once, and a string that is not a citation is not charged. The response reports distinctCitations and creditsConsumed. Send an Idempotency-Key header so a retry is safe.

The four statuses, from the docs:

statusMeaning
resolvedOne case matches
ambiguousSeveral records match, sometimes copies of one case. See candidates
not_foundThe data holds no case with this citation
unparsedThe string is not a citation

The test paragraph

The input is a paragraph written for this post. It is not a filing, and the pinpoints in it are there only to show the pinpoint field, which the checker does not check.

Argument. The appellant relies on Gideon v. Wainwright, 372 U.S. 335 (1963), and Florida v. J.L., 529 U.S. 266 (2000). He also cites Brown v. Board of Education, 347 U.S. 483, 495 (1954), and Miranda v. Arizona, 384 U.S. 436 (1966). On fees he turns to Fox v. Vice, 563 U.S. 826, 838 (2011). Id. at 836. On due process he cites Espinosa v. United Student Aid Funds, Inc., 559 U.S. 260, 272 (2010). On false speech he cites United States v. Alverez, 567 U.S. 709, 721 (2012), and on state action Lindke v. Freed, 601 U.S. 187 (2024). On sanctions he cites Jones v. Hamilton Cnty., 29 F.4th 647, 655 (6th Cir. 2022), and Berg v. Knox Cnty., TN, 2024 WL 2012345, at *4 (6th Cir. Mar. 12, 2024). Last, he cites Reyes v. Imaginary Holdings, Inc., 987 F.3d 6543, 6550 (11th Cir. 2021).

Where the citations come from:

  • From the Whiting appendix, as that brief wrote them, apart from the added Fox pinpoint: Fox v. Vice, Espinosa, "Alverez", Lindke, "Jones v. Hamilton Cnty." and "Berg v. Knox Cnty." The misspelling of Alvarez is the brief's, as the order prints it.
  • Well-known Supreme Court cases: Gideon, Florida v. J.L., Brown and Miranda.
  • Fabricated for this post: Reyes v. Imaginary Holdings, Inc., 987 F.3d 6543 (11th Cir. 2021). The parties are made up and so are the volume and page. No filing cites it.

Try it

Four steps: extract, resolve in one request, read the response, report.

1. Pull the citations out (optional)

You can skip this. In text mode the API finds the citations itself. A short pre-pass is still worth having: it tells you how many distinct citations you are about to send, and it catches strings the API gives no row for.

import re

# Reporter cites only: volume, reporter, first page. Westlaw numbers are matched separately.
REPORTER = re.compile(r"\b\d{1,4} (?:U\.S\.|S\. Ct\.|F\. Supp\. [23]d|F\.(?:2d|3d|4th)) \d{1,4}\b")
WESTLAW = re.compile(r"\b\d{4} WL \d+")

Run on the test paragraph, REPORTER.findall returned ten strings, in order: 372 U.S. 335, 529 U.S. 266, 347 U.S. 483, 384 U.S. 436, 563 U.S. 826, 559 U.S. 260, 567 U.S. 709, 601 U.S. 187, 29 F.4th 647 and 987 F.3d 6543. WESTLAW.findall returned 2024 WL 2012345. The ten match the distinctCitations of 10 in the response below.

The limits are the point. This was tested on this one paragraph. It is not written to match state reporters, the Lawyers' Edition, F. App'x, the old 5 U.S. (1 Cranch) 137 form, Lexis numbers or a citation split across a line break, and a single Id. is not a reporter cite at all. Use it to count and to cross-check, not as the extractor. If you send your own list in citations instead, strip the case names first.

2. Resolve in one request

The request, with the brief's text in one field:

jq -Rs '{text: .}' brief.txt | curl -X POST https://api.vaquill.ai/api/v1/us/cases/resolve \
  -H "Authorization: Bearer $VAQUILL_API_KEY" \
  -H "Content-Type: application/json" \
  -d @-

That curl line was not run against the API. The same request body was sent from Python on 25 November 2026:

import os
import requests

API = "https://api.vaquill.ai/api/v1/us"


def resolve(brief):
    """One request: the API finds every case citation in the text and resolves each."""
    resp = requests.post(
        f"{API}/cases/resolve",
        headers={"Authorization": f"Bearer {os.environ['VAQUILL_API_KEY']}"},
        json={"text": brief},
        timeout=60,
    )
    resp.raise_for_status()
    return resp.json()

3. The response

Response on 25 November 2026, trimmed to four of the eleven rows (rows 1, 3, 4, 6, 7, 8 and 10 are left out; creditsConsumed, processingTimeMs, statusCases, caseStatus and most case and candidate fields are cut):

{
  "results": [
    {
      "index": 0,
      "status": "ambiguous",
      "case": null,
      "candidates": [
        { "caseId": "USCASE_DE56583FBFB22C1A2854", "caseName": "Gideon v. Wainwright", "docketNumber": "155",
          "court": { "courtId": "US_FED_SCOTUS" }, "decisionDate": "1963-03-18", "citedByCount": 6085,
          "leadOpinionId": "USOP_A81A2E1ACDCB57E58D63" },
        { "caseId": "USCASE_DE8506AF1050089F250C", "caseName": "Gideon v. Wainwright", "docketNumber": "No. 155",
          "court": { "courtId": "US_FED_SCOTUS" }, "decisionDate": "1963-03-18", "citedByCount": 6950,
          "leadOpinionId": "USOP_E1A9CB25ECC04A0CCF17" }
      ],
      "matched": "372 U.S. 335", "citation": "372 U.S. 335", "start": 56, "end": 68, "form": "full", "pinpoint": null
    },
    {
      "index": 2,
      "status": "resolved",
      "case": { "caseId": "USCASE_33D41ED22367502543CB", "caseName": "Brown v. Board of Education",
                "decisionDate": "1954-05-17", "leadOpinionId": "USOP_FD875FE2008EAAA71841" },
      "matched": "347 U.S. 483", "citation": "347 U.S. 483", "start": 162, "end": 174, "form": "full", "pinpoint": "495"
    },
    {
      "index": 5,
      "status": "resolved",
      "case": { "caseId": "USCASE_5BECAA63D322CFD59BDB", "caseName": "Fox v. Vice", "decisionDate": "2011-06-06" },
      "matched": "Id. at 836", "citation": "563 U.S. 826", "start": 292, "end": 302, "form": "short", "pinpoint": "836", "antecedentIndex": 4
    },
    {
      "index": 9,
      "status": "not_found",
      "case": null,
      "candidates": [],
      "matched": "29 F.4th 647", "citation": "29 F.4th 647", "start": 580, "end": 592, "form": "full", "pinpoint": "655"
    }
  ],
  "count": 11,
  "resolved": 6,
  "distinctCitations": 10,
  "unresolvedShortForms": 0
}

How to read it. start and end are positions in your text, so brief[start:end] is the citation and you can underline it. form is full or short, and a short form such as Id. at 836 carries antecedentIndex, the index of the full citation it repeats. pinpoint is the page the brief printed after the citation. citation is the full citation a row stands for: for the Id. row it is the cite of the case it repeats, while matched is Id. at 836. unresolvedShortForms counts short forms the API could not tie to one earlier citation; those are left out of results. The resolved count of 6 includes the Id. row.

Count the strings in the paragraph: 12 citations, including the Id. and the Westlaw number. The response has 11 rows. The Westlaw number has none. The docs give the accepted citation format as volume reporter page, and their examples include no Westlaw numbers. Sent alone in a citations list, 2024 WL 2012345 came back not_found, and the name-only string Gideon v. Wainwright came back unparsed.

4. The report

This function turns the response into one line per citation and flags what a person must look at. It ran offline on the saved response above.

import re
from collections import Counter


def name_gap(row, brief):
    """Words (4+ letters) of the matched case name that the brief does not print just before the cite."""
    window = brief[max(0, row["start"] - 90):row["start"]].lower()
    return [w for w in re.findall(r"[a-z]{4,}", row["case"]["caseName"].lower()) if w not in window]


def report(brief, data):
    for row in data["results"]:
        status, cite = row["status"], row["matched"] or "(none)"
        if status == "resolved":
            gap = name_gap(row, brief) if row["form"] == "full" else []
            note = f"  NAME? brief lacks: {', '.join(gap)}" if gap else ""
            print(f"RESOLVED   {cite:<14} {row['case']['caseName']}{note}")
        elif status == "ambiguous":
            names = " / ".join(sorted({c["caseName"] for c in row["candidates"]}))
            ids = ", ".join(c["caseId"][-6:] for c in row["candidates"])
            print(f"AMBIGUOUS  {cite:<14} {len(row['candidates'])} records, a person picks: {names} [{ids}]")
        elif status == "not_found":
            print(f"NOT_FOUND  {cite:<14} no case in the data; search by name, court, date, docket")
        else:
            print(f"UNPARSED   {cite:<14} not read as a citation; look at the string")
    # Cross-check against your own scan (REPORTER and WESTLAW come from step 1).
    seen = {row["citation"] for row in data["results"]}
    for miss in sorted((set(REPORTER.findall(brief)) | set(WESTLAW.findall(brief))) - seen):
        print(f"NO ROW     {miss:<14} the API returned nothing for this string; check by hand")
    print(dict(Counter(r["status"] for r in data["results"])), "distinct:", data["distinctCitations"],
          "short forms left out:", data["unresolvedShortForms"])

Its output on the saved response:

AMBIGUOUS  372 U.S. 335   2 records, a person picks: Gideon v. Wainwright [1A2854, 9F250C]
AMBIGUOUS  529 U.S. 266   3 records, a person picks: Florida v. J. L. / Florida v. JL [CF5037, B97960, 9F6B50]
RESOLVED   347 U.S. 483   Brown v. Board of Education
RESOLVED   384 U.S. 436   Miranda v. Arizona
RESOLVED   563 U.S. 826   Fox v. Vice
RESOLVED   Id. at 836     Fox v. Vice
RESOLVED   559 U.S. 260   United Student Aid Funds, Inc. v. Espinosa
RESOLVED   567 U.S. 709   United States v. Alvarez  NAME? brief lacks: alvarez
AMBIGUOUS  601 U.S. 187   2 records, a person picks: Lindke v. Freed [C77F5E, 081DF8]
NOT_FOUND  29 F.4th 647   no case in the data; search by name, court, date, docket
NOT_FOUND  987 F.3d 6543  no case in the data; search by name, court, date, docket
NO ROW     2024 WL 2012345 the API returned nothing for this string; check by hand
{'ambiguous': 3, 'resolved': 6, 'not_found': 2} distinct: 10 short forms left out: 0

Map each status to an action

StatusThe checker puts it inWhy
resolved"A case exists." A reader then checks name, quote, pinpoint and pointExistence is the only thing the status says
ambiguous"Several records." A person picks, and notes which caseId they readThe response does not say which candidate is the right one, and the docs say they are sometimes copies of one case
not_found"Not in the data." A person searches by name, court, date and docket, then the court's own siteThe status is the same for an invented cite and for a real case the data does not match
unparsed"Not a citation." A person looks at the string, if it was meant as oneNot charged. Seen here for a name-only string sent in citations; the text run returned none
No row"Not seen." Your own scan sends it to a personThe extractor skipped it, as it did the Westlaw cite

To read the opinion behind a resolved row, take case.leadOpinionId and fetch it with GET /us/opinions/{leadOpinionId}?format=text, as in court opinions as JSON.

Ambiguous: three real cases and what to do

All three came from the same request. Each cite returned more than one record, and every candidate agreed on court and decision date.

  • 372 U.S. 335, two records. Both are named Gideon v. Wainwright, both Supreme Court, decided 1963-03-18. The docket numbers read 155 and No. 155, the cited-by counts are 6085 and 6950, and each has its own leadOpinionId.
  • 529 U.S. 266, three records. Decided 2000-03-28, docket 98-1993. The names are Florida v. JL and, twice, Florida v. J. L.. The cited-by counts are 1176, 1587 and 6.
  • 601 U.S. 187, two records. Lindke v. Freed, decided 2024-03-15, docket 22-611, cited-by counts 107 and 0. One record carries an addedAt of 2026-11-25, the day of this run.

Only the metadata in the candidates was read. The opinion text of these records was not opened, so this post says nothing about whether two records of one case hold the same text.

What a checker should do:

  1. Report it as its own bucket, not as resolved. For an existence check the answer is still useful: every candidate here agrees on court and date, so a case is at that cite.
  2. Show every candidate with its caseId, name, docket and date, so a person can compare them.
  3. Never pick silently. A higher cited-by count or a tidier name spelling is not a reason to prefer a record. If a person later reads an opinion, the report records which caseId and leadOpinionId they read.
  4. Save the response with its date. A later run can return different rows, so re-run before you rely on it.

What an existence check cannot do

resolved means a citation matched a case. Each limit below is shown by a citation in the test paragraph, set against what the Sixth Circuit wrote in Whiting.

  • It does not confirm the case name. 559 U.S. 260 resolved to United Student Aid Funds, Inc. v. Espinosa. The brief printed the parties the other way round, and the order notes that "the case is actually captioned" with the funds company first. The NAME? flag in step 4 caught "Alverez" against Alvarez, because the word "alvarez" is missing from the brief. It missed the reversed caption, because every word of the matched name is present. It checks that words appear, not that the caption is right.
  • It does not confirm a quote. 563 U.S. 826 resolved to Fox v. Vice. The court wrote that the quotations the brief attributed to Fox were not in it: "None of those quotes (which we have not modified) appear in Fox." The response holds no opinion text to search.
  • It does not confirm the pinpoint. pinpoint is the page the brief printed. The checker echoes it and does not compare it with the opinion.
  • It does not confirm the proposition. 567 U.S. 709 resolved to United States v. Alvarez. The court wrote that Alvarez "states the opposite" of the sentence the brief used it for.
  • It does not say whether a case is still good law. That is a separate question from every status above.

A not_found row cannot be read as a verdict either. 29 F.4th 647, which the court said matches no Sixth Circuit decision, and the invented 987 F.3d 6543 both came back not_found. So does a real order whose reporter cite the data lacks, as shown in the four-checks post. The name, quote, pinpoint and proposition checks in that post stay with a reader, and it is the method this checker automates only in part. The same job on a different API, with its own status codes, is covered in CourtListener's citation lookup guide.

What goes wrong

  • Looping over rows only. A citation the extractor skipped has no row, so the loop reports a clean brief. Compare against your own count of strings.
  • Treating resolved as a pass. It is the first of four checks.
  • Sending case names in citations. Gideon v. Wainwright alone came back unparsed. Send the reporter cite.
  • Picking an ambiguous record by count or spelling. Nothing in the response marks one candidate as the right one.
  • Ignoring unresolvedShortForms. Short forms the API could not tie to one citation are left out of results. Print the count, and send those cites to a person when it is above zero.
  • Retrying blind. Send an Idempotency-Key header so a retried request is safe.
  • One giant brief. More than 300 distinct citations in text is a 422. Split by section and merge the reports.

FAQ

How many citations can I resolve in one request?

Up to 100 strings in citations, or a text of up to 200,000 characters and 300 distinct citations. The MCP tool resolve_case_citations takes the same two inputs. More than 300 distinct citations in text is a 422.

How do I get the citations out of a brief?

Send the text in text and the API finds them, short forms included. If you want your own list, a regex for reporter citations works for the common forms. The one above was tested on a single paragraph and misses state reporters and Westlaw numbers.

Does resolved mean my citation is correct?

No. It means a case in the data carries that citation. The name, the quote, the pinpoint and the point are separate checks.

Does not_found mean the case is fake?

No. The docs say it does not prove a citation is fake, because the data may not hold that case. Search by name, court, date and docket, then check the court's own site.

What should my checker do with ambiguous?

List it as its own status with every candidate, and let a person choose. Do not pick by cited-by count or spelling.

Is a repeated citation charged twice?

No. The docs say a repeated citation is charged once, however often it repeats or however it is spelled.

Can I run this from Claude instead of code?

Yes. The MCP tool resolve_case_citations takes text or citations, the same two inputs as the REST request. Setup is in the case law MCP guide.

For US case law, statutes and regulations through one API key, see the US case law API.

Legal data built for your AI agents.
Vaquill AI is a legal data lab. US case law via REST and MCP, and every US statute, regulation, constitution and executive order via REST, MCP or SQL: 6M+ statute sections with section-level citations and links to the official source. Plus a free open statutes dataset.
Updated November 25, 202620 min read

New legal AI guides, weekly.

Priyansh Khodiyar

Priyansh Khodiyar

Co-Founder & CTO

Priyansh leads engineering and AI at Vaquill AI: the pipelines that pull statutes, regulations and court rules from every US jurisdiction's official publisher, and the REST API, MCP server and open dataset that serve them.

Cookie preferences

Choose what Vaquill may use on this browser. You can change this at any time from “Cookie settings” in the footer.

Details in the Cookie Policy.