Agencies of one state register (free)
curl --request GET \
--url https://api.vaquill.ai/api/v1/us/registers/{state}/agencies \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vaquill.ai/api/v1/us/registers/{state}/agencies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vaquill.ai/api/v1/us/registers/{state}/agencies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vaquill.ai/api/v1/us/registers/{state}/agencies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"state": "<string>",
"agencies": [
{
"agency": "<string>",
"items": 123,
"byRuleAction": {},
"firstIssueDate": "2023-12-25",
"lastIssueDate": "2023-12-25"
}
],
"count": 123,
"itemsWithoutAgency": 123,
"cachedForSeconds": 123,
"processingTimeMs": 123,
"creditsConsumed": 0
}{
"detail": "Invalid or expired API key"
}{
"detail": "Insufficient credits"
}{
"detail": "Insufficient permissions for this operation"
}{
"detail": "Unknown state 'zz'"
}{
"detail": "Invalid request parameters",
"errors": [
{
"loc": [
"body"
],
"msg": "Value error, narrow the search with `states` or `query`",
"type": "value_error"
}
]
}{
"detail": "Rate limit exceeded. Try again in 12 seconds."
}{
"detail": "Internal server error"
}{
"detail": "The registers database is temporarily unavailable. Please retry."
}Agencies of one state register (free)
Every agency that has items in a state’s register, largest first: the number of items, the first and last
issue date, and the count per ruleAction (proposed, adopted, emergency, …; only actions that occur
are listed). itemsWithoutAgency counts the items whose agency the register does not name or we cannot yet
read; they are not in agencies. q keeps the agencies whose name contains the text (case-insensitive).
Use a name from this list as the agency filter of POST /us/registers/search.
An unknown state code is a 404. A known state with no items answers an empty list. Free. Recomputed at most every 10 minutes.
curl "https://api.vaquill.ai/api/v1/us/registers/tx/agencies?q=utility" -H "Authorization: Bearer vq_key_..."
GET
/
api
/
v1
/
us
/
registers
/
{state}
/
agencies
Agencies of one state register (free)
curl --request GET \
--url https://api.vaquill.ai/api/v1/us/registers/{state}/agencies \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vaquill.ai/api/v1/us/registers/{state}/agencies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vaquill.ai/api/v1/us/registers/{state}/agencies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vaquill.ai/api/v1/us/registers/{state}/agencies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"state": "<string>",
"agencies": [
{
"agency": "<string>",
"items": 123,
"byRuleAction": {},
"firstIssueDate": "2023-12-25",
"lastIssueDate": "2023-12-25"
}
],
"count": 123,
"itemsWithoutAgency": 123,
"cachedForSeconds": 123,
"processingTimeMs": 123,
"creditsConsumed": 0
}{
"detail": "Invalid or expired API key"
}{
"detail": "Insufficient credits"
}{
"detail": "Insufficient permissions for this operation"
}{
"detail": "Unknown state 'zz'"
}{
"detail": "Invalid request parameters",
"errors": [
{
"loc": [
"body"
],
"msg": "Value error, narrow the search with `states` or `query`",
"type": "value_error"
}
]
}{
"detail": "Rate limit exceeded. Try again in 12 seconds."
}{
"detail": "Internal server error"
}{
"detail": "The registers database is temporarily unavailable. Please retry."
}Authorizations
ApiKeyAuthApiKeyHeader
Query Parameters
Response
Successful Response
Was this page helpful?

