0

I'm looking for an example of a RESTFUL API request for Amazon Textract service.

I've been able to find the endpoint: https://textract.us-west-2.amazonaws.com, but no help on Headers and not much on how the Body should look like.

reginashGina
  • 11
  • 1
  • 1

1 Answers1

1

You can take a look to the API reference.

Anyway, the best way is using the aws cli, like:

aws textract analyze-document \
 --document '{"S3Object":{"Bucket":"bucket","Name":"document"}}' \
 --feature-types '["TABLES","FORMS"]'

or one of the AWS SDKs, based on the language you are using

rpadovani
  • 7,101
  • 2
  • 31
  • 50