curl --request POST \
--url https://api.aisa.one/apis/v1/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keywords": "cleaning"
}
'import requests
url = "https://api.aisa.one/apis/v1/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts"
payload = { "keywords": "cleaning" }
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({keywords: 'cleaning'})
};
fetch('https://api.aisa.one/apis/v1/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts', 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/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts",
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([
'keywords' => 'cleaning'
]),
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/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts"
payload := strings.NewReader("{\n \"keywords\": \"cleaning\"\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/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"keywords\": \"cleaning\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts")
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 \"keywords\": \"cleaning\"\n}"
response = http.request(request)
puts response.read_bodySearch contracts
To find awarded contracts by keyword (e.g. cleaning), agency, region, value or award date. Ids come from lookups.
curl --request POST \
--url https://api.aisa.one/apis/v1/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keywords": "cleaning"
}
'import requests
url = "https://api.aisa.one/apis/v1/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts"
payload = { "keywords": "cleaning" }
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({keywords: 'cleaning'})
};
fetch('https://api.aisa.one/apis/v1/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts', 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/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts",
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([
'keywords' => 'cleaning'
]),
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/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts"
payload := strings.NewReader("{\n \"keywords\": \"cleaning\"\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/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"keywords\": \"cleaning\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts")
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 \"keywords\": \"cleaning\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts
{
"operationId": "tenders-wa-gov-au.public-procurement-tenders-contracts.search-contracts",
"method": "POST",
"path": "/apis/v1/tenders-wa-gov-au/public-procurement-tenders-contracts/search-contracts",
"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": {
"keywords": "cleaning"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"aboriginal_participation": {
"default": "any",
"description": "aboriginal_participation\n\nProvider reference: allowed values [\"any\", \"applicable\", \"not_applicable\"]; default \"any\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"any",
"applicable",
"not_applicable"
]
}
},
"award_date_from": {
"description": "Pattern: ^[0-9]{2}/[0-9]{2}/[0-9]{4}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"award_date_to": {
"description": "Pattern: ^[0-9]{2}/[0-9]{2}/[0-9]{4}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"closing_date_from": {
"description": "Pattern: ^[0-9]{2}/[0-9]{2}/[0-9]{4}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"closing_date_to": {
"description": "Pattern: ^[0-9]{2}/[0-9]{2}/[0-9]{4}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"dcsp": {
"default": "any",
"description": "dcsp\n\nProvider reference: allowed values [\"any\", \"applicable\", \"not_applicable\"]; default \"any\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"any",
"applicable",
"not_applicable"
]
}
},
"issuing_business_id": {
"description": "From lookups(issuing_agencies); -1 or omitted = any.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"keywords": {
"description": "keywords",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"min_value": {
"description": "Minimum contract value in AUD (form field value).\n\nProvider reference: minimum 0.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"min": 0
}
},
"public_authority_id": {
"description": "From lookups(public_authorities); -1 or omitted = any.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"reference": {
"description": "Contract reference number filter.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"region_id": {
"description": "From lookups(regions); -1 or omitted = any.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"starting_date_from": {
"description": "Pattern: ^[0-9]{2}/[0-9]{2}/[0-9]{4}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"starting_date_to": {
"description": "Pattern: ^[0-9]{2}/[0-9]{2}/[0-9]{4}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"title": {
"description": "Contract title filter.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"unspsc_codes": {
"description": "unspsc_codes",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"vet_act": {
"default": "any",
"description": "Vocational Education and Training Act filter (form field vetAct).\n\nProvider reference: allowed values [\"any\", \"applicable\", \"not_applicable\"]; default \"any\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"any",
"applicable",
"not_applicable"
]
}
},
"work_type": {
"default": "any",
"description": "work_type\n\nProvider reference: allowed values [\"any\", \"goods\", \"works\"]; default \"any\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"any",
"goods",
"works"
]
}
}
},
"type": "object"
}
}
},
"required": false
},
"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
Response
Awarded contract search (contract/list.action contract-search-submit form): keyword, reference, title, goods/works, public authority and issuing agency ids, region id, up to three UNSPSC codes, minimum value, closing / award / starting date ranges (dd/MM/yyyy), Aboriginal participation, DCSP and VET Act filters. The server caps the answer at 50 rows and prints a notice when it did; that is returned as truncated (narrow the filters), there is no next page.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
contracts | object[] | |
count | number | |
observed_at_ms | number | |
query | object | The filters as sent to the form (form field names and values). |
truncated | boolean | True when the site printed that the results were reduced (hard cap of 50 rows). |
url | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.