apyhub
DATA EXTRACTION

Extract Article From Web API

What it does

Article Extractor pulls the main content from a webpage and returns a clean article record you can use in your app or pipeline. Send a url, get back extracted text plus metadata such as title, author, date, images, language, word_count, source_url, and per-field confidence scores.

Use it when you need to turn messy web pages into structured content for search indexing, content ingestion, reading apps, monitoring, or editorial workflows. The response is designed for pages where the article body is embedded in surrounding layout, ads, navigation, or other non-essential markup.

Because the endpoint works from a webpage URL, it fits common automation tasks like validating whether a page has publishable article content, building a content feed from public sources, or auditing source pages before downstream processing. If the extractor cannot identify a field, the schema reflects that by omitting it rather than inventing extra structure.

Article Extractor keeps the output focused on what was actually found on the page, so you can store, display, rank, or review the extracted article data with minimal post-processing.

POST
Extract Article
http://localhost:8080/chisleroff/extract-article
QUICKSTARTGUIDE

Quickstart

Send the webpage URL you want to extract as JSON.

curl -X POST "http://localhost:8080/chisleroff/extract-article" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://apyhub.com/blog"}'

What you'll get back

Returns a JSON object with article fields such as body, date, title, author, images, language, confidence, source_url, and word_count, when available.

{
  "title": "API Marketplace for Teams, Developers, and AI Agents",
  "author": "",
  "date": "",
  "body": "<html><body><div><div class=\"p-6 text-sm\"><p class=\"leading-relaxed text\">Yes. ApyHub includes APIs to convert files between formats including PDF, Word, Excel, CSV, images (JPEG, PNG, WebP), audio, and video. You can also compress, resize, crop, add watermarks, generate thumbnails, and manipulate multimedia content programmatically.</p></div></div></body></html>",
  "images": [
    "https://apyhub.com/meta-apyhub-new.png"
  ],
  "word_count": 36,
  "language": "en",
  "source_url": "https://apyhub.com",
  "confidence": {
    "title": 0.48,
    "body": 0.46,
    "author": 0,
    "date": 0
  }
}
TRY ITLIVE · 100 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*
URL of the webpage to extract, audit, or validate content from (http/https only).

About this endpoint

What it does

Extracts article content and metadata from a webpage URL. The request sends a webpage url, and the response returns extracted article fields such as body, title, author, images, and related metadata.

Request Body

ParameterTypeMandatoryDescription
urlStringYesURL of the webpage to extract, audit, or validate content from. Must be an http or https URI.

Response

Returns a JSON object with body, date, title, author, images, language, confidence, source_url, and word_count fields.

ParameterTypeMandatoryDescription
bodyStringNoExtracted article body text.
dateStringNoArticle date in date format.
titleStringNoExtracted article title.
authorStringNoExtracted article author.
imagesString ArrayNoArray of image URLs (uri format).
languageStringNoDetected language of the article.
confidenceObjectNoConfidence scores for extracted content. Contains body, title, and author numeric fields.
confidence.bodyNumberNoConfidence score for the extracted body.
confidence.titleNumberNoConfidence score for the extracted title.
confidence.authorNumberNoConfidence score for the extracted author.
source_urlStringNoSource URL of the extracted article. uri format.
word_countIntegerNoWord count of the extracted article.

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.