Find an API

Search public APIs with auth details & Postman guides

← All APIs

Amazon Textract

amazonaws · Cloud

Cloud No Auth Free & Open cloud Sandbox

Amazon Textract detects and analyzes text in documents and converts it into machine-readable text. This is the API reference documentation for Amazon Textract.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

POST AnalyzeDocument

Analyzes an input document for relationships between detected items. The types of information returned are as follows: Form data (key-value pairs). The related information is returned in two Block objects, each of type KEY_VALUE_SET : a KEY Block

https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeDocument

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
X-Amz-Target Textract.AnalyzeDocument
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeDocument" \
  -H "X-Amz-Target: Textract.AnalyzeDocument"
import requests
headers = {
    "X-Amz-Target": "Textract.AnalyzeDocument"
}
response = requests.post(
    "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeDocument",
    headers=headers,
)
print(response.json())
const url = 'https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeDocument';

const response = await fetch(url, {
  method: 'POST',
  headers: {
    'X-Amz-Target': 'Textract.AnalyzeDocument'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeDocument"
	req, _ := http.NewRequest("POST", targetURL, nil)
	req.Header.Set("X-Amz-Target", "Textract.AnalyzeDocument")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeDocument")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "Textract.AnalyzeDocument"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeDocument";
$opts = ["http" => [
    "method" => "POST",
    "header" => implode("\r\n", [
        "X-Amz-Target: Textract.AnalyzeDocument"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
POST AnalyzeExpense

AnalyzeExpense synchronously analyzes an input document for financially related relationships between text. Information is returned as ExpenseDocuments and seperated as follows: LineItemGroups - A data set containing LineItems<

https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeExpense

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
X-Amz-Target Textract.AnalyzeExpense
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeExpense" \
  -H "X-Amz-Target: Textract.AnalyzeExpense"
import requests
headers = {
    "X-Amz-Target": "Textract.AnalyzeExpense"
}
response = requests.post(
    "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeExpense",
    headers=headers,
)
print(response.json())
const url = 'https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeExpense';

const response = await fetch(url, {
  method: 'POST',
  headers: {
    'X-Amz-Target': 'Textract.AnalyzeExpense'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeExpense"
	req, _ := http.NewRequest("POST", targetURL, nil)
	req.Header.Set("X-Amz-Target", "Textract.AnalyzeExpense")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeExpense")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "Textract.AnalyzeExpense"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeExpense";
$opts = ["http" => [
    "method" => "POST",
    "header" => implode("\r\n", [
        "X-Amz-Target: Textract.AnalyzeExpense"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
POST AnalyzeID

Analyzes identity documents for relevant information. This information is extracted and returned as IdentityDocumentFields , which records both the normalized field and value of the extracted text. Unlike other Amazon Textract operations, AnalyzeID doesn't return any Geometr

https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeID

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
X-Amz-Target Textract.AnalyzeID
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeID" \
  -H "X-Amz-Target: Textract.AnalyzeID"
import requests
headers = {
    "X-Amz-Target": "Textract.AnalyzeID"
}
response = requests.post(
    "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeID",
    headers=headers,
)
print(response.json())
const url = 'https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeID';

const response = await fetch(url, {
  method: 'POST',
  headers: {
    'X-Amz-Target': 'Textract.AnalyzeID'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeID"
	req, _ := http.NewRequest("POST", targetURL, nil)
	req.Header.Set("X-Amz-Target", "Textract.AnalyzeID")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeID")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "Textract.AnalyzeID"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/textract/2018-06-27/#X-Amz-Target=Textract.AnalyzeID";
$opts = ["http" => [
    "method" => "POST",
    "header" => implode("\r\n", [
        "X-Amz-Target: Textract.AnalyzeID"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Amazon Textract?

Amazon Textract is a Cloud API. Developers commonly use cloud APIs for:

  • provisioning and managing cloud infrastructure
  • automating deployments and container orchestration
  • monitoring uptime and performance metrics
  • managing storage buckets and databases
  • setting up auto-scaling and load balancing

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Amazon Textract is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗