AI Text Toolkit API - Sentiment, Keywords, PII Redaction
Pricing
from $1.00 / 1,000 text processeds
AI Text Toolkit API - Sentiment, Keywords, PII Redaction
Summarize, classify, score sentiment, extract keywords, redact PII, detect language, and translate text.
Pricing
from $1.00 / 1,000 text processeds
Rating
0.0
(0)
Developer
API Suite Labs
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
12 hours ago
Last modified
Categories
Features
Share
AI Text Toolkit API
Summarize, classify, score sentiment, extract keywords, redact PII, detect language, and translate text.
AI Text Toolkit API covers the text jobs product teams usually bolt on one by one. Summarization, classification, sentiment, and keyword extraction run with local algorithms, so the API still answers when no model key is configured. Classification accepts your own labels or falls back to a built-in set (technology, finance, support, legal, marketing, business, news).
PII redaction runs on the server and returns only the masked string. It catches emails, phone numbers, US social security numbers, payment-card numbers that pass the Luhn check, and IPv4 addresses. The raw values are not echoed back in the findings, only the type and the count.
/v1/analyze returns summary, sentiment, keywords, language, and redaction in one call.
How it works
Paste your input, press Start, and read the results from the run's Dataset (JSON, CSV, Excel, or API). Runs are fast and need very little compute. Every item in the dataset has a success flag; failed items include an error message and are never charged.
Input
| Field | Type | Description |
|---|---|---|
operation | string | What to do. Each operation uses the fields noted in the descriptions below. |
text | string | Text to process (up to 50,000 characters). |
sentences | integer | Used by Summarize and Analyze. |
mode | string | Used by Summarize. auto and local use built-in extractive summarization. |
labels | array | Used by Classify. Your own labels (max 12). Leave empty for built-in topics. |
limit | integer | Used by Keywords, 1 to 25. |
types | array | Used by Redact. Leave empty to redact every supported type. |
Operations
- Analyze (all-in-one) (
analyze) - Summarize (
summarize) - Classify (
classify) - Sentiment (
sentiment) - Keywords (
keywords) - Redact PII (
redact) - Detect language (
detect-language)
Example input
{"operation": "analyze","text": "I love this product. Mail me at jane@example.com"}
Output
Each dataset item contains the fields below (shortened example):
{"text": "Mail [REDACTED_EMAIL] or call [REDACTED_PHONE].","findings": [{"type": "email","count": 1},{"type": "phone","count": 1}],"redaction_count": 2,"method": "rules"}
Pricing
This Actor uses pay per event: $1 per 1,000 successful results ($0.001 each). You are not charged for failed items. Apify platform usage is included in the event price.
Use it from code
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('ACTOR_ID').call(INPUT);const { items } = await client.dataset(run.defaultDatasetId).listItems();
Keywords
text analysis API, PII redaction API, sentiment analysis API, keyword extraction API, language detection API, summarization API, text classification API, translate API
Notes
- Data comes from public sources only (public websites, DNS, RDAP, TLS). Respect the terms of the sites you query and applicable privacy law.
- Private and internal network addresses are rejected.
- Results are provided as-is; use the
warningsfield to see when a source timed out.