Skip to main content
GET
Search the Government Index
Search primary law and regulatory material from US federal, state, and local government sources: statutes, regulations, codes, court opinions, and other government publications. Results come back in the standard web group, the same shape as a web result from /search. POST is available on the same path with the same fields as a JSON body. Unknown fields are rejected with 400.
For a workflow overview, see the Government Index guide.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

query
string
required

Natural-language question or search phrase.

Minimum string length: 1
k
integer
default:10

Number of results to return.

Required range: 1 <= x <= 100

Response

Ranked Government Index results in the web group.

success
boolean
data
object