{
"url": "https://example.com",
"status_code": 200,
"content_type": "text/html; charset=utf-8",
"fetch_ms": 129,
"metadata": {
"title": "Example Domain",
"meta_title": "Example Domain",
"description": null,
"canonical_url": "https://example.com",
"language": "en",
"author": null,
"published_time": null,
"favicon": "data:,",
"image": null,
"opengraph": [],
"twitter": [],
"feeds": [],
"json_ld": []
},
"markdown": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
"text": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
"stats": {
"word_count": 25,
"char_count": 156,
"reading_time_minutes": 1
},
"links": [],
"images": []
}
curl --location --request GET 'https://zylalabs.com/api/16062/web2md+webpage+to+markdown+api/45757/extract+structured+page+data?url=https://example.com' --header 'Authorization: Bearer YOUR_API_KEY'
# Example Domain
Source: https://example.com
This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.
curl --location --request GET 'https://zylalabs.com/api/16062/web2md+webpage+to+markdown+api/45758/convert+url+to+markdown?url=https://example.com' --header 'Authorization: Bearer YOUR_API_KEY'
{
"url": "https://example.com",
"status_code": 200,
"content_type": "text/html; charset=utf-8",
"fetch_ms": 131,
"metadata": {
"title": "Example Domain",
"meta_title": "Example Domain",
"description": null,
"canonical_url": "https://example.com",
"language": "en",
"author": null,
"published_time": null,
"favicon": "data:,",
"image": null,
"opengraph": [],
"twitter": [],
"feeds": [],
"json_ld": []
}
}
curl --location --request GET 'https://zylalabs.com/api/16062/web2md+webpage+to+markdown+api/45759/extract+webpage+metadata?url=https://example.com' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Web2MD Webpage to Markdown API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Convert any public URL or webpage into clean LLM-ready Markdown, plain text, OpenGraph metadata, JSON-LD, and structured links.
It returns the fetched URL’s status and content type, fetch duration, metadata, Markdown, plain text, content statistics, and structured page elements such as links and images. Metadata can include OpenGraph tags, Twitter cards, feeds, and JSON-LD.
The response groups page details into fields such as `metadata`, `markdown`, `text`, and `stats`. The `stats` object includes word count, character count, and estimated reading time; metadata fields include the title, canonical URL, language, and other extracted values.
It returns a Markdown-formatted page with a title heading, a source URL, and the extracted page content. For example, the response may begin with `# Example Domain`, followed by the source and the page’s main text.
Use `markdown` when headings and readable formatting are useful, or `text` for a plain-text input. The structured endpoint also provides word counts and links, which can help with content processing and indexing.
It returns the fetched URL’s status and content type, fetch duration, and a `metadata` object. Available fields include title, description, canonical URL, language, author, publication time, favicon, image, OpenGraph and Twitter data, feeds, and JSON-LD.
A webpage may not provide a particular metadata value or structured-data type. For example, the sample response has `null` for description and author and empty arrays for OpenGraph, Twitter, feeds, and JSON-LD. Treat these as unavailable rather than assuming extraction failed.
`status_code` reports the fetch result, `content_type` identifies the returned content type, and `fetch_ms` records how long the fetch took in milliseconds. Check these fields when interpreting extracted content or diagnosing an unexpected response.
The structured-data endpoint includes page content and analysis—Markdown, text, statistics, links, and images—alongside metadata. The metadata endpoint focuses on page metadata and does not include the extracted Markdown or text in its example response.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund