
Wage Estimator API
Finance
Convert hourly wages to annual salary and vice versa instantly. Calculate daily, weekly, biweekly, and monthly estimates for payroll planning.
Authentication
All API requests require a valid API key passed in the Authorization header as a Bearer token.
Rate Limit
120 requests per minute
Endpoints
1 endpoint available
Overview
Turn a pay rate into the same pay over other periods. The endpoint works in one of two modes, and both return
their result inside data:
- Estimates: send
hourlyWageorannualSalaryand get hourly, daily, weekly, biweekly, monthly and annual figures, plus the schedule they assume. - Convert: send a
convertobject to turn one amount from one period into another. Whenconvertis present, the top-level fields are ignored.
Schedule
- Defaults: 8 hours a day, 5 days a week, 52 weeks a year (2,080 hours).
hoursPerDay(up to 24),daysPerWeek(up to 7) andweeksPerYear(up to 53) must be greater than 0. In convert mode, put them insideconvert.- Monthly is annual divided by 12. Biweekly is two weeks.
Notes
- If both
hourlyWageandannualSalaryare sent,hourlyWageis used. - Amounts must be between 0 and 1,000,000,000. Results are rounded to 2 decimal places. No currency is assumed.
- Figures are before tax and deductions.
Endpoints
POST
https://opentools.ca/api/v1/tools/wage-estimatorEstimate pay across periods, or convert an amount between periods
Request Body
Content-Type: application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
| hourlyWage | number | Optional | Hourly pay. Estimates mode needs this or annualSalary. |
| annualSalary | number | Optional | Yearly pay. Used when hourlyWage is not sent. |
| hoursPerDay | number | Optional | Working hours per day (estimates mode).Default: 8 |
| daysPerWeek | number | Optional | Working days per week (estimates mode).Default: 5 |
| weeksPerYear | number | Optional | Working weeks per year (estimates mode).Default: 52 |
| convert | object | Optional | Switches to convert mode. Fields: amount, from, to, and optional hoursPerDay, daysPerWeek, weeksPerYear. |
| convert.amount | number | Optional | The amount to convert. Required in convert mode. |
| convert.from | string Enum: hourly, daily, weekly, biweekly, monthly, annual | Optional | Period the amount is for. Required in convert mode. |
| convert.to | string Enum: hourly, daily, weekly, biweekly, monthly, annual | Optional | Period to convert to. Required in convert mode. |
Response Example
// Estimates mode: {"hourlyWage": 25}
{
"success": true,
"data": {
"estimates": {
"hourly": 25,
"daily": 200,
"weekly": 1000,
"biweekly": 2000,
"monthly": 4333.33,
"annual": 52000
},
"assumptions": {
"hoursPerDay": 8,
"daysPerWeek": 5,
"weeksPerYear": 52,
"daysPerYear": 260,
"hoursPerYear": 2080
}
}
}
// Convert mode: {"convert": {"amount": 75000, "from": "annual", "to": "monthly"}}
{
"success": true,
"data": {
"amount": 75000,
"from": "annual",
"to": "monthly",
"result": 6250
}
}Error Codes
400
Invalid request. Validation problems are listed in details.401
Missing or invalid API key403
API key is deactivated or expired, or this IP address is not allowed for the key429
Rate limit exceeded (120 requests per minute per key)500
Internal server errorCode Examples
# Estimates from an hourly wage
curl -X POST https://opentools.ca/api/v1/tools/wage-estimator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"hourlyWage": 25}'
# Convert an annual salary to monthly
curl -X POST https://opentools.ca/api/v1/tools/wage-estimator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"convert": {"amount": 75000, "from": "annual", "to": "monthly"}}'Rather use it in your browser? Open the Wage Estimator