Clean Article Extractor for GPT
Focus automatically on <main> and <article> content while discarding sidebars, cookie banners, ads, and scripts before sending context to OpenAI models.
Why engineering teams use EdgeDocAPI
- Smart <main>/<article> prioritization keeps only high-signal body text
- Clean OpenAPI 3.1 schema (/openapi.json) ready for GPT Actions
- Deterministic JSON responses with X-Request-Id tracing headers
Copy-Paste Integration (/v1/url-to-markdown)
curl -X POST https://api.docopsapi.com/v1/url-to-markdown \
-H "Authorization: Bearer edk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/articles/edge-ai","include_links":false}'import requests
resp = requests.post(
"https://api.docopsapi.com/v1/url-to-markdown",
headers={"Authorization": "Bearer edk_live_YOUR_API_KEY"},
json={
"url": "https://example.com/articles/edge-ai",
"include_links": false
},
timeout=15,
)
resp.raise_for_status()
print(resp.json())const res = await fetch("https://api.docopsapi.com/v1/url-to-markdown", {
method: "POST",
headers: {
"Authorization": "Bearer edk_live_YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://example.com/articles/edge-ai",
"include_links": false
}),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);