EmotionsMedia Logo

EmotionsMedia

Trusted by companies worldwide

Microsoft
Google
Amazon
IBM
Oracle
Salesforce
Adobe
Meta
v2.1 API

API Documentation

Explore Our Powerful Twitter API

Quick integration with comprehensive documentation

Quick Start

Essential steps to start using our API

1

Create Account

Create a free account and get your API key

2

API Key

Copy your API key from the dashboard

3

First Request

Send your first request to the API

4

Integration

Integrate into your application

Example

curl -X GET "https://api.emotionsmedia.com/v2/user/analyze" \
  -H "X-API-Key: your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{"username": "elonmusk"}'

Authentication

Authentication is required to access the API

API Key

Send your API key with X-API-Key header in every request

X-API-Key: vmp_1a2b3c4d5e6f7g8h9i0j

Bearer Token

Alternatively, use Bearer token with Authorization header

Authorization: Bearer vmp_1a2b3c4d5e6f7g8h9i0j

API Endpoints

All available API endpoints and their usage

Base URL

https://api.emotionsmedia.com/v2
Method Endpoint Description
GET /user/analyze User Analysis
GET /tweets/analyze Tweet Analysis
POST /sentiment/analyze Sentiment Analysis
GET /trends/analyze Trend Analysis

Rate Limiting

API usage limits and quota information

Free Plan

  • 100 requests/hour
  • 1,000 requests/day
  • 10,000 requests/month

Basic Plan

  • 1,000 requests/hour
  • 10,000 requests/day
  • 100,000 requests/month

Professional Plan

  • 5,000 requests/hour
  • 50,000 requests/day
  • 500,000 requests/month

Enterprise Plan

  • ∞ requests/hour
  • ∞ requests/day
  • ∞ requests/month

Error Handling

API error codes and solutions

Status Code Error Message Solution
401 Unauthorized API anahtarınızı kontrol edin / Check your API key
429 Rate Limit Exceeded İstek hızınızı azaltın / Reduce request rate
500 Internal Server Error Tekrar deneyin veya desteğe başvurun / Retry or contact support

Code Examples

Usage examples in different programming languages

JavaScript

const response = await fetch('https://api.emotionsmedia.com/v2/user/analyze', {
  method: 'POST',
  headers: {
    'X-API-Key': 'your_api_key_here',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    username: 'elonmusk',
    days: 30
  })
});

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

Python

import requests

headers = {
    'X-API-Key': 'your_api_key_here',
    'Content-Type': 'application/json'
}

data = {
    'username': 'elonmusk',
    'days': 30
}

response = requests.post(
    'https://api.emotionsmedia.com/v2/user/analyze',
    headers=headers,
    json=data
)

result = response.json()
print(result)

PHP

<?php
$url = 'https://api.emotionsmedia.com/v2/user/analyze';
$data = array(
    'username' => 'elonmusk',
    'days' => 30
);

$options = array(
    'http' => array(
        'header' => "X-API-Key: your_api_key_here\r\n" .
                   "Content-Type: application/json\r\n",
        'method' => 'POST',
        'content' => json_encode($data)
    )
);

$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
$response = json_decode($result, true);
?>

Node.js

const axios = require('axios');

const config = {
  method: 'post',
  url: 'https://api.emotionsmedia.com/v2/user/analyze',
  headers: {
    'X-API-Key': 'your_api_key_here',
    'Content-Type': 'application/json'
  },
  data: {
    username: 'elonmusk',
    days: 30
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

SDKs

Ready-to-use SDKs for popular programming languages

JavaScript SDK

Modern tarayıcılar ve Node.js için

Installation
npm install @emotionsmedia/api-client
Usage
import { EmotionsMediaAPI } from 
  '@emotionsmedia/api-client';

const api = new EmotionsMediaAPI(
  'your_api_key'
);
const result = await api.analyzeUser(
  'elonmusk'
);

Python SDK

Python 3.6+ için resmi SDK

Installation
pip install emotionsmedia-api
Usage
from emotionsmedia import 
  EmotionsMediaAPI

api = EmotionsMediaAPI(
  'your_api_key'
)
result = api.analyze_user(
  'elonmusk'
)

PHP SDK

PHP 7.4+ için Composer paketi

Installation
composer require emotionsmedia/api-client
Usage
use EmotionsMediaAPI\Client;

$api = new Client(
  'your_api_key'
);
$result = $api->analyzeUser(
  'elonmusk'
);

Support

Technical support and help resources

Documentation

Kapsamlı dokümantasyon ve kılavuzlar

Dokümantasyonu Görüntüle →

Community

Geliştirici topluluğumuzla bağlantı kurun

Topluluğa Katıl →

Support Team

7/24 teknik destek ekibimize ulaşın

Destek Ekibiyle İletişim →

Frequently Asked Questions

Sık sorulan soruları inceleyin

SSS'ye Git →

Start Your Twitter Analysis Today

Accelerate your project with our powerful API designed for developers