> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.kotoba.tech/s2t/batch/transcription-api/get-transcription-job-v-1-transcription-jobs-job-id-get/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.kotoba.tech/_mcp/server. # Fetch the transcription result for a completed job. GET https://api.kotobatech.ai/v1/transcription_jobs/{job_id} Reference: https://docs.kotoba.tech/s2t/batch/transcription-api/get-transcription-job-v-1-transcription-jobs-job-id-get ## Request ### Path parameters - `job_id` (string, required) — The job ID returned from POST. ## Response ### 200 Successful Response - `Transcription API_get_transcription_job_v1_transcription_jobs__job_id__get_Response_200` - `state`: `done` (DoneResponse) - `transcription` (string, required) — The final transcription text. - `segments` (list of Segment, optional, nullable) — Per-chunk timestamps aligned to the 80ms inference grid and refined with silero-VAD. Present only when the POST request set with_timestamps=true. - `state`: `error` (ErrorResponse) - `error_message` (string, required) — Details about the error. ## Errors ### 422 Unprocessable Entity Error Validation Error - `detail` (list of ValidationError, optional) ## Types ### Segment - `text` (string, required) - `start` (double, required) — Segment start time in seconds. - `end` (double, required) — Segment end time in seconds. ### ValidationError - `loc` (list of ValidationErrorLocItems, required) - `msg` (string, required) - `type` (string, required) ### ValidationErrorLocItems ## Examples **Request** ```json {} ``` **Response** ```json { "state": "done", "transcription": "Good morning everyone, welcome to the weekly team meeting. Today we'll discuss project updates and upcoming deadlines.", "segments": [ { "text": "Good morning everyone, welcome to the weekly team meeting.", "start": 0, "end": 5.2 }, { "text": "Today we'll discuss project updates and upcoming deadlines.", "start": 5.3, "end": 12.7 } ] } ``` **SDK Code** ```python import requests url = "https://api.kotobatech.ai/v1/transcription_jobs/job_id" payload = {} headers = {"Content-Type": "application/json"} response = requests.get(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.kotobatech.ai/v1/transcription_jobs/job_id'; const options = {method: 'GET', headers: {'Content-Type': 'application/json'}, body: '{}'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.kotobatech.ai/v1/transcription_jobs/job_id" payload := strings.NewReader("{}") req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://api.kotobatech.ai/v1/transcription_jobs/job_id") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Content-Type"] = 'application/json' request.body = "{}" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.kotobatech.ai/v1/transcription_jobs/job_id") .header("Content-Type", "application/json") .body("{}") .asString(); ``` ```php request('GET', 'https://api.kotobatech.ai/v1/transcription_jobs/job_id', [ 'body' => '{}', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.kotobatech.ai/v1/transcription_jobs/job_id"); var request = new RestRequest(Method.GET); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Content-Type": "application/json"] let parameters = [] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.kotobatech.ai/v1/transcription_jobs/job_id")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```