curl --request GET \
--url https://api.vaquill.ai/api/v1/in/acts/{act_id}/structure \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vaquill.ai/api/v1/in/acts/{act_id}/structure"
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/in/acts/{act_id}/structure', 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/in/acts/{act_id}/structure"
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))
}{
"actId": "IND_state_20326",
"title": "The Maharashtra Value Added Tax Act, 2002.",
"citation": "The Maharashtra Value Added Tax Act, 2002.",
"nodes": [
{
"kind": "chapter",
"identifier": "I",
"label": "Chapter I",
"title": "PRELIMINARY",
"sectionCount": 2,
"children": [
{
"kind": "section",
"identifier": "1",
"label": "s. 1",
"title": "Short title, extent and commencement"
},
{
"kind": "section",
"identifier": "2",
"label": "s. 2",
"title": "Definitions"
}
]
},
{
"kind": "chapter",
"identifier": "II",
"label": "Chapter II",
"title": "INCIDENCE AND LEVY OF TAX",
"sectionCount": 6,
"children": [
{
"kind": "section",
"identifier": "3",
"label": "s. 3",
"title": "Incidence of Tax"
},
{
"kind": "section",
"identifier": "4",
"label": "s. 4",
"title": "Taxes payable"
}
]
}
],
"sectionCount": 95,
"hasHierarchy": true,
"truncated": false,
"meta": {
"processingTimeMs": 605.7,
"creditsConsumed": 2
}
}{
"detail": "Insufficient API credits."
}{
"detail": "Insufficient API credits."
}{
"detail": "Insufficient API credits."
}{
"detail": "Insufficient API credits."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Insufficient API credits."
}An act's table of contents
The act’s own shape: its chapters and parts where the publisher gives any, and the provisions under each.
Cost: 2 credits.
hasHierarchy is false for most acts and that is not an error. Measured over
the whole corpus, only about a quarter of served acts carry chapter or part
divisions; for the rest the publisher simply prints sections, and nodes is a
flat list of them.
Section numbers are sorted numerically with their alphabetic suffixes kept
attached, so 498A follows 498 and 10 follows 2.
curl --request GET \
--url https://api.vaquill.ai/api/v1/in/acts/{act_id}/structure \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vaquill.ai/api/v1/in/acts/{act_id}/structure"
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/in/acts/{act_id}/structure', 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/in/acts/{act_id}/structure"
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))
}{
"actId": "IND_state_20326",
"title": "The Maharashtra Value Added Tax Act, 2002.",
"citation": "The Maharashtra Value Added Tax Act, 2002.",
"nodes": [
{
"kind": "chapter",
"identifier": "I",
"label": "Chapter I",
"title": "PRELIMINARY",
"sectionCount": 2,
"children": [
{
"kind": "section",
"identifier": "1",
"label": "s. 1",
"title": "Short title, extent and commencement"
},
{
"kind": "section",
"identifier": "2",
"label": "s. 2",
"title": "Definitions"
}
]
},
{
"kind": "chapter",
"identifier": "II",
"label": "Chapter II",
"title": "INCIDENCE AND LEVY OF TAX",
"sectionCount": 6,
"children": [
{
"kind": "section",
"identifier": "3",
"label": "s. 3",
"title": "Incidence of Tax"
},
{
"kind": "section",
"identifier": "4",
"label": "s. 4",
"title": "Taxes payable"
}
]
}
],
"sectionCount": 95,
"hasHierarchy": true,
"truncated": false,
"meta": {
"processingTimeMs": 605.7,
"creditsConsumed": 2
}
}{
"detail": "Insufficient API credits."
}{
"detail": "Insufficient API credits."
}{
"detail": "Insufficient API credits."
}{
"detail": "Insufficient API credits."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Insufficient API credits."
}Authorizations
API key issued from the developer dashboard. Pass as Authorization: Bearer vq_key_...
Path Parameters
Act identifier, as returned by search, /list or /resolve.
1 - 200^[a-zA-Z0-9_-]+$"IND_state_20326"
Response
Successful Response
Show child attributes
Show child attributes
False when the publisher gives this act no chapter or part divisions, in which case nodes is a flat section list. Measured corpus-wide, only 25.65% of served acts carry any hierarchy, so a flat answer is the common case and not an error.
Show child attributes
Show child attributes
True when the act has more sections than one call returns.
Was this page helpful?

