Lookup agency
curl --request POST \
--url https://api.aisa.one/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keyword": "勞工保險局"
}
'import requests
url = "https://api.aisa.one/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency"
payload = { "keyword": "勞工保險局" }
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({keyword: '勞工保險局'})
};
fetch('https://api.aisa.one/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency', 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/web-pcc-gov-tw/public-procurement-notices/lookup-agency",
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([
'keyword' => '勞工保險局'
]),
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/web-pcc-gov-tw/public-procurement-notices/lookup-agency"
payload := strings.NewReader("{\n \"keyword\": \"勞工保險局\"\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/web-pcc-gov-tw/public-procurement-notices/lookup-agency")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"keyword\": \"勞工保險局\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency")
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 \"keyword\": \"勞工保險局\"\n}"
response = http.request(request)
puts response.read_body{
"agencies": [
{
"awards_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toAtm?orgId=3.54.51&orgName=勞工保險局(103年2月17日組改)",
"has_children": false,
"org_id": "3.54.51",
"org_name": "勞工保險局(103年2月17日組改)",
"tenders_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toTpam?orgId=3.54.51&orgName=勞工保險局(103年2月17日組改)"
},
{
"awards_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toAtm?orgId=A.17.1&orgName=勞動部勞工保險局",
"has_children": false,
"org_id": "A.17.1",
"org_name": "勞動部勞工保險局",
"tenders_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toTpam?orgId=A.17.1&orgName=勞動部勞工保險局"
},
{
"awards_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toAtm?orgId=93288751&orgName=勞動部勞工保險局高雄市第二辦事處職場互助教保服務中心(委託社團法人高雄市社區美學教育發展協會辦理)",
"has_children": false,
"org_id": "93288751",
"org_name": "勞動部勞工保險局高雄市第二辦事處職場互助教保服務中心(委託社團法人高雄市社區美學教育發展協會辦理)",
"tenders_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toTpam?orgId=93288751&orgName=勞動部勞工保險局高雄市第二辦事處職場互助教保服務中心(委託社團法人高雄市社區美學教育發展協會辦理)"
}
],
"keyword": "勞工保險局",
"observed_at_ms": 1791158815740,
"source_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/search",
"truncated": false
}Taiwan Government e-Procurement (web.pcc.gov.tw)
Lookup agency
To find the org_id for search_tenders / search_awards when you know an agency’s name, or to list the subordinate units of a parent code.
POST
https://api.aisa.one
/
apis
/
v1
/
web-pcc-gov-tw
/
public-procurement-notices
/
lookup-agency
Lookup agency
curl --request POST \
--url https://api.aisa.one/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keyword": "勞工保險局"
}
'import requests
url = "https://api.aisa.one/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency"
payload = { "keyword": "勞工保險局" }
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({keyword: '勞工保險局'})
};
fetch('https://api.aisa.one/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency', 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/web-pcc-gov-tw/public-procurement-notices/lookup-agency",
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([
'keyword' => '勞工保險局'
]),
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/web-pcc-gov-tw/public-procurement-notices/lookup-agency"
payload := strings.NewReader("{\n \"keyword\": \"勞工保險局\"\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/web-pcc-gov-tw/public-procurement-notices/lookup-agency")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"keyword\": \"勞工保險局\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency")
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 \"keyword\": \"勞工保險局\"\n}"
response = http.request(request)
puts response.read_body{
"agencies": [
{
"awards_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toAtm?orgId=3.54.51&orgName=勞工保險局(103年2月17日組改)",
"has_children": false,
"org_id": "3.54.51",
"org_name": "勞工保險局(103年2月17日組改)",
"tenders_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toTpam?orgId=3.54.51&orgName=勞工保險局(103年2月17日組改)"
},
{
"awards_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toAtm?orgId=A.17.1&orgName=勞動部勞工保險局",
"has_children": false,
"org_id": "A.17.1",
"org_name": "勞動部勞工保險局",
"tenders_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toTpam?orgId=A.17.1&orgName=勞動部勞工保險局"
},
{
"awards_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toAtm?orgId=93288751&orgName=勞動部勞工保險局高雄市第二辦事處職場互助教保服務中心(委託社團法人高雄市社區美學教育發展協會辦理)",
"has_children": false,
"org_id": "93288751",
"org_name": "勞動部勞工保險局高雄市第二辦事處職場互助教保服務中心(委託社團法人高雄市社區美學教育發展協會辦理)",
"tenders_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/toTpam?orgId=93288751&orgName=勞動部勞工保險局高雄市第二辦事處職場互助教保服務中心(委託社團法人高雄市社區美學教育發展協會辦理)"
}
],
"keyword": "勞工保險局",
"observed_at_ms": 1791158815740,
"source_url": "https://web.pcc.gov.tw/prkms/tender/common/orgName/search",
"truncated": false
}Request contract
- Method and path: POST /apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency
{
"operationId": "web-pcc-gov-tw.public-procurement-notices.lookup-agency",
"method": "POST",
"path": "/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency",
"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": {
"keyword": "勞工保險局"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"keyword": {
"description": "Agency name or code keyword, e.g. 台灣電力 or 3.13.31.",
"type": "string"
}
},
"required": [
"keyword"
],
"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
Response
Look up Taiwan procuring agencies (機關名稱查詢) by a name or code keyword: returns agency codes (機關代碼) and names, with a flag for agencies that have subordinate units. The site caps the list at 50 rows.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
agencies | object[] | |
keyword | string | |
observed_at_ms | number | |
source_url | string | |
truncated | boolean | True when the site's 50-row cap was reached; narrow the keyword. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.