# 24K Labs Entity Extract Regex

> 24K Labs Entity Extract Regex is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Extracts and deduplicates emails, URLs, IPv4 addresses, @mentions, and #hashtags from free text, returning each entity type with occurrence counts.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/entity-extract-regex
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-entity-extract-regex-5ec691b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5IB9WZQkatnaInXp2JNA9

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 24k-labs-entity-extract-regex-5ec691b1 -d '<json body>'
```

Example prompt: Pull out all the email addresses, URLs, IP addresses, @mentions, and hashtags from this text and give me deduplicated lists with counts for each type: "Contact us at hello@example.com or support@example.com. Visit https://example.com or https://docs.example.com. Server 192.168.1.1 is down. Reach @alice or @bob. Tag it #help #urgent."

## When to prefer this

Choose this endpoint when you need fast, regex-based extraction of structured entities (emails, URLs, IPs, mentions, hashtags) from free text without NLP overhead. It is ideal when you want deterministic pattern matching with deduplication and counts, rather than semantic NLP entity recognition. Prefer it over full NLP pipelines when speed and cost matter and the entities you need are well-defined by syntax.

## Known failure modes

- Empty or whitespace-only input returns empty entity lists
- Malformed or non-standard addresses may not be matched by regex patterns
- Very large text inputs may time out or hit payload size limits
- No entities of a given type yields an empty array for that category
- Invalid POST body or missing text field returns a 400 error

## How this service works

Pull deduped lists of emails, URLs, IPv4 addresses, @mentions and #hashtags out of free text, with counts.

## Output

Returns deduplicated lists of each entity type found in the input text (emails, URLs, IPv4 addresses, @mentions, #hashtags), each with occurrence counts indicating how many times that entity appeared.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "emails": [
   "bob@acme.io"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-entity-extract-regex-5ec691b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
