Document Download API
curl --request GET \
--url https://api.aisa.one/apis/v1/edinet/documents/{docID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/edinet/documents/{docID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/edinet/documents/{docID}', 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/edinet/documents/{docID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/edinet/documents/{docID}"
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))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/edinet/documents/{docID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/edinet/documents/{docID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body"<string>"EDINET Filings
Document Download API
One filing as a binary file — ZIP or PDF, never JSON on success.
GET
https://api.aisa.one
/
apis
/
v1
/
edinet
/
documents
/
{docID}
Document Download API
curl --request GET \
--url https://api.aisa.one/apis/v1/edinet/documents/{docID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/edinet/documents/{docID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/edinet/documents/{docID}', 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/edinet/documents/{docID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/edinet/documents/{docID}"
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))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/edinet/documents/{docID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/edinet/documents/{docID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body"<string>"Downloads one filing by
docID, taken from get_edinet_documents. type=1 returns the filing body and audit report as a ZIP archive (measured 11.9 KB, application/octet-stream); type=2 the PDF (measured 15.0 KB, application/pdf).
The success payload is binary; only errors come back as JSON. Check the response content type before parsing. Because a tool result cannot usefully carry a binary payload, this endpoint stays REST-only — over MCP, stop at the
docID and fetch the file over REST.Request contract
- Method and path: GET /apis/v1/edinet/documents/{docID}
- Request URL template: https://api.aisa.one/apis/v1/edinet/documents/{docID}
- docID: path; required
- type: query; required
- Runtime facts: e99476d645d65d34a7a7c24a39d9a83e3fd151a56e7d95967a467097d0fb477b
{
"operationId": "get_edinet_document_download",
"method": "GET",
"path": "/apis/v1/edinet/documents/{docID}",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"name": "docID",
"in": "path",
"required": true,
"schema": {
"type": "string",
"examples": [
"S1000000"
]
},
"description": "Document management identifier from the document list API."
},
{
"name": "type",
"in": "query",
"required": true,
"schema": {
"type": "integer",
"enum": [
1,
2,
3,
4,
5
]
},
"description": "File type to download: 1 for filing body and audit report ZIP, 2 for PDF, 3 for alternate document and attachments ZIP, 4 for English document ZIP, 5 for CSV ZIP converted from XBRL."
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-pricing": {
"cost_contract": "fixed_success",
"customer_pricing": "fixed_success",
"default_request_estimate_usd": 1e-05,
"estimate_source": "profile_seed",
"evidence_source": "request_snapshot"
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0.00001 USD per successful request. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 1e-05
- Cost contract: fixed_success
- Settlement evidence source: request_snapshot
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Document management identifier from the document list API.
Example:
"S1000000"
Query Parameters
File type to download: 1 for filing body and audit report ZIP, 2 for PDF, 3 for alternate document and attachments ZIP, 4 for English document ZIP, 5 for CSV ZIP converted from XBRL.
Available options:
1, 2, 3, 4, 5 Response
Binary ZIP/PDF file content or JSON error payload depending on Content-Type.
The response is of type file.