Example
curl -sS https://api.crawlapi.dev/v1/scrape \
-H "Authorization: Bearer $CRAWLAPI_API_KEY" \
-H 'content-type: application/json' \
--data '{"url": "https://en.wikipedia.org/wiki/Web_scraping"}'import os, httpx
body = httpx.post(
"https://api.crawlapi.dev/v1/scrape",
headers={"Authorization": f"Bearer {os.environ['CRAWLAPI_API_KEY']}"},
json={"url": "https://en.wikipedia.org/wiki/Web_scraping", "format": "markdown"},
timeout=60.0,
).json()
print(body["data"]["markdown"], body["data"]["links"][:3])const response = await fetch('https://api.crawlapi.dev/v1/scrape', {
method: 'POST',
headers: {
Authorization: 'Bearer ' + process.env.CRAWLAPI_API_KEY,
'content-type': 'application/json',
},
body: JSON.stringify({ url: 'https://en.wikipedia.org/wiki/Web_scraping' }),
});
const body = await response.json();
console.log(body.data.markdown, body.data.links.slice(0, 3));{
"success": true,
"request_id": "req_d8da92dedad5cea2475b",
"data": {
"metadata": {
"title": "Web scraping - Wikipedia",
"description": "",
"language": "en",
"status": 200,
"final_url": "https://en.wikipedia.org/wiki/Web_scraping"
},
"links": [
"https://en.wikipedia.org/wiki/Main_Page",
"https://en.wikipedia.org/wiki/Wikipedia:Contents",
"https://en.wikipedia.org/wiki/Portal:Current_events"
],
"markdown": "Method of extracting data from websites\n\nThis article **needs [more citations](https://en.wikipedia.org/wiki/Wikipedia:Verifiability)**. Please help [improve this article](https://en.wikipedia.org/wiki/Special:EditPage/Web_scraping) by [adding citations to reliable sources](https://en.wikipedia.org/wiki/Help:Referencing_for_beginners). Unsourced material may be challenged and [removed](https://en.wikipedia.org/wiki/Wikipedia:Verifiability).\n*Find sources:* [\"Web scraping\"](https://www.google.com/search?as_eq=wikipedia&q=%22Web+scraping%22) – [news](https://www.google.com/search?tbm=nws&q=%22Web+scraping%22+-wikipedia&tbs=ar:1) **·** [newspapers](https://www.google.com/search?&q=%22Web+scraping%22&tbs=bkt:s&tbm=bks) **·** [books](https://www.google.com/search?tbs=bks:1&q=%22Web+scraping%22+-wikipedia) **·** [scholar](https://scholar.google.com/scholar?q=%22Web+scraping%22) **·** [JSTOR](https://www.jstor.org/action/doBasicSearch?Query=%22Web+scraping%22&acc=on&wc=on) *(April 2023)* *([Learn how and when to remove this message](https://en.wikipedia.org/wiki/Help:Maintenance_template_removal))*\n\n**Web scraping**, **web harvesting**, or **web data extraction** is [data scraping](https://en.wikipedia.org/wiki/Data_scraping) used for [extracting data](https://en.wikipedia.org/wiki/Data_extraction) from [websites](https://en.wikipedia.org/wiki/Website).[1] Web scraping software may directly access the [World Wide Web](https://en.wikipedia.org/wiki/World_Wide_Web) using the [Hypertext Transfer Protocol](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) (HTTP) or a [web browser](https://en.wikipedia.org/wiki/Web_browser). While web scraping can be done manually by a software user, the term typically refers to automated processes implemented using a [bot](https://en.wikipedia.org/wiki/Internet_bot) or [web crawler](https://en.wikipedia.org/wiki/Web_crawler). It is a form of copying in which specific data is gathered and copied from the web, typically into a central local [database](https://en.wikipedia.org/wiki/Database) or [spreadsheet](https://en.wikipedia.org/wiki/Spreadsheet), for later [retrieval](https://en.wikipedia.org/wiki/Data_retrieval) or [analysis](https://en.wikipedia.org/wiki/Data_analysis)."
},
"usage": {
"credits": 1,
"remaining": 9998
}
}An answer trimmed for this page, recorded live on 2026-11-13: markdown keeps the first 3 of its 61 blocks and links the first 3 of 335.
What the markdown holds
| Kept | Written as |
|---|---|
| Headings | # to ###### |
| Paragraphs, quotes, lists | plain markdown, ordered and unordered lists as they appear |
| Tables | GFM pipe tables, one line per row |
| Code | fenced blocks, with the language when the page declares one |
| Links in the content | [text](https://…), absolute, without the query parameters that only track visitors (utm_*, fbclid, gclid and the like); each address is a link once, at its first appearance, and later ones to it are their text; a link to a place on the same page, one that adds filters or a sort to the page’s own address, one that is not http or https, or one whose address is over 200 characters is its text (the next page of a listing keeps its address). Every absolute URL of the page is also in links[], in document order, with the same tracking parameters removed, and so are those a bot check leaves behind; metadata.final_url loses them too |
Navigation, cookie banners, share rows, menus, form controls and repeated lines are removed. Images are dropped: no image URL is returned.
X posts
A post on x.com is read from X’s own page. metadata.title is the post’s article title, or its author and first line (Ana Ruiz on X: "Shipping today…"), and metadata.final_url is the post’s own address, without share parameters such as ?s=20.
# Ana Ruiz (@ana)
2026-11-12 09:49:16 UTC · 77 likes · 2 reposts · 34 replies · 1 quote · 44 bookmarks · 5,335 views
The post's text, its line breaks kept and each link its real address: https://example.com/launch
> Bo Lee (@bo): https://x.com/bo/status/2119867114450268322
>
> The text of the post it quotes.
Reply · 2026-11-12 09:51:20 UTC · https://x.com/ana/status/2120816188058112207
The author's next post in the thread.
## The article's title
The article's body, with its headings, lists, quotes, code and links.
The author line, then the time and the counts, then the text. A quoted post follows as a quote. Each of the author’s own replies that continue the thread opens with its Reply line, its time and address; replies by others are not read. When the post carries an X article, its title and body come last. An age-restricted post is X’s own sign-in notice with metadata.login_required: true, free. An x.com/i/article/<id> address is X’s sign-in screen and answers LOGIN_REQUIRED.
YouTube videos
A YouTube watch page, a Short, a youtu.be link or a channel’s live page is read from YouTube’s own page. metadata.title is the video’s title and metadata.final_url its own address.
# Learn Python - Full Course for Beginners [Tutorial]
[freeCodeCamp.org](http://www.youtube.com/@freecodecamp)
2018-07-11 · 4:26:52 · 49,585,831 views
The whole description, its line breaks kept.
## Chapters
- 0:00 Introduction
- 1:45 Installing Python & PyCharm
The title, the channel and its address, then the date, the length and the views; a live stream says Live now and since when. The description follows as YouTube shows it, then the chapters when the video has them. A video YouTube says does not exist, or has removed, answers NOT_FOUND, and one it says is private answers LOGIN_REQUIRED. A video YouTube plays only after its age check is its title, details and description with YouTube’s notice, metadata.login_required: true, free.
Options
| Field | Default | Effect |
|---|---|---|
format |
markdown | markdown returns data.markdown; json returns data.json instead |
timeout |
30000 ms | one deadline for the whole request |
A request cannot ask for HTML. The HTML is read by the service and never returned.
Bounds
| What | Limit |
|---|---|
markdown |
2 MiB; a cut response has metadata.truncated: true |
links |
5,000 URLs and 512 KiB; hrefs over 8,192 characters are skipped |
title, description |
1,000 characters each |
Sign-in walls
The wall’s own text, free A page that needs an account returns its own text in
data.markdown, withmetadata.login_required: trueandusage.credits: 0. A wall with nothing readable isLOGIN_REQUIRED. No login is bypassed.
When it fails
A page with no readable content is NO_CONTENT; a block page is BLOCKED with the vendor named. Neither is a success and neither costs credits. See Errors and retries.