Markdown From URL API1.0.0

Fetches the page at a URL and returns it as Markdown. This console is generated from the API description; every operation can be tried from here.

Show/Hide  |  List Operations  |  Expand Operationsmarkdown : Convert a page

GET/api/markdownThe page at an address, as Markdown

Parameters

ParameterValueDescriptionParameter TypeData Type
urlAddress of the page to convert.querystring
imagesKeep images, as links.queryboolean
formatmarkdownmarkdown, text, html or json.querystring

Response Messages

HTTP Status CodeReason
400No address, or one that is not fetched.
415The address answered with something that is not a page.
502The page could not be fetched.
POST/api/markdownThe same, with the parameters as a form or a JSON body

Show/Hide  |  List Operations  |  Expand Operationsnotes : Implementation Notes

Markdown From URL: Markdown from any URL, over a small HTTP API. No key, no sign-up.

Put the address after the slash, or in url=. The answer is the page as
Markdown:

    https://www.markdownfromurl.com/api/markdown/https://example.com/some/article
    https://www.markdownfromurl.com/api/markdown?url=https://example.com/some/article

From a shell:

    curl https://www.markdownfromurl.com/api/markdown/https://example.com/some/article
    curl -G https://www.markdownfromurl.com/api/markdown \
        --data-urlencode 'url=https://example.com/page?a=1&b=2'

Other formats: text without the marks,
cleaned-up HTML, or JSON with the title, the final address, the status
and the content:

    https://www.markdownfromurl.com/api/markdown?format=text&url=https://example.com/
    https://www.markdownfromurl.com/api/markdown?format=html&url=https://example.com/
    https://www.markdownfromurl.com/api/markdown?format=json&url=https://example.com/
    curl -H 'Accept: application/json' \
        https://www.markdownfromurl.com/api/markdown/https://example.com/

Put url last, or percent-encode it: an address written out as it is
runs to the end of the line, with its own ? and & in it.

Redirects are followed and X-Source-Url says where the page came from.
Images are left out; images=1 keeps them as links. A long page is cut
at 400 kB and X-Incomplete says so. HTML, plain text, Markdown, JSON and
XML are read; PDFs and other files are not.

Show/Hide  |  List Operations  |  Expand Operationsbatch : Convert many pages (not implemented)