Docs/Business Utils/GET /v1/week-number

GET /v1/week-numberCalculate ISO week number

Business Utils lf-business-utils

Tells you which week of the year a date falls in. Returns the ISO 8601 week number, year, and day of week for a given date. Defaults to today if no date provided.

Query Parameters

ParameterTypeRequiredDescription
datestringNoDate in ISO format (default today)

Response Schema

success (boolean): Operation success
date (string): Parsed date
year (integer): ISO year
week (integer): ISO week number
day_of_week (integer): Day of week (1=Mon)

cURL Example

curl 'https://lf-business-utils.laminarforge.dev/v1/week-number?date=2024-01-15' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/week-number'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'date': '2024-01-15'}
response = requests.get(url, headers=headers, params=params)
print(response.json())