TextAPI
API REFERENCE · v0.1.0 · 10 OPERATIONS

Text API

Text extraction, entity recognition, sentiment, and question answering in one API.

Get an API key with metered billing at the
TextAPI storefront, or browse the
listing on APIDirectory.

GETTING STARTED
Every request goes to https://api.textapi.com/ with your key in the X-API-Key header. What's left of your allowance rides back on every response in X-Gw-Remaining.
Get a key → · Sign in →
curl "https://api.textapi.com/ner/display" \
  -H "X-API-Key: YOUR_KEY"
FROM AN AI AGENT
This API is also an MCP server. Add https://developers.textapi.com/mcp to Claude Code, Cursor or any MCP client with your key as a bearer token and every operation below becomes a tool — same key, same metering, same allowance. In a connector that only takes a URL, use the connector URL instead. Prompting a model by hand? Every operation has a Markdown version. An agent setting itself up can start from agents.md, and npx skills add https://developers.textapi.com/ installs this API as a skill.
claude mcp add --transport http textapi https://developers.textapi.com/mcp \
  --header "Authorization: Bearer YOUR_KEY"
ERRORS
Every operation can also answer with this, so it is listed once here rather than on each card.
422Validation Error
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Text

GET/text

Get Text

PARAMETERS
urlquery · stringREQUIRED
e.g. string
Open on its own page
REQUEST
curl "https://api.textapi.com/text?url=string" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200Successful Response
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/text

Get Text Post

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "url": "string"
}
Open on its own page
REQUEST
curl -X POST "https://api.textapi.com/text" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "string"
}'
RESPONSE
200Successful Response
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Ner

GET/ner

Analyze Ner

PARAMETERS
textquery · stringREQUIRED
e.g. string
modelquery · string
e.g. string
Open on its own page
REQUEST
curl "https://api.textapi.com/ner?text=string" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200Successful Response
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/ner

Analyze Ner Post

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "text": "string",
  "model": "string"
}
Open on its own page
REQUEST
curl -X POST "https://api.textapi.com/ner" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "string",
  "model": "string"
}'
RESPONSE
200Successful Response
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Ner

GET/ner/display

Display Ner

PARAMETERS
textquery · string
e.g. string
spansquery · string
e.g. string
modelquery · string
e.g. string
formatquery · string
e.g. string
Open on its own page
REQUEST
curl "https://api.textapi.com/ner/display" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200Successful Response
string
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/ner/display

Display Ner Post

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "text": "string",
  "spans": "string",
  "model": "string",
  "format": "string"
}
Open on its own page
REQUEST
curl -X POST "https://api.textapi.com/ner/display" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "string",
  "spans": "string",
  "model": "string",
  "format": "string"
}'
RESPONSE
200Successful Response
string
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Sentiment

GET/sentiment

Analyze Sentiment

PARAMETERS
textquery · stringREQUIRED
e.g. string
Open on its own page
REQUEST
curl "https://api.textapi.com/sentiment?text=string" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200Successful Response
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/sentiment

Analyze Sentiment Post

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "text": "string"
}
Open on its own page
REQUEST
curl -X POST "https://api.textapi.com/sentiment" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "string"
}'
RESPONSE
200Successful Response
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Qa

GET/qa

Qa

PARAMETERS
questionquery · stringREQUIRED
e.g. string
contextquery · stringREQUIRED
e.g. string
Open on its own page
REQUEST
curl "https://api.textapi.com/qa?question=string&context=string" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200Successful Response
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/qa

Qa Post

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "question": "string",
  "url": "string",
  "context": "string"
}
Open on its own page
REQUEST
curl -X POST "https://api.textapi.com/qa" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "question": "string",
  "url": "string",
  "context": "string"
}'
RESPONSE
200Successful Response
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.