# Utilities

Text helpers that take a block of text and return the indicators found in it.

Source: https://docs.deepinfo.com/reference/utilities/

Last updated: 2026-12-05

---
Text helpers that take a block of text and return the indicators found in it. They read **no** Deepinfo data, so nothing here depends on your plan's data quota.

| Request | Returns |
|---|---|
| **IP Extractor** | Every unique IPv4 and IPv6 address in the text |
| **Domain Extractor** | Every unique domain name in the text |
| **Domain and IP Extractor** | Both lists in one call |
| **Punycode Converter** | Each line converted between unicode and punycode |

Each one takes the text in one of two ways:

- **`application/json`** with `text` as a string, which is what the saved requests send, or
- **`multipart/form-data`** with `text` as a file: `.txt`, `.csv`, `.json`, `.docx` or `.xlsx`, up to **1 MB**. In Postman, switch the request body to **form-data**, set the key `text` to type **File** and pick the file. The saved example *200 · File upload* on **IP Extractor** shows it.

Either way the text is limited to **1,000,000 characters** and **10,000 lines**. Results are deduplicated and come back in the order they first appear in the text.

### Errors

All of these were measured on DEMO. The limits answer with a normal validation error, except the file size, which has a shape of its own:

| Status | Body | When |
|---|---|---|
| 400 | `10400`, subcode `19002`: *"Empty text is provided as input."* | `text` is empty or missing |
| 400 | `10400`, subcode `19004`: *"Maximum text length is 1.000.000."* | the text is longer than 1,000,000 characters |
| 400 | `10400`, subcode `19005`: *"Maximum text lines is 10.000."* | the text has more than 10,000 lines |
| 400 | `10400`, subcode `19006`: *"No target is provided as input."* | Punycode Converter without `target` |
| 400 | `10400`, subcode `19007`: *"Target only accept punycode or unicode."* | `target` is anything else |
| 422 | `{ "reason": "Maximum text size is 1mb.", "code": 19001 }` | an **uploaded file** is larger than 1 MB. Note the shape: `reason` and `code`, not `details` and `solution`; no other Deepinfo endpoint answers like this |
| 400 | `code` `-1`, *"[OfficeParser]: Error occured while reading the file buffers"* | an uploaded file's content does not match its extension (for example plain text named `.xlsx`). `-1` is the unexpected-error code, so treat it as "this file could not be read" |

A saved example for each of these is on one of the four requests.

| Method | Endpoint | Path |
|---|---|---|
| POST | [Domain Extractor](/reference/utilities/domain-extractor/) | `/tools/domain-extractor` |
| POST | [Domain and IP Extractor](/reference/utilities/domain-and-ip-extractor/) | `/tools/domain-ip-extractor` |
| POST | [IP Extractor](/reference/utilities/ip-extractor/) | `/tools/ip-extractor` |
| POST | [Punycode Converter](/reference/utilities/punycode-converter/) | `/tools/punycode-converter` |
