Text
Extract entities from text API
Extract emails, URLs, IP addresses, phone numbers, hashtags, or mentions from a block of text. Answers 'extract all emails from this', 'find every URL in this text', 'pull out the phone numbers'.
Price$0.01per request
MethodPOST
Route/v1/text/extract
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
textextractemailurlentitiesscrapeparse
API URL
Integration docshttps://x402.hexl.dev/v1/text/extractExample request
{
"text": "Reach me at a@b.com or see https://x.com",
"types": [
"email",
"url"
]
}Example response
{
"extracted": {
"email": [
"a@b.com"
],
"url": [
"https://x.com"
]
},
"counts": {
"email": 1,
"url": 1
}
}Input schema
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string"
},
"types": {
"type": "array",
"items": {
"type": "string",
"enum": [
"email",
"url",
"ipv4",
"phone",
"hashtag",
"mention"
]
}
}
}
}Output schema
{
"type": "object",
"required": [
"extracted",
"counts"
],
"properties": {
"extracted": {
"type": "object",
"additionalProperties": true
},
"counts": {
"type": "object",
"additionalProperties": true
}
}
}