Legibilize Developer API

Welcome to the production automation workspace reference node. The Legibilize API uses a headless distributed web-scraper pipeline backed by algorithmic reading view heuristics to strip trackers, advertisements, banners, script structures, and layouts from remote web coordinates—returning raw semantic sanitized elements instantly.

Authentication

Access keys are generated on execution initialization confirmation patterns. You must pass your cryptographically signed secret bearer string within the standard request network wrapper layer using HTTP Bearer Authentication.

Security Guardrail Note: All API tokens carry unique global permissions prefixes (lg_live_...). Keep these values secure; do not drop your keys within raw client-side Javascript codebases.

Expected Header Schema

Header Authorization: Bearer lg_live_YOUR_ASSIGNED_SECRET_KEY

Volumetric Tiers & Limits

Your resource access quota boundaries update programmatically every billing interval cycle relative to your designated enterprise architecture footprint:

Subscription Plan Tier Monthly Volumetric Cap Rate Strategy Limit
Developer Pro 15,000 requests / month Up to 60 executions / minute
Scale Production 75,000 requests / month Up to 300 executions / minute

Endpoint: Article Content Extraction

Downloads target site documents from active coordinates, strip layout wrappers, and extract cleaned content blocks.

POST https://legibilize.com/api.php?action=clean

POST Payload Parameters

Field Parameter Type Map Presence Constraints Description Context
url string Required Fully qualified target absolute link path context to process (e.g., https://example.com/article).

Sample Response JSON Payload Structure

{
  "status": "success",
  "meta": {
    "url": "https://example.com/target-news",
    "timestamp": 1781820401,
    "account": "developer@example.org",
    "tier": "Developer Pro",
    "usage_this_month": 142,
    "remaining_credits": 14858
  },
  "data": {
    "title": "Revolutionary Web Architecture Shifts",
    "word_count": 1204,
    "clean_html": "<p>This is parsed article content stripped of script markup structures.</p>",
    "plain_text": "This is parsed article content stripped of script markup structures."
  }
}

SDK Implementation Blueprint Samples

cURL Shell CLI Request Sequence

curl -X POST "https://legibilize.com/api.php?action=clean" \
  -H "Authorization: Bearer lg_live_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://news-portal.com/breaking-story"}'

PHP Curl Routine

<?php
$api_key = 'lg_live_YOUR_KEY_HERE';
$target_url = 'https://news-portal.com/breaking-story';

$ch = curl_init('https://legibilize.com/api.php?action=clean');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer ' . $api_key,
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['url' => $target_url]));

$response_json = curl_exec($ch);
curl_close($ch);

$result = json_decode($response_json, true);
print_r($result['data']['plain_text']);
?>

Node.js (Fetch API Interface)

const apiKey = 'lg_live_YOUR_KEY_HERE';

async function extractArticle(targetUrl) {
    const response = await fetch('https://legibilize.com/api.php?action=clean', {
        method: 'POST',
        headers: {
            'Authorization': `Bearer ${apiKey}`,
            'Content-Type': 'application/json'
        },
        body: JSON.stringify({ url: targetUrl })
    });
    
    const json = await response.json();
    console.log(json.data.title);
}