Extract data
curl --request POST \
--url https://app.lev8.com/v1/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "web2list",
"target": "https://www.forbes.com/30-under-30/2026/ai",
"instruction": "Extract all 30 Under 30 names, companies, and positions from the AI category list",
"limit": 20
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'web2list',
target: 'https://www.forbes.com/30-under-30/2026/ai',
instruction: 'Extract all 30 Under 30 names, companies, and positions from the AI category list',
limit: 20
})
};
fetch('https://app.lev8.com/v1/extract', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.lev8.com/v1/extract"
payload = {
"type": "web2list",
"target": "https://www.forbes.com/30-under-30/2026/ai",
"instruction": "Extract all 30 Under 30 names, companies, and positions from the AI category list",
"limit": 20
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": [
{
"name": "Example Person",
"company": "Example Co"
}
],
"metadata": {
"type": "<unknown>",
"target": "https://www.forbes.com/30-under-30/2026/ai",
"instruction": "Extract name and company",
"limit": 100
}
}Extract
Extract data
Extract social, GitHub, or web page lists synchronously.
POST
/
v1
/
extract
Extract data
curl --request POST \
--url https://app.lev8.com/v1/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "web2list",
"target": "https://www.forbes.com/30-under-30/2026/ai",
"instruction": "Extract all 30 Under 30 names, companies, and positions from the AI category list",
"limit": 20
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'web2list',
target: 'https://www.forbes.com/30-under-30/2026/ai',
instruction: 'Extract all 30 Under 30 names, companies, and positions from the AI category list',
limit: 20
})
};
fetch('https://app.lev8.com/v1/extract', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.lev8.com/v1/extract"
payload = {
"type": "web2list",
"target": "https://www.forbes.com/30-under-30/2026/ai",
"instruction": "Extract all 30 Under 30 names, companies, and positions from the AI category list",
"limit": 20
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": [
{
"name": "Example Person",
"company": "Example Co"
}
],
"metadata": {
"type": "<unknown>",
"target": "https://www.forbes.com/30-under-30/2026/ai",
"instruction": "Extract name and company",
"limit": 100
}
}Submits an extraction request. The
For
type selects the extractor, and target identifies the account, repository, or web page.
Example
curl "https://app.lev8.com/v1/extract" \
--request POST \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $LEV8_API_KEY" \
--data '{
"type": "x_followers",
"target": "sama",
"limit": 50
}'
curl "https://app.lev8.com/v1/extract" \
--request POST \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $LEV8_API_KEY" \
--data '{
"type": "web2list",
"target": "https://example.com/directory",
"instruction": "Extract company name, website, description, pricing tier",
"limit": 20
}'
Response
{
"success": true,
"data": [
{
"username": "example_user"
}
],
"metadata": {
"type": "x_followers",
"target": "sama",
"instruction": null,
"limit": 50
}
}
{
"success": true,
"data": [
{
"name": "Example Person",
"company": "Example Co"
}
],
"metadata": {
"type": "web2list",
"target": "https://example.com/directory",
"instruction": "Extract company name, website, description, pricing tier",
"limit": 100
}
}
web2list, Lev8 requires instruction, accepts only a public HTTP or HTTPS URL in target, and always returns a normalized metadata.limit of 100. Invalid input returns 422 through the standard error envelope before the extraction workflow starts.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Optional stable key for this logical request. When omitted, lev8 generates one and returns it in the response Header.
Maximum string length:
128Body
application/json
Extraction type. web2list extracts a structured list from a web page; the other values return social or GitHub lists.
Available options:
x_followers, x_following, github_user_followers, github_user_following, github_repo_stargazers, github_repo_contributors, ins_followers, ins_following, tiktok_followers, tiktok_following, web2list Example:
"web2list"
Account handle, GitHub repository, repository URL, or web page URL to extract from.
Required string length:
1 - 2048Example:
"https://www.forbes.com/30-under-30/2026/ai"
Required for web2list. Describes the list items and fields to extract.
Maximum string length:
4000Example:
"Extract all 30 Under 30 names, companies, and positions from the AI category list"
Maximum number of social or GitHub list results. web2list ignores this field.
Required range:
1 <= x <= 10000Example:
20