# Website to Text API

> Website to Text converts any webpage URL into plain text stripped of HTML tags. It returns the extracted body copy, page title, meta description, publication date, and detected language code.

**Endpoint:** `POST https://api.apiverve.com/v1/websitetotext`  
**Category:** Data Conversion  
**Cost:** 25 credits per call  
**Canonical page:** https://apiverve.com/marketplace/websitetotext

## Overview

Use it as a webpage content API that turns any website into structured JSON: body text, title, description, publish date and language from one URL. It fetches the page, strips navigation and markup, and returns the main article text along with the publisher and URL.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/websitetotext" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | Yes | The URL of the website to convert to text; without a scheme, https:// is assumed. url |

## Response fields

- `date` — object · Publication or last modified date of the webpage
- `description` — string · Meta description extracted from website content
- `title` — string · Primary page title extracted from HTML
- `title_alt` — string · Alternative title extracted from page content
- `text` — string · Complete extracted text content from website
- `language` — string · Detected language code of website content (e.g. en)
- `publisher` — object · Publisher or source organization of webpage
- `url` — string · Original URL provided for text conversion

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "date": null,
    "description": "Use Amazon EC2 for scalable computing capacity in the AWS Cloud so you can develop and deploy applications without hardware constraints.",
    "title": "What is Amazon EC2?",
    "title_alt": "What is Amazon EC2?",
    "text": "Amazon Elastic Compute Cloud (Amazon EC2) provides on-demand, scalable computing capacity in the Amazon Web \t\tServices (AWS) Cloud. Using Amazon EC2 reduces hardware costs so you can develop and deploy \t\tapplications faster. You can use Amazon EC2 to launch as many or as few virtual servers as you \t\tneed, configure security and networking, and manage storage. You can add capacity (scale up) \t\tto handle compute-heavy tasks, such as monthly or yearly processes, or spikes in website \t\ttraffic. When usage decreases, you can reduce capacity (scale down) again.  An EC2 instance is a virtual server in the AWS Cloud. When you launch an EC2 instance,     \tthe instance type that you specify determines the hardware available to your instance.      \tEach instance type offers a different balance of compute, memory, network, and storage      \tresources. For more information, see the Amazon EC2 Instance Types Guide.  Amazon EC2 provides the following high-level features:  Amazon EC2 supports the processing, storage, and transmission  of credit card data by a merchant or service provider, and has been  validated as being compliant with Payment Card Industry (PCI) Data Security Standard (DSS).  For more information about PCI DSS, including how to request a copy of the AWS PCI Compliance Package,  see PCI DSS Level 1.  You can create and manage your Amazon EC2 instances using the following interfaces:  Amazon EC2 provides the following pricing options:  For a complete list of charges and prices for Amazon EC2 and more information about the purchase \t\t\tmodels, see Amazon EC2 pricing.  To create estimates for your AWS use cases, use the AWS Pricing Calculator.  To estimate the cost of transforming Microsoft  workloads to a modern architecture that uses open source and \t\t\t\tcloud-native services deployed on AWS, use the AWS  Modernization Calculator for Microsoft Workloads.  To see your bill, go to the Billing and Cost Management  Dashboard in the AWS Billing and Cost Management  console. Your bill contains links to usage reports that provide details \t\t\t\tabout your bill. To learn more about AWS account billing, see AWS Billing and Cost Management User  Guide.  If you have questions concerning AWS billing, accounts, and events, contact AWS Support.  To calculate the cost of a sample provisioned \t\t\t\t\tenvironment, see . When calculating the cost of a provisioned \t\t\t\tenvironment, remember to include incidental costs such as snapshot storage for EBS \t\t\t\tvolumes.  You can optimize the cost, security, and performance of your AWS environment \t\t\t\tusing AWS Trusted Advisor.  You can use AWS Cost Explorer to analyze the cost and usage of your EC2 instances. You can view  \t\t\t\tdata up to the last 13 months, and forecast how much you are likely to spend for the next  \t\t\t\t12 months. For more information, see \t\t\t\tAnalyzing your costs and usage with  AWS Cost Explorer in the AWS Cost Management User Guide.",
    "language": "en",
    "publisher": null,
    "url": "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts"
  }
}
```

## Use cases

- **LLM Pipeline Ingestion** — Strip markup from linked articles and feed clean body copy directly into document chunking or vector embedding workflows.
- **News Monitoring Feeds** — Media tracking platforms collect publication dates, publisher names, and article text from press releases across multiple news outlets.
- **Automated Translation Routing** — Before translating external blog posts, read the detected language code and raw text to route content to the correct localization queue.
- **Archival Search Indexing** — Internal search crawlers pull page titles, meta descriptions, and article text from saved URLs to populate full-text database indexes.

## SDKs

- **npm** — `npm install @apiverve/websitetotext` (https://www.npmjs.com/package/@apiverve/websitetotext)
- **PyPI** — `pip install apiverve-websitetotext` (https://pypi.org/project/apiverve-websitetotext/)
- **NuGet** — `dotnet add package APIVerve.API.WebsitetoText` (https://www.nuget.org/packages/APIVerve.API.WebsitetoText)
- **Source** — https://github.com/apiverve/websitetotext-api

## More

- Full reference: https://docs.apiverve.com/ref/websitetotext
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
