Wage Estimator

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 hourlyWage or annualSalary and get hourly, daily, weekly, biweekly, monthly and annual figures, plus the schedule they assume.
  • Convert: send a convert object to turn one amount from one period into another. When convert is 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) and weeksPerYear (up to 53) must be greater than 0. In convert mode, put them inside convert.
  • Monthly is annual divided by 12. Biweekly is two weeks.

Notes

  • If both hourlyWage and annualSalary are sent, hourlyWage is 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-estimator
Estimate pay across periods, or convert an amount between periods

Request Body

Content-Type: application/json

ParameterTypeRequiredDescription
hourlyWage
number
OptionalHourly pay. Estimates mode needs this or annualSalary.
annualSalary
number
OptionalYearly pay. Used when hourlyWage is not sent.
hoursPerDay
number
OptionalWorking hours per day (estimates mode).Default: 8
daysPerWeek
number
OptionalWorking days per week (estimates mode).Default: 5
weeksPerYear
number
OptionalWorking weeks per year (estimates mode).Default: 52
convert
object
OptionalSwitches to convert mode. Fields: amount, from, to, and optional hoursPerDay, daysPerWeek, weeksPerYear.
convert.amount
number
OptionalThe amount to convert. Required in convert mode.
convert.from
string
Enum: hourly, daily, weekly, biweekly, monthly, annual
OptionalPeriod the amount is for. Required in convert mode.
convert.to
string
Enum: hourly, daily, weekly, biweekly, monthly, annual
OptionalPeriod 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 key
403
API key is deactivated or expired, or this IP address is not allowed for the key
429
Rate limit exceeded (120 requests per minute per key)
500
Internal server error

Code 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"}}'

Ready to get started?

Create an API key to start using the Wage Estimator API.

Rather use it in your browser? Open the Wage Estimator