Applying Settings...
API Documentation
Explore endpoints, authentication, and example requests to integrate MultiToolHub's powerful tools into your applications.
Authentication
Secure your API requests with our authentication methods
API Key
Include your API key in the Authorization header for all requests. Keep your key secure and never expose it in client-side code.
Get API KeyOAuth 2.0
Use OAuth 2.0 for secure, token-based authentication. Perfect for applications that require user-specific data access.
OAuth GuideJWT Tokens
JSON Web Tokens provide stateless authentication with built-in expiration and secure token verification.
JWT GuideGet API Key
Generate your unique API key from dashboard
Include in Header
Add Authorization header to requests
Authenticate
API validates your credentials
Access Granted
Receive API response with data
API Endpoints
Explore our comprehensive API endpoints categorized by functionality
Analyze text for sentiment, entities, keywords, and more.
Parameters
{
"text": "This is a sample text to analyze for sentiment.",
"analysis_type": "sentiment",
"language": "en"
}
Convert images between different formats with optional compression.
Parameters
{
"image": "base64_encoded_image_data",
"format": "webp",
"quality": 85
}
Retrieve usage analytics and statistics for your account.
Parameters
{
"start_date": "2023-01-01",
"end_date": "2023-12-31",
"granularity": "monthly"
}
Retrieve current user profile information and account details.
Parameters
{
"include_stats": true
}
Code Examples
Explore code samples in different programming languages to get started quickly
cURL Example - Text Analysis
curl -X POST "https://api.multitoolhub.com/v1/tools/text-analyzer" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"text": "This is a sample text to analyze.",
"analysis_type": "sentiment"
}'
JavaScript Example - Text Analysis
const response = await fetch('https://api.multitoolhub.com/v1/tools/text-analyzer', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
text: 'This is a sample text to analyze.',
analysis_type: 'sentiment'
})
});
const data = await response.json();
console.log(data);
Python Example - Text Analysis
import requests
url = "https://api.multitoolhub.com/v1/tools/text-analyzer"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY"
}
data = {
"text": "This is a sample text to analyze.",
"analysis_type": "sentiment"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
PHP Example - Text Analysis
$url = 'https://api.multitoolhub.com/v1/tools/text-analyzer';
$data = [
'text' => 'This is a sample text to analyze.',
'analysis_type' => 'sentiment'
];
$options = [
'http' => [
'header' =>
"Content-Type: application/json\r\n" .
"Authorization: Bearer YOUR_API_KEY\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);
Rate Limits & Best Practices
Understand usage limits and follow best practices for optimal API performance
Free Tier
Ideal for testing and small projects
Pro Tier
Perfect for growing applications
Enterprise
For high-volume applications
Secure Your API Keys
Never expose your API keys in client-side code. Store them securely on your server and use environment variables.
Implement Rate Limiting
Respect our rate limits and implement exponential backoff in your application to handle rate limit errors gracefully.
Validate Input Data
Always validate and sanitize input data before sending requests to our API to ensure proper functionality.
Handle Errors Gracefully
Implement proper error handling to manage API errors, network issues, and unexpected responses in your application.
Additional Resources
Explore our comprehensive documentation and resources to enhance your API integration
Integration Guides
Step-by-step tutorials for integrating our API with popular platforms and frameworks.
View GuidesFrequently Asked Questions
Find answers to common questions about our API
How do I authenticate API requests?
+All API requests must include an API key in the Authorization header. The key should be prefixed with "Bearer " followed by your API key. For example: Authorization: Bearer YOUR_API_KEY
What are the rate limits for the API?
+Rate limits vary by plan. Free tier allows 1,000 requests per day, Pro tier allows 10,000 requests per day, and Enterprise tier allows 100,000+ requests per day. Rate limit headers are included in all responses.
How do I handle errors and retries?
+Our API returns standard HTTP status codes. For 429 (rate limit) errors, implement exponential backoff. For 5xx errors, retry with increasing delays. Always check the error message in the response body for details.
Can I use the API for commercial applications?
+Yes, our API can be used for commercial applications. Please review our terms of service for specific usage guidelines and ensure you have the appropriate subscription plan for your needs.
How do I upgrade my API plan?
+You can upgrade your plan at any time from your account dashboard. Changes take effect immediately, and you'll be billed pro-rated for the remainder of your billing cycle.
Start Building with MultiToolHub API
Get your API key and access our powerful tools programmatically.
Get API Key