Api Endpoint

1gateway

Use when an agent must read a document as clean Markdown: web page, PDF, DOCX or Korean HWP/HWPX, tables kept. Input: url (http/https) via GET, or POST a file (multipart 'file', raw body, or JSON contentBase64+filename). Free-plan size cap → 413 before payment: HWP 48 KB, HWPX 100 KB XML. Output: JSON markdown, title, pages, sourceType, warnings. Price by detected type: HTML $0.0027, PDF/DOCX $0.0045, HWP/HWPX $0.009. Example: ?url=https://example.com/

Open interactive test console

Offering

Provider
1gateway.dev
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Web Search Research
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://1gateway.dev/v1/convert/markdown
MIME type
Not provided
First seen
2026-10-16T01:50:32.458Z
Last seen
Tags
markdown, document-conversion, pdf-to-markdown, hwp, web-scraping

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.0027 USDC
Atomic price: 2700 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2700",
    "payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
  }
]

Observed health

Status
Healthy
Latest latency
85 ms
Average latency
583 ms
HTTP status
204
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "anyOf": [
        {
          "required": [
            "url"
          ]
        },
        {
          "required": [
            "contentBase64"
          ]
        }
      ],
      "properties": {
        "contentBase64": {
          "description": "The document bytes, base64 (alternative to url; max 10 MB decoded)",
          "type": "string"
        },
        "filename": {
          "description": "Original file name, e.g. report.hwp (helps detection)",
          "maxLength": 255,
          "type": "string"
        },
        "type": {
          "description": "Optional expected type; mismatch → 415 before payment (not charged)",
          "enum": [
            "html",
            "text",
            "pdf",
            "docx",
            "hwp",
            "hwpx"
          ],
          "type": "string"
        },
        "url": {
          "description": "Public http(s) URL of the document (alternative to contentBase64)",
          "maxLength": 2048,
          "pattern": "^https?://",
          "type": "string"
        }
      }
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "properties": {
    "example": {
      "properties": {
        "bytes": {
          "type": "integer"
        },
        "chars": {
          "type": "integer"
        },
        "markdown": {
          "type": "string"
        },
        "pages": {
          "type": "integer"
        },
        "priceTier": {
          "type": "string"
        },
        "sections": {
          "type": "integer"
        },
        "sourceType": {
          "type": "string"
        },
        "sourceUrl": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "warnings": {
          "items": {},
          "type": "array"
        }
      },
      "required": [
        "markdown",
        "title",
        "sourceType",
        "priceTier",
        "bytes",
        "chars",
        "warnings"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}