Web
Web Page Fetch
Fetches a web page and converts it to clean, LLM-friendly markdown.
Options:
- target_selector — extract specific page sections
- remove_selector — strip unwanted elements
Returns 400 if the URL is invalid or unreachable.
get/gateway/v1/web/fetch
Request
- Base URLhttps://api.asksurf.ai
- AuthHTTP bearer
Query parameters
urlstring required
URL to fetch and parse
Example:https://ethereum.org
target_selectorstring
CSS selector to extract specific content
Example:article.main-content
remove_selectorstring
CSS selector to remove unwanted elements
Example:nav,footer,.ads
wait_for_selectorstring
CSS selector to wait for before extracting
Example:.content-loaded
timeoutinteger
Request timeout in milliseconds
Example:5000
Response
OK
Example response
{
"$schema": "https://example.com/schemas/DataObjectResponseWebFetchResultItem.json"
}Changes
No recorded changes to this operation across all 12 revisions of this API.