Back to Documentation

Natural Language Processing API

Advanced text analysis, sentiment detection, entity extraction, and language understanding powered by state-of-the-art AI models.

15+ EndpointsIn Development

Overview

Fast Processing

Average response time under 200ms for most operations

100+ Languages

Support for major world languages with high accuracy

Privacy First

Your data is processed securely and never stored

Base URL

https://api.wattky.com/v1/nlp

Endpoints

POST/v1/nlp/analyze

Comprehensive text analysis including sentiment, entities, and key phrases

Parameters:
textlanguage (optional)features (optional)
POST/v1/nlp/sentiment

Analyze sentiment with confidence scores

Parameters:
textlanguage (optional)
POST/v1/nlp/entities

Extract named entities (people, places, organizations)

Parameters:
textlanguage (optional)
POST/v1/nlp/keywords

Extract key phrases and important terms

Parameters:
textmax_keywords (optional)
POST/v1/nlp/summarize

Generate concise summaries of long texts

Parameters:
textmax_length (optional)style (optional)
POST/v1/nlp/translate

Translate text between 100+ languages

Parameters:
textsource_languagetarget_language

Code Examples

cURL

curl -X POST https://api.wattky.com/v1/nlp/analyze \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Wattky is revolutionizing AI technology!",
    "language": "en",
    "features": ["sentiment", "entities", "keywords"]
  }'

Python

import requests

url = "https://api.wattky.com/v1/nlp/analyze"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
data = {
    "text": "Wattky is revolutionizing AI technology!",
    "language": "en",
    "features": ["sentiment", "entities", "keywords"]
}

response = requests.post(url, headers=headers, json=data)
result = response.json()
print(result)

JavaScript

const response = await fetch('https://api.wattky.com/v1/nlp/analyze', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    text: 'Wattky is revolutionizing AI technology!',
    language: 'en',
    features: ['sentiment', 'entities', 'keywords']
  })
});

const result = await response.json();
console.log(result);

Response Format

{
  "status": "success",
  "data": {
    "sentiment": {
      "label": "positive",
      "score": 0.94,
      "confidence": "high"
    },
    "entities": [
      {
        "text": "Wattky",
        "type": "ORGANIZATION",
        "confidence": 0.98
      },
      {
        "text": "AI technology",
        "type": "TECHNOLOGY",
        "confidence": 0.92
      }
    ],
    "keywords": [
      {
        "text": "revolutionizing",
        "relevance": 0.95
      },
      {
        "text": "AI technology",
        "relevance": 0.89
      }
    ],
    "language": "en",
    "word_count": 6,
    "processing_time_ms": 142
  }
}

Supported Languages

English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Czech

...and 84 more languages. Contact us for the complete list or custom language support.

Pricing

$0.002
per 1,000 characters
200ms
average response time
99.9%
uptime guarantee

Ready to Get Started?

Contact us to get early access to the NLP API and start building powerful text analysis features into your applications.

Cookie Preferences

We value your privacy

We use cookies and similar technologies to enhance your browsing experience, analyze site traffic, and provide personalized content. By clicking "Accept All", you consent to our use of cookies.

You can customize your preferences or learn more in our Privacy Policy.

GDPR & CCPA Compliant