# MarkdownScribe > MarkdownScribe does the Markdown work in one API call: parse frontmatter, build a TOC, lint, format, render Mermaid to SVG, convert any URL to Markdown. Pay per credit. Six REST operations behind one API key. Base URL: . Send the key in the `X-API-Key` header; every operation takes a JSON body and returns JSON. Every response says what it cost in the `X-Credits-Charged` header, and calls that return an error are not charged. Every error carries a `code`, a `hint` and a `docs_url`. Keys and credits live in the dashboard at ; a new account starts with 2,000 credits. TypeScript SDK `@markdownscribe/sdk` and CLI `markdownscribe` (command `mdscribe`) on npm. ## Getting started - [Quickstart](https://docs.markdownscribe.com/quickstart/): From sign-up to your first MarkdownScribe call in five steps: create an account, create an API key, keep it on the server, make a call, read what it cost. - [Concepts](https://docs.markdownscribe.com/concepts/): The four things every MarkdownScribe call shares: the API key, the credits it costs, the error contract and the request id. ## Operations - [URL to Markdown](https://docs.markdownscribe.com/operations/url-to-md/): Turn a web page into Markdown with one API call. Pages that need JavaScript are rendered in a headless browser on our side. Costs 3 to 8 credits per call. - [Mermaid to SVG](https://docs.markdownscribe.com/operations/mermaid/): Render the Mermaid diagrams in a Markdown document, or one diagram on its own, to SVG with one API call. For web pages and Markdown renderers. Costs from 1 credit per call. - [Format](https://docs.markdownscribe.com/operations/format/): Normalize a Markdown document with one API call: list markers, emphasis, tables, spacing and line endings, the same way every time. Costs 2 credits per call. - [Lint](https://docs.markdownscribe.com/operations/lint/): Check a Markdown document against structural rules with one API call. Every finding comes with its line, rule id, what was expected and what to do. Costs 2 credits per call. - [Table of contents](https://docs.markdownscribe.com/operations/toc/): Build a table of contents from the headings of a Markdown document with one API call. Anchors match the ones GitHub generates. Costs 1 credit per call. - [Frontmatter](https://docs.markdownscribe.com/operations/frontmatter/): Split the YAML frontmatter from a Markdown document with one API call and get it back as JSON, with dates and times as they were written. Costs 1 credit per call. ## Pricing - [Pricing](https://markdownscribe.com/pricing.md): Plans in USD and credits per operation, in Markdown. 5,000 credits for $5 one-time, or 15,000 credits per month for $9. ## Errors - [Error codes](https://docs.markdownscribe.com/errors/): Every error code the MarkdownScribe API returns, its HTTP status and what to do next. No error is charged. ## OpenAPI - [openapi.json](https://api.markdownscribe.com/openapi.json): The whole contract as one OpenAPI document: six routes, one request shape, one error shape, credits per operation in `x-credits`. - [API catalog](https://markdownscribe.com/.well-known/api-catalog): RFC 9727 linkset pointing to the OpenAPI document and the documentation. ## Optional - [Contact](https://markdownscribe.com/contact): Support and security e-mail addresses. - [Refunds and cancellation](https://markdownscribe.com/refunds): Full refund of a credit pack within 7 days; monthly plan cancels at the end of the paid cycle. - [Terms of service](https://markdownscribe.com/terms): What you agree to when you use the API. - [Privacy policy](https://markdownscribe.com/privacy): What is stored, for how long, and how to ask for your data.