← Back to Help Center

API Access

Integrate transforms into your applications with our RESTful API

Quick Start

JavaScript/Node.js

// Install request library
npm install axios

// Make API call
const response = await axios.post(
'https://api.laplace-calc.com/v1/transform',
{ expression: 'sin(3*t)' },
{ headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
);

console.log(response.data.result);

Python

# Install requests library
pip install requests

# Make API call
import requests

response = requests.post(
'https://api.laplace-calc.com/v1/transform',
json={'expression': 'sin(3*t)'},
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)

print(response.json()['result'])

API Endpoints

POST/v1/transform

Compute Laplace transform of a function

Request Body:

{
  "expression": "sin(3*t)",
  "transform_type": "laplace"
}
POST/v1/inverse

Compute inverse Laplace transform

Request Body:

{
  "expression": "3/(s^2 + 9)",
  "transform_type": "inverse_laplace"
}
POST/v1/explain

Get step-by-step explanation (Premium)

Request Body:

{
  "expression": "sin(3*t)",
  "include_steps": true
}

Response Format

{
  "success": true,
  "result": {
    "input": "sin(3*t)",
    "output": "3/(s^2 + 9)",
    "convergence_region": "Re(s) > 0",
    "properties_used": ["trigonometric_transform"],
    "computation_time": "0.002s"
  },
  "steps": [
    {
      "step": 1,
      "description": "Apply sine transform formula",
      "formula": "L{sin(at)} = a/(s² + a²)"
    }
  ],
  "metadata": {
    "api_version": "1.0",
    "timestamp": "2025-07-21T08:45:23Z"
  }
}

Authentication

API Key Authentication

Include your API key in the Authorization header of every request.

Authorization: Bearer YOUR_API_KEY_HERE

Security Best Practices

  • • Never expose API keys in client-side code
  • • Use environment variables to store keys
  • • Rotate keys regularly for security
  • • Monitor usage for unusual activity

API Pricing Tiers

Developer

$49/month
10,000 calls/month
  • RESTful API access
  • JSON response format
  • Basic documentation
  • Email support

Professional

$199/month
100,000 calls/month
  • Advanced endpoints
  • Batch processing
  • WebHook support
  • Priority support

Enterprise

Custom pricing
Unlimited calls
  • On-premise deployment
  • Custom integration
  • SLA guarantees
  • Dedicated support

Rate Limits & Usage

Rate Limiting

  • • Developer: 100 requests/minute
  • • Professional: 500 requests/minute
  • • Enterprise: Custom limits
  • • Burst allowance: 2x normal rate for 1 minute

Usage Monitoring

  • • Real-time usage dashboard
  • • Monthly usage reports
  • • Alerts at 80% and 100% quota
  • • Historical usage analytics

Error Handling

400 - Bad Request

Invalid expression or malformed request

401 - Unauthorized

Missing or invalid API key

429 - Rate Limited

Too many requests, retry after specified time

500 - Server Error

Temporary server issue, retry with backoff

Ready to Integrate?

Get your API key and start transforming functions programmatically