Integration Guide
Direct HTTP / cURL
No SDK needed. Call ToolCenter's APIs from any language, any platform, any tool that speaks HTTP. It's just a POST request.
How It Works
Every ToolCenter API is a simple REST endpoint. You send a POST (or GET) request with your API key in the Authorization header, and get the result back as JSON or binary data.
- Base URL:
https://api.toolcenter.dev/v1 - Auth:
Authorization: Bearer YOUR_API_KEY - Content-Type:
application/json - Response: JSON (most APIs) or binary (screenshots, PDFs)
Examples in Every Language
cURL
curl -X POST "https://api.toolcenter.dev/v1/screenshot" \
-H "Authorization: Bearer tc_live_xxx" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","fullPage":true}' \
--output screenshot.png
JavaScript (fetch)
const response = await fetch('https://api.toolcenter.dev/v1/screenshot', {
method: 'POST',
headers: {
'Authorization': 'Bearer tc_live_xxx',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://example.com',
fullPage: true
})
});
const blob = await response.blob();
Python (requests)
import requests
response = requests.post(
'https://api.toolcenter.dev/v1/screenshot',
headers={'Authorization': 'Bearer tc_live_xxx'},
json={'url': 'https://example.com', 'fullPage': True}
)
with open('screenshot.png', 'wb') as f:
f.write(response.content)
PHP
$response = Http::withToken('tc_live_xxx')
->post('https://api.toolcenter.dev/v1/screenshot', [
'url' => 'https://example.com',
'fullPage' => true,
]);
file_put_contents('screenshot.png', $response->body());
Want an even easier integration?
Use our official SDKs for Node.js, Python, and PHP. Type-safe, with built-in error handling and retries.
View Official SDKs