🔑 Your API Key
Use this key to authenticate your API requests.
ts_xxxxxxxxxxxxxxxxxxxx
⚠️ Keep this key secret! Don't share it or commit it to version control.
📚 Integration Examples
curl -X POST https://api.textsummarize.io/api/summarize \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"text": "Your text here...", "maxLength": 3}'
const response = await fetch('https://api.textsummarize.io/api/summarize', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_API_KEY',
},
body: JSON.stringify({ text: 'Your text here...', maxLength: 3 }),
});
const data = await response.json();
console.log(data.data.summary);
import requests
response = requests.post(
'https://api.textsummarize.io/api/summarize',
headers={
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_API_KEY',
},
json={'text': 'Your text here...', 'maxLength': 3}
)
print(response.json()['data']['summary'])