You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/browser-rendering/rest-api/markdown-endpoint.mdx
+26-9Lines changed: 26 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,16 @@ sidebar:
5
5
order: 10
6
6
---
7
7
8
+
import { Tabs, TabItem } from"~/components";
9
+
8
10
The `/markdown` endpoint retrieves a webpage's content and converts it into Markdown format. You can specify a URL and optional parameters to refine the extraction process.
"result": "# Example Domain\n\nThis domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.\n\n[More information...](https://www.iana.org/domains/example)"
31
33
}
32
34
```
33
35
36
+
</TabItem> <TabItemlabel="TypeScript SDK">
37
+
38
+
```javascript
39
+
importCloudflarefrom"cloudflare";
40
+
41
+
constclient=newCloudflare({
42
+
apiEmail:process.env["CLOUDFLARE_EMAIL"], // This is the default and can be omitted
43
+
apiKey:process.env["CLOUDFLARE_API_KEY"], // This is the default and can be omitted
"result": "# Example Domain\n\nThis domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.\n\n[More information...](https://www.iana.org/domains/example)"
0 commit comments