---
title: "Page text by URL"
method: GET
path: "/text"
tags: ["Text"]
---

# Page text by URL

`GET /text`

Returns the visible text content of a webpage specified by the URL. Can be used to feed data to LLM models. The response can be in plain text, JSON, or XML format based on the text_format parameter. Proxies and Chromium JavaScript rendering are used for page retrieval and processing. Returns JSON on error.

## Query parameters

- `text_format` 'plain' | 'xml' | 'json'
- `return_links` boolean
- `url` string, required
- `headers` object
- `timeout` integer
- `js` boolean
- `js_timeout` integer
- `wait_for` string
- `proxy` 'datacenter' | 'residential' | 'stealth'
- `country` 'us' | 'gb' | 'de' | 'it' | 'fr' | 'ca' | 'es' | 'ru' | 'jp' | 'kr' | 'in' | 'hk' | 'tr'
- `custom_proxy` string
- `device` 'desktop' | 'mobile' | 'tablet'
- `error_on_404` boolean
- `error_on_redirect` boolean
- `js_script` string

## Response `200`

Success

- string

## Other responses

- `400` — Parameters validation error
- `402` — Billing issue, probably you've ran out of credits
- `403` — Wrong API key
- `429` — Too many concurrent requests
- `500` — Non-2xx and non-404 HTTP status code on the target page or unexpected error, try again or contact support@webscraping.ai
- `504` — Timeout error, try increasing timeout parameter value

---

[API](https://skmtc.net/webscraping/apis/webscraping-ai.md) · [All operations](https://skmtc.net/webscraping/apis/webscraping-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/webscraping/webscraping-ai/versions/786b9bdc23f1/schema)
