Api Endpoint

1gateway.dev

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
GET
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
application/json
First seen
2026-10-16T02:23:12.271Z
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
Payment option 2
0.0027 USDC
Atomic price: 2700 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2700",
    "payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "2700",
    "payTo": "AwV6UZobYPyTdsuNa2NknZZrnmmUoH5ckEv3wNgL26WT"
  }
]

Observed health

Status
Healthy
Latest latency
807 ms
Average latency
1251 ms
HTTP status
402
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

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "Public http(s) URL of a web page, PDF, DOCX, HWP or HWPX within the per-format size caps (see 413 in /openapi.json). For uploads use POST instead.",
          "pattern": "^https?://",
          "maxLength": 2048,
          "examples": [
            "https://example.com/"
          ]
        },
        "type": {
          "type": "string",
          "description": "Optional expected type; a mismatch is rejected before payment (415, not charged)",
          "enum": [
            "html",
            "text",
            "pdf",
            "docx",
            "hwp",
            "hwpx"
          ],
          "examples": [
            "html"
          ]
        }
      },
      "required": [],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

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