apyhub
DATA EXTRACTION · SEO

Extract Article Text API

What it does

Article Text Extraction fetches a web page by URL and returns the cleaned article text plus basic metadata. Send a URL in the request body, and get back the resolved URL, page title, extracted text, content type, and text length.

Use Article Text Extraction when you need the readable content from an article page without nav, ads, or other surrounding markup. It is a good fit for content aggregation, newsroom tooling, research workflows, and pipelines that need to turn a published page into plain text for indexing or downstream analysis.

The response is straightforward: url for the requested page, final_url for the resolved destination, title for the article title, text for the cleaned article body, length for the text size, and content_type for the fetched resource. That makes it easy to store article content, compare source pages, or feed extracted text into search and analysis systems.

POST
Fetch a URL and return clean article text with metadata
http://localhost:8080/dosvak/extract-article-text
QUICKSTARTGUIDE

Quickstart

Send the article URL to extract its text, title, and metadata.

curl -X POST "http://localhost:8080/dosvak/extract-article-text" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://techcrunch.com/2026/07/22/article"}'

What you'll get back

Returns a JSON object with these top-level fields: url (string), text (string), title (string), length (integer), final_url (string), and content_type (string).

{
  "url": "https://techcrunch.com/2026/07/22/article",
  "text": "Article text...",
  "title": "Article title",
  "length": 1234,
  "final_url": "https://techcrunch.com/2026/07/22/article",
  "content_type": "text/html"
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*

About this endpoint

What it does

Fetches the article at the provided URL and returns extracted clean text plus metadata about the fetched page.

Request Body

ParameterTypeMandatoryDescription
urlStringYesThe URL to fetch and extract article text from.

Response

Returns a JSON object with url, text, title, length, final_url, and content_type fields. url, text, title, final_url, and content_type are strings, and length is an integer.

ParameterTypeMandatoryDescription
urlStringNoThe input URL associated with the extraction result.
textStringNoThe cleaned article text.
titleStringNoThe article title.
lengthIntegerNoThe length of the extracted text.
final_urlStringNoThe final URL after any redirects.
content_typeStringNoThe content type of the fetched resource.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.