{
  "x402Version": 2,
  "id": 34843,
  "slug": "34843",
  "resource": "https://1gateway.dev/v1/convert/markdown",
  "description": "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/",
  "type": "http",
  "serviceName": "1gateway",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791609992/bazaar-icons/c4d9db8f8f483844.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2700",
      "amountUsd": 0.0027,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "url": "https://example.com/"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "bytes": 577,
            "chars": 174,
            "markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
            "priceTier": "basic",
            "sourceType": "html",
            "sourceUrl": "https://example.com/",
            "title": "Example Domain",
            "warnings": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "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": {
            "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"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "markdown",
    "document-conversion",
    "pdf-to-markdown",
    "hwp",
    "web-scraping",
    "bazaar"
  ],
  "sourceHost": "1gateway.dev",
  "lastUpdated": "2026-10-12T05:42:25.032Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T05:42:24.382Z"
  },
  "metadata": {
    "serviceName": "1gateway",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791609992/bazaar-icons/c4d9db8f8f483844.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "url": "https://example.com/"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "bytes": 577,
              "chars": 174,
              "markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
              "priceTier": "basic",
              "sourceType": "html",
              "sourceUrl": "https://example.com/",
              "title": "Example Domain",
              "warnings": []
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "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": {
              "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"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "1gateway.dev",
    "manifest_name": "1gateway.dev",
    "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": {
    "example": {
      "bytes": 0,
      "chars": 0,
      "markdown": "string",
      "pages": 0,
      "priceTier": "string",
      "sections": 0,
      "sourceType": "string",
      "sourceUrl": "string",
      "title": "string",
      "warnings": [
        "value"
      ]
    },
    "type": "string"
  }
}