Extract emails, URLs and phone numbers from text API
Find all email addresses, URLs, phone-number-like strings, hashtags, @mentions and numbers in a text, each list de-duplicated. Use to pull contacts and links out of scraped pages or messages.
When to use it
- Pull contacts and links out of scraped pages or messages
- Get de-duplicated lists of emails, URLs, phone-number-like strings, hashtags, @mentions and numbers
Inputs
| Name | Type | Description |
|---|---|---|
text (required) | string | The text |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://tools.funwords.eu/text/extract?text=Mail%20ada%40example.com%20or%20see%20https%3A%2F%2Fexample.com%20%23news%20%40ada%20%2B46%2070%20123%2045%2067"
Or one of your 25 free calls, no key:
curl "https://tools.funwords.eu/text/extract?text=Mail%20ada%40example.com%20or%20see%20https%3A%2F%2Fexample.com%20%23news%20%40ada%20%2B46%2070%20123%2045%2067&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"emails": [
"ada@example.com"
],
"urls": [
"https://example.com"
],
"phones": [
"+46 70 123 45 67"
],
"hashtags": [
"#news"
],
"mentions": [
"@ada"
]
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is text_extract, and the first 25 successful calls are free:
https://tools.funwords.eu/mcp
Questions
Does it fetch a URL?
No, you send the text (up to 50,000 characters); /extract reads a page by URL.
How do I pay?
Each successful call costs $0.01; failed calls are not charged. The first 25 calls are free. Then pay with card credits (from $1; the key goes in an Authorization header or, for clients that can only fetch a URL, as api_key= in the URL) or per call in USDC over x402 or MPP. No account is needed.