Web Page Fetch
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/web/fetchimport requests
url = "https://api.asksurf.ai/gateway/v1/web/fetch"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/web/fetch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"content": "<string>",
"url": "<string>",
"title": "<string>"
},
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/DataObjectResponseWebFetchResultItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Web
Web Page Fetch
GET
/
gateway
/
v1
/
web
/
fetch
Web Page Fetch
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/web/fetchimport requests
url = "https://api.asksurf.ai/gateway/v1/web/fetch"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/web/fetch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"content": "<string>",
"url": "<string>",
"title": "<string>"
},
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/DataObjectResponseWebFetchResultItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}