{
  "x402Version": 2,
  "id": 27734,
  "slug": "27734",
  "resource": "https://apiacre.com/v1/document/extract",
  "description": "Extract clean text and metadata from supplied PDF, DOCX, HTML, Markdown, CSV, JSON, YAML, or plain-text documents.",
  "type": "http",
  "serviceName": "API Acre",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1786471603/bazaar-icons/3cd5dfbdc8c7913d.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xa0BFa4f07281c9b248DC3AED2217836BcA24869B",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "description": "Structured Document extraction result",
            "properties": {
              "characters": {
                "type": "integer"
              },
              "metadata": {
                "type": "object"
              },
              "text": {
                "type": "string"
              },
              "words": {
                "type": "integer"
              }
            },
            "type": "object"
          },
          "meta": {
            "properties": {
              "cached": {
                "type": "boolean"
              },
              "duration_ms": {
                "minimum": 0,
                "type": "integer"
              },
              "next_actions": {
                "description": "Optional separately priced follow-up calls. Each action requires a new payment challenge and explicit buyer authorization.",
                "items": {
                  "properties": {
                    "authorization_required": {
                      "const": true,
                      "type": "boolean"
                    },
                    "checkout_path": {
                      "pattern": "^/try/",
                      "type": "string"
                    },
                    "executes_automatically": {
                      "const": false,
                      "type": "boolean"
                    },
                    "handoff_path": {
                      "description": "Free full contract and spend-capped command handoff; reading it does not execute or purchase the follow-up.",
                      "pattern": "^/catalog/",
                      "type": "string"
                    },
                    "handoff_payment_required": {
                      "const": false,
                      "type": "boolean"
                    },
                    "input_template": {
                      "description": "Client-side template only: $request refers to the original input, $result to this response, and $json(...) serializes its argument. The server does not execute the follow-up.",
                      "type": "object"
                    },
                    "maximum_atomic_usdc": {
                      "pattern": "^[1-9][0-9]*$",
                      "type": "string"
                    },
                    "method": {
                      "const": "POST",
                      "type": "string"
                    },
                    "path": {
                      "pattern": "^/v1/",
                      "type": "string"
                    },
                    "price": {
                      "pattern": "^\\$[0-9]+",
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "sample_path": {
                      "pattern": "^/samples/",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "service": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "use_output": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "service",
                    "title",
                    "reason",
                    "method",
                    "path",
                    "price",
                    "input_template",
                    "use_output",
                    "handoff_path",
                    "checkout_path",
                    "sample_path",
                    "maximum_atomic_usdc",
                    "handoff_payment_required",
                    "executes_automatically",
                    "authorization_required"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "sources": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "warnings": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "duration_ms",
              "cached",
              "sources",
              "warnings",
              "next_actions"
            ],
            "type": "object"
          },
          "request_id": {
            "description": "Unique request identifier",
            "type": "string"
          },
          "service": {
            "const": "document.extract",
            "type": "string"
          },
          "version": {
            "const": "1",
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "service",
          "version",
          "data",
          "meta"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "content_base64": "SGVsbG8gd29ybGQ=",
            "filename": "report.txt"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "characters": 11,
              "metadata": {
                "bytes": 11,
                "filename": "report.txt",
                "sha256": "64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c"
              },
              "text": "Hello world",
              "words": 2
            },
            "meta": {
              "cached": false,
              "duration_ms": 42,
              "next_actions": [
                {
                  "authorization_required": true,
                  "checkout_path": "/try/document.redact",
                  "executes_automatically": false,
                  "handoff_path": "/catalog/document.redact",
                  "handoff_payment_required": false,
                  "input_template": {
                    "text": "$result.data.text"
                  },
                  "maximum_atomic_usdc": "10000",
                  "method": "POST",
                  "path": "/v1/document/redact",
                  "price": "$0.01",
                  "reason": "Remove common personal-data patterns from the extracted text before reuse.",
                  "sample_path": "/samples/document.redact",
                  "service": "document.redact",
                  "title": "PII and personal-data redaction",
                  "use_output": "Use result.data.text as the redacted document and inspect the returned counts."
                }
              ],
              "sources": [],
              "warnings": []
            },
            "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
            "service": "document.extract",
            "version": "1"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "content_base64": {
                    "maxLength": 7100000,
                    "title": "Content Base64",
                    "type": "string"
                  },
                  "filename": {
                    "maxLength": 240,
                    "title": "Filename",
                    "type": "string"
                  }
                },
                "required": [
                  "filename",
                  "content_base64"
                ],
                "title": "DocumentInput",
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "description": "Structured Document extraction result",
                    "properties": {
                      "characters": {
                        "type": "integer"
                      },
                      "metadata": {
                        "type": "object"
                      },
                      "text": {
                        "type": "string"
                      },
                      "words": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  "meta": {
                    "properties": {
                      "cached": {
                        "type": "boolean"
                      },
                      "duration_ms": {
                        "minimum": 0,
                        "type": "integer"
                      },
                      "next_actions": {
                        "description": "Optional separately priced follow-up calls. Each action requires a new payment challenge and explicit buyer authorization.",
                        "items": {
                          "properties": {
                            "authorization_required": {
                              "const": true,
                              "type": "boolean"
                            },
                            "checkout_path": {
                              "pattern": "^/try/",
                              "type": "string"
                            },
                            "executes_automatically": {
                              "const": false,
                              "type": "boolean"
                            },
                            "handoff_path": {
                              "description": "Free full contract and spend-capped command handoff; reading it does not execute or purchase the follow-up.",
                              "pattern": "^/catalog/",
                              "type": "string"
                            },
                            "handoff_payment_required": {
                              "const": false,
                              "type": "boolean"
                            },
                            "input_template": {
                              "description": "Client-side template only: $request refers to the original input, $result to this response, and $json(...) serializes its argument. The server does not execute the follow-up.",
                              "type": "object"
                            },
                            "maximum_atomic_usdc": {
                              "pattern": "^[1-9][0-9]*$",
                              "type": "string"
                            },
                            "method": {
                              "const": "POST",
                              "type": "string"
                            },
                            "path": {
                              "pattern": "^/v1/",
                              "type": "string"
                            },
                            "price": {
                              "pattern": "^\\$[0-9]+",
                              "type": "string"
                            },
                            "reason": {
                              "type": "string"
                            },
                            "sample_path": {
                              "pattern": "^/samples/",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "service": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "use_output": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "service",
                            "title",
                            "reason",
                            "method",
                            "path",
                            "price",
                            "input_template",
                            "use_output",
                            "handoff_path",
                            "checkout_path",
                            "sample_path",
                            "maximum_atomic_usdc",
                            "handoff_payment_required",
                            "executes_automatically",
                            "authorization_required"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "sources": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "warnings": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "duration_ms",
                      "cached",
                      "sources",
                      "warnings",
                      "next_actions"
                    ],
                    "type": "object"
                  },
                  "request_id": {
                    "description": "Unique request identifier",
                    "type": "string"
                  },
                  "service": {
                    "const": "document.extract",
                    "type": "string"
                  },
                  "version": {
                    "const": "1",
                    "type": "string"
                  }
                },
                "required": [
                  "request_id",
                  "service",
                  "version",
                  "data",
                  "meta"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "documents",
    "data",
    "document",
    "pdf",
    "docx",
    "bazaar",
    "payment-identifier"
  ],
  "sourceHost": "apiacre.com",
  "lastUpdated": "2026-10-08T06:11:42.169Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:11:41.93Z"
  },
  "metadata": {
    "serviceName": "API Acre",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1786471603/bazaar-icons/3cd5dfbdc8c7913d.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "content_base64": "SGVsbG8gd29ybGQ=",
              "filename": "report.txt"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "characters": 11,
                "metadata": {
                  "bytes": 11,
                  "filename": "report.txt",
                  "sha256": "64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c"
                },
                "text": "Hello world",
                "words": 2
              },
              "meta": {
                "cached": false,
                "duration_ms": 42,
                "next_actions": [
                  {
                    "authorization_required": true,
                    "checkout_path": "/try/document.redact",
                    "executes_automatically": false,
                    "handoff_path": "/catalog/document.redact",
                    "handoff_payment_required": false,
                    "input_template": {
                      "text": "$result.data.text"
                    },
                    "maximum_atomic_usdc": "10000",
                    "method": "POST",
                    "path": "/v1/document/redact",
                    "price": "$0.01",
                    "reason": "Remove common personal-data patterns from the extracted text before reuse.",
                    "sample_path": "/samples/document.redact",
                    "service": "document.redact",
                    "title": "PII and personal-data redaction",
                    "use_output": "Use result.data.text as the redacted document and inspect the returned counts."
                  }
                ],
                "sources": [],
                "warnings": []
              },
              "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
              "service": "document.extract",
              "version": "1"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "content_base64": {
                      "maxLength": 7100000,
                      "title": "Content Base64",
                      "type": "string"
                    },
                    "filename": {
                      "maxLength": 240,
                      "title": "Filename",
                      "type": "string"
                    }
                  },
                  "required": [
                    "filename",
                    "content_base64"
                  ],
                  "title": "DocumentInput",
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "description": "Structured Document extraction result",
                      "properties": {
                        "characters": {
                          "type": "integer"
                        },
                        "metadata": {
                          "type": "object"
                        },
                        "text": {
                          "type": "string"
                        },
                        "words": {
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    },
                    "meta": {
                      "properties": {
                        "cached": {
                          "type": "boolean"
                        },
                        "duration_ms": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "next_actions": {
                          "description": "Optional separately priced follow-up calls. Each action requires a new payment challenge and explicit buyer authorization.",
                          "items": {
                            "properties": {
                              "authorization_required": {
                                "const": true,
                                "type": "boolean"
                              },
                              "checkout_path": {
                                "pattern": "^/try/",
                                "type": "string"
                              },
                              "executes_automatically": {
                                "const": false,
                                "type": "boolean"
                              },
                              "handoff_path": {
                                "description": "Free full contract and spend-capped command handoff; reading it does not execute or purchase the follow-up.",
                                "pattern": "^/catalog/",
                                "type": "string"
                              },
                              "handoff_payment_required": {
                                "const": false,
                                "type": "boolean"
                              },
                              "input_template": {
                                "description": "Client-side template only: $request refers to the original input, $result to this response, and $json(...) serializes its argument. The server does not execute the follow-up.",
                                "type": "object"
                              },
                              "maximum_atomic_usdc": {
                                "pattern": "^[1-9][0-9]*$",
                                "type": "string"
                              },
                              "method": {
                                "const": "POST",
                                "type": "string"
                              },
                              "path": {
                                "pattern": "^/v1/",
                                "type": "string"
                              },
                              "price": {
                                "pattern": "^\\$[0-9]+",
                                "type": "string"
                              },
                              "reason": {
                                "type": "string"
                              },
                              "sample_path": {
                                "pattern": "^/samples/",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "service": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "use_output": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "service",
                              "title",
                              "reason",
                              "method",
                              "path",
                              "price",
                              "input_template",
                              "use_output",
                              "handoff_path",
                              "checkout_path",
                              "sample_path",
                              "maximum_atomic_usdc",
                              "handoff_payment_required",
                              "executes_automatically",
                              "authorization_required"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "sources": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "warnings": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "duration_ms",
                        "cached",
                        "sources",
                        "warnings",
                        "next_actions"
                      ],
                      "type": "object"
                    },
                    "request_id": {
                      "description": "Unique request identifier",
                      "type": "string"
                    },
                    "service": {
                      "const": "document.extract",
                      "type": "string"
                    },
                    "version": {
                      "const": "1",
                      "type": "string"
                    }
                  },
                  "required": [
                    "request_id",
                    "service",
                    "version",
                    "data",
                    "meta"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "payment-identifier": {
        "info": {
          "required": false
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "id": {
              "maxLength": 128,
              "minLength": 16,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "type": "string"
            },
            "required": {
              "type": "boolean"
            }
          },
          "required": [
            "required"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "apiacre.com",
    "manifest_name": "apiacre.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "data": {
      "characters": 11,
      "metadata": {
        "bytes": 11,
        "filename": "report.txt",
        "sha256": "64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c"
      },
      "text": "Hello world",
      "words": 2
    },
    "meta": {
      "cached": false,
      "duration_ms": 42,
      "next_actions": [
        {
          "authorization_required": true,
          "checkout_path": "/try/document.redact",
          "executes_automatically": false,
          "handoff_path": "/catalog/document.redact",
          "handoff_payment_required": false,
          "input_template": {
            "text": "$result.data.text"
          },
          "maximum_atomic_usdc": "10000",
          "method": "POST",
          "path": "/v1/document/redact",
          "price": "$0.01",
          "reason": "Remove common personal-data patterns from the extracted text before reuse.",
          "sample_path": "/samples/document.redact",
          "service": "document.redact",
          "title": "PII and personal-data redaction",
          "use_output": "Use result.data.text as the redacted document and inspect the returned counts."
        }
      ],
      "sources": [],
      "warnings": []
    },
    "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
    "service": "document.extract",
    "version": "1"
  }
}