Docs/Business Utils/GET /v1/salary-converter

GET /v1/salary-converterConvert salary between periods

Business Utils lf-business-utils

Turns a pay figure into the same pay over a different time span, such as hourly into yearly. Converts salary amounts between hourly, daily, weekly, monthly, and annual periods with configurable work schedule.

Query Parameters

ParameterTypeRequiredDescription
amountnumberYesSalary amount
fromstringNoSource period
tostringNoTarget period
hours_per_weeknumberNoHours per week

Response Schema

success (boolean): Operation success
hourly (number): Hourly rate
daily (number): Daily rate
weekly (number): Weekly rate
monthly (number): Monthly rate
annual (number): Annual salary

cURL Example

curl 'https://lf-business-utils.laminarforge.dev/v1/salary-converter?amount=100000&from=annual&to=hourly' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/salary-converter'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'amount': 100000, 'from': 'annual', 'to': 'hourly'}
response = requests.get(url, headers=headers, params=params)
print(response.json())