625 ILCS 5/11-601(c) names one subsection of a section that can run to dozens.
Add the pinpoint to the resolve call you already make and the response carries the whole section as before, plus a pinpoint object holding unit (c) itself.
Resolve and verify a statute citation covers the resolve call itself, including batch resolve of up to 50 citations and citations that do not resolve.
Endpoints used: GET and POST /us/statutes/resolve, POST /us/statutes/extract-citations, GET /us/statutes/section/{actId}/body, POST /us/statutes/search.
The concept page, Pinpoints, has the full field reference, the citation forms that are read, the error table and coverage by state.
This page is the working example.
Add a pinpoint to the resolve call
Put the pinpoint in the citation, exactly as a court or a statute book prints it. A resolve with a pinpoint costs the resolve price, 2 credits per citation.section object is cut to two fields):
structure object, shown once on this page: source and quality are covered under Read the result, builder names the parser, and textSha256 is the hash of the text the offsets index into.
subsection still echoes the dot-joined pinpoint (c).
Read pinpoint.path when you need the unit itself.
creditsConsumed is a float in every response, so 2.0 is the real wire form.
Read the result
Five fields decide what you do with the answer.
Some units are a few words that finish a sentence started above them.
leadIn carries those parent sentences, outermost first, so you can quote the unit in context.
The unit’s own text is a fragment.
To quote it in full, join the leadIn text and the unit’s text.
structure.source says where the outline came from.
artifact means a pre-built outline of this section was used, and request_time means the outline was parsed from the section text on this call.
Neither is a grade.
structure.quality is the grade, so treat a heuristic unit as a pointer to confirm against the text and a none as “unknown”, never as “this section has no subsections”.
Handle a miss
A pinpoint can name a unit the section does not have. The call still succeeds and is charged, because the section resolved, and the block says what happened. Herematched is false while the text is real text.
It is the deepest unit that exists (path is ["2"]), not the one you asked for, so never present it as the answer to (2)(1).
no_such_subsection: the outline is known and has no such unit.available, when present, lists the labels that do exist where the lookup stopped, so a mistyped pinpoint can be corrected without another call.no_structure: we could not recover the section’s outline. The section text is still available at/body.
pinpointNote and no pinpoint, the unit could not be looked up this time.
The section resolved and is charged as usual, and a retry usually answers.
Other ways to get a pinpoint
The samepinpoint object comes back from three more routes.
The detail under each heading is collapsed.
Pinpoints in a document
POST /us/statutes/extract-citations finds every citation in a block of text and, with resolve: true, resolves each one.
It is priced per distinct citation.
Request, response and range rules
Request, response and range rules
The two citations below cost 4 credits.A trimmed response, keeping the fields used here:Each row keeps the pinpoint exactly as it was printed in your text (
pinpoint) and the full citation as printed (raw).
A row also carries pinpointMatch, the same block as pinpoint above, when the unit could be located in the same call.
Read pinpointMatch.matched first, as you would on a resolve.Each row also carries charStart and charEnd, the span of the first mention of raw in your text, so text[charStart:charEnd] == raw.
Offsets count Unicode code points, which differ from JavaScript string indexes only past the Basic Multilingual Plane.
Both are null for a row that has no span of its own, such as one section taken from a list like §§ 1981, 1983.A range returns its two ends as resolved rows, and the sections between them as interior rows.
18 U.S.C. §§ 2510 through 2523 gives rows marked rangeRole start and end, each with rangePartner naming the other end.
Each end is resolved and charged as its own section.
For a range written with a word (§§ 101 through 105), the sections between come back as rows with rangeRole interior, skipped range_interior and rangePartner set to the range start.
Interior rows are never resolved and never charged, at most 25 are listed per range and 500 per call, and counts.interior counts them.
counts.found counts rows, and counts.distinctSections counts sections, which is the unit the price and the per-call cap use.If the corpus is unavailable, or half or more of the citations cannot be read, the call answers 503 and the whole charge is refunded.When a row has no pinpointMatch, resolve its raw to get the unit.
That is one more resolve call at the resolve price, and the raw values can go in one batch of up to 50 (see batch resolve).Pinpoints from an act ID you already hold
If you already have anactId, ask the body route for the unit.
You get the full section body and the unit side by side.
A body with a pinpoint is the body price, 6 credits.
Request, response and offset check
Request, response and offset check
html and plain carry the whole section and are cut here):charStart and charEnd index into the plain text of this same response.
Here plain[1634:1659] is 1. 30 miles per hour; and, the unit’s fullText.
structure.textSha256 is the SHA-256 of that plain, so you can check that a copy of the text you stored still matches the offsets:pinpoint, or a pinpoint sent together with asOf, is a 422 and is not charged.Which subsection did a search hit match
Search ranks whole sections. SetincludePinpoint: true and each hit also names the subsection it matched, in a pinpoints object keyed by actId.
It adds nothing to the price of the search.
Request, response and how to read it
Request, response and how to read it
pinpoints entry that goes with it:citation is ready to paste back into /us/statutes/resolve.
matchedBy: "passage" means the unit lies inside the passage the search matched.
scope: "unit" means one unit matched best.
The second hit in the same response, 625 ILCS 5/11-604, came back with scope: "parent": several sub-units matched about equally, so the block names their common parent, (b), instead of choosing between them.A hit that cannot be named says why in reason.
That is a verdict about the hit and never changes which sections are returned, their order or their scores.Related
- Pinpoints: every field, the citation forms that are read, errors and coverage by state.
- Resolve and verify a statute citation: the resolve call itself, batch resolve and unresolved citations.
- Citation formats: which citation strings resolve, and which are refused on purpose.

