Skip to content

Commit 09bcd50

Browse files
collapsed lines
1 parent fedb13f commit 09bcd50

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/content/docs/browser-rendering/rest-api/json-endpoint.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The `/json` endpoint extracts structured data from a webpage. You can specify th
2121

2222
This example captures webpage data by providing both a prompt and a JSON schema. The prompt guides the extraction process, while the JSON schema defines the expected structure of the output.
2323

24-
```bash
24+
```bash {11-13} collapse={15-48}
2525
curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID/browser-rendering/json' \
2626
--header 'authorization: Bearer CF_API_TOKEN' \
2727
--header 'content-type: application/json' \
@@ -57,7 +57,7 @@ curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID
5757
```
5858

5959

60-
```json output
60+
```json output {11-13} collapse={15-48}
6161
{
6262
"success": true,
6363
"result": {
@@ -122,7 +122,7 @@ curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID
122122

123123
In this case, you supply a JSON schema via the `response_format` parameter. The schema defines the structure of the extracted data.
124124

125-
```bash
125+
```bash {11-13} collapse={15-48}
126126
curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID/browser-rendering/json' \
127127
--header 'authorization: Bearer CF_API_TOKEN' \
128128
--header 'content-type: application/json' \
@@ -154,7 +154,7 @@ curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID
154154
```
155155

156156

157-
```json output
157+
```json output {11-13} collapse={15-48}
158158
{
159159
"success": true,
160160
"result": {

src/content/docs/browser-rendering/rest-api/links-endpoint.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-
2121
}'
2222
```
2323

24-
```json output
24+
```json output {11-13} collapse={15-80}
2525
{
2626
"success": true,
2727
"result": [
@@ -114,7 +114,7 @@ curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-
114114
}'
115115
```
116116

117-
```json output
117+
```json output {11-13} collapse={15-80}
118118
{
119119
"success": true,
120120
"result": [

0 commit comments

Comments
 (0)