Amazon Comprehend · Schema

Block

Information about each word or line of text in the input document.

For additional information, see Block in the Amazon Textract API reference.

Machine LearningNatural Language ProcessingNLPText Analysis

Properties

Name Type Description
Id object
BlockType object
Text object
Page object
Geometry object
Relationships object
View JSON Schema on GitHub

JSON Schema

openapi.yml-block-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-comprehend/refs/heads/main/json-schema/openapi.yml-block-schema.json",
  "title": "Block",
  "description": "<p>Information about each word or line of text in the input document.</p> <p>For additional information, see <a href=\"https://docs.aws.amazon.com/textract/latest/dg/API_Block.html\">Block</a> in the Amazon Textract API reference.</p>",
  "type": "object",
  "properties": {
    "Id": {
      "allOf": [
        {
          "$ref": "#/components/schemas/String"
        },
        {
          "description": "Unique identifier for the block."
        }
      ]
    },
    "BlockType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/BlockType"
        },
        {
          "description": "<p>The block represents a line of text or one word of text.</p> <ul> <li> <p>WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.</p> </li> <li> <p>LINE - A string of tab-delimited, contiguous words that are detected on a document page</p> </li> </ul>"
        }
      ]
    },
    "Text": {
      "allOf": [
        {
          "$ref": "#/components/schemas/String"
        },
        {
          "description": "The word or line of text extracted from the block."
        }
      ]
    },
    "Page": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Integer"
        },
        {
          "description": "Page number where the block appears."
        }
      ]
    },
    "Geometry": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Geometry"
        },
        {
          "description": "Co-ordinates of the rectangle or polygon that contains the text."
        }
      ]
    },
    "Relationships": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ListOfRelationships"
        },
        {
          "description": "A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text. "
        }
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/openapi.yml-block"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.