Search…
Extract
Extract common entities from your text data.

Extract entities

Forefront Extract is an entity extraction API that extracts useful information from text. See pricing
post
https://solutions.forefront.ai
/v1/organization/{TEAM_ID}/extract
Extract entities

Example request

Python
Javascript
cURL
import requests
import json
headers = {
"Authorization": "Bearer {API_KEY}",
"Content-Type": "application/json"
}
body = {
"text": "<TEXT TO EXTRACT ENTITIES FROM>",
"entities": ["locations", "people", "events", "organizations", "dates", "geopolitics"]
}
res = requests.post(
"https://solutions.forefront.ai/v1/organization/{TEAM_ID}/extract",
json=body,
headers=headers
)
data = res.json()
entities = data['entities']
const fetch = require('node-fetch');
const url = 'https://solutions.forefront.ai/v1/organization/{TEAM_ID}/extract';
const headers = {
"Authorization": "Bearer {API_KEY}",
"Content-Type": "application/json"
};
const body = {
"text": "<TEXT TO EXTRACT ENTITIES FROM>",
"entities": ["locations", "people", "events", "organizations", "dates", "geopolitics"]
}
fetch(url, {
method: 'POST',
headers,
body: JSON.stringify(body)
}).then(async (res) => {
const data = await res.json()
console.log(data)
})
curl https://solutions.forefront.ai/v1/organization/{TEAM_ID}/extract \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {API_KEY}' \
-d '{
"text": "<TEXT TO EXTRACT CONTENT FROM>",
"entities": ["locations", "people", "events", "organizations", "dates", "geopolitics"]
}'
Last modified 1mo ago
Copy link
On this page
Extract entities
post
Extract entities
Example request