curl --request POST \
--url https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"report": "oil_gas_distribution"
}
'import requests
url = "https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status"
payload = { "report": "oil_gas_distribution" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({report: 'oil_gas_distribution'})
};
fetch('https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'report' => 'oil_gas_distribution'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status"
payload := strings.NewReader("{\n \"report\": \"oil_gas_distribution\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"report\": \"oil_gas_distribution\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"report\": \"oil_gas_distribution\"\n}"
response = http.request(request)
puts response.read_bodySource status
Check whether a publication changed (compare sha256 or etag), see which tax years, bienniums or quarters are available, or get the statewide totals cheaply before paging through counties.
curl --request POST \
--url https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"report": "oil_gas_distribution"
}
'import requests
url = "https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status"
payload = { "report": "oil_gas_distribution" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({report: 'oil_gas_distribution'})
};
fetch('https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'report' => 'oil_gas_distribution'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status"
payload := strings.NewReader("{\n \"report\": \"oil_gas_distribution\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"report\": \"oil_gas_distribution\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"report\": \"oil_gas_distribution\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/revenue-mt-gov/property-tax/source-status
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/revenue-mt-gov/property-tax/source-status
{
"operationId": "revenue-mt-gov.property-tax.source-status",
"method": "POST",
"path": "/apis/v1/revenue-mt-gov/property-tax/source-status",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"fiscal_year": 2027,
"quarter": 1,
"report": "oil_gas_distribution"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"edition": {
"description": "`county_summaries` only: the biennium as `YYYY-YYYY` (`2022-2024` is the report for July 1, 2022 to June 30, 2024). Retired editions are looked up in the document archive catalog. Default: the edition on the biennial reports page.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"fiscal_year": {
"description": "`oil_gas_distribution` only, with `quarter`: the state fiscal year of the `{fy}-Q{q}-County-Distribution.pdf` file. Default: the newest quarter listed.\n\nProvider reference: minimum 2000; maximum 2100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2100,
"min": 2000
}
},
"quarter": {
"description": "`oil_gas_distribution` only, with `fiscal_year`: the fiscal quarter (Q1 ends September 30, Q2 December 31, Q3 March 31, Q4 June 30; the report prints the quarter ending date it covers).\n\nProvider reference: minimum 1; maximum 4.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 4,
"min": 1
}
},
"report": {
"description": "`tax_base`: County and Statewide Tax Base and Tax Distribution (annual, by tax year). `county_summaries`: Biennial Report Appendix, County Summaries (by biennium edition such as `2022-2024`). `oil_gas_distribution`: Oil and Gas County Distribution (by fiscal year and quarter).\n\nProvider reference: allowed values [\"tax_base\", \"county_summaries\", \"oil_gas_distribution\"].",
"type": "string"
},
"tax_year": {
"description": "`tax_base` only: the tax year in the index page URL (`/property/{year}-County-and-Statewide-Tax-Base-and-Tax-Distribution-Information`). Default: the newest year in the site map.\n\nProvider reference: minimum 2000; maximum 2100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2100,
"min": 2000
}
}
},
"required": [
"report"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
tax_base: County and Statewide Tax Base and Tax Distribution (annual, by tax year). county_summaries: Biennial Report Appendix, County Summaries (by biennium edition such as 2022-2024). oil_gas_distribution: Oil and Gas County Distribution (by fiscal year and quarter).
Provider reference: allowed values ["tax_base", "county_summaries", "oil_gas_distribution"].
Response
Resolve one publication (the latest edition, or the tax year, biennium edition or fiscal quarter asked for) from the Department of Revenue index pages, download the PDF and describe it: final URL, size, ETag, Last-Modified, SHA-256 of the bytes, page count, the tax years or quarter it covers, the number of county sections it parses into, the publication-level totals and arithmetic warnings, and the other editions the index pages list. No records are returned; call records_list for them.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
available_editions | string[] | Other editions the index pages list, newest first: tax years (2023), bienniums (2022-2024) or quarters (FY2027-Q1). |
bytes | number | |
consistency_warnings | string[] | Publication-level arithmetic differences (summary rows against printed totals). Per-section differences are on each record. |
content_type | string | |
county_count | number | Records that are Montana counties. |
edition | string | county_summaries: the biennium YYYY-YYYY. |
etag | string | |
final_url | string | The URL that served the bytes after redirects. |
fiscal_year | number | oil_gas_distribution: state fiscal year of the file name. |
index_url | string | The revenue.mt.gov page the PDF was linked from. |
last_modified | string | The Last-Modified header as sent (RFC 7231 date). |
observed_at_ms | number | |
page_count | number | |
publication_id | string | tax_base:2023, county_summaries:2022-2024, oil_gas_distribution:FY2027-Q1. |
quarter | number | oil_gas_distribution: fiscal quarter of the file name. |
quarter_ending | string | oil_gas_distribution: the Quarter Ending date printed in the report, YYYY-MM-DD. |
record_count | number | County sections (records) the file parses into, including the statewide section and, for oil and gas, the state account rows. |
report | string | |
retrieved_at | string | RFC 3339 UTC time the PDF was downloaded. |
run_date | string | oil_gas_distribution: the Run Date printed in the report, YYYY-MM-DD. |
sha256 | string | Lowercase hex SHA-256 of the downloaded bytes; the publisher posts no hash. |
source_url | string | The PDF URL as linked (revenue.mt.gov or revenuefiles.mt.gov). |
tax_year | number | tax_base: the tax year of the report. |
tax_years | number[] | county_summaries: the two tax years printed as columns. |
totals | object | Publication-level totals: the Statewide / State Total section's total row, or the oil and gas TOTALS: line. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.