Check If Date Is Working Day
curl --request POST \
--url https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country": "US",
"date": "2026-02-15"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day"
payload = {
"country": "US",
"date": "2026-02-15"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({country: 'US', date: '2026-02-15'})
};
fetch('https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'country' => 'US',
'date' => '2026-02-15'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day"
payload := strings.NewReader("{\n \"country\": \"US\",\n \"date\": \"2026-02-15\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"US\",\n \"date\": \"2026-02-15\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country\": \"US\",\n \"date\": \"2026-02-15\"\n}"
response = http.request(request)
puts response.read_body{
"country": "<string>",
"date": "<string>",
"day_of_week": "<string>",
"is_workday": true,
"non_working_reason": [
"<string>"
],
"public_holiday_name": "<string>"
}API Ninjas
Check If Date Is Working Day
Check If Date Is Working Day
POST
https://api.aisa.one
/
apis
/
v1
/
api-ninjas
/
check-is-working-day
Check If Date Is Working Day
curl --request POST \
--url https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country": "US",
"date": "2026-02-15"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day"
payload = {
"country": "US",
"date": "2026-02-15"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({country: 'US', date: '2026-02-15'})
};
fetch('https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'country' => 'US',
'date' => '2026-02-15'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day"
payload := strings.NewReader("{\n \"country\": \"US\",\n \"date\": \"2026-02-15\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"US\",\n \"date\": \"2026-02-15\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country\": \"US\",\n \"date\": \"2026-02-15\"\n}"
response = http.request(request)
puts response.read_body{
"country": "<string>",
"date": "<string>",
"day_of_week": "<string>",
"is_workday": true,
"non_working_reason": [
"<string>"
],
"public_holiday_name": "<string>"
}Request contract
- Method and path: POST /apis/v1/api-ninjas/check-is-working-day
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/api-ninjas/check-is-working-day
{
"operationId": "api-ninjas.check-is-working-day",
"method": "POST",
"path": "/apis/v1/api-ninjas/check-is-working-day",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"country": {
"description": "Country code (2-letter ISO 3166-1 alpha-2 code, e.g., 'US' for United States, 'GB' for United Kingdom).",
"examples": [
"US",
"GB",
"DE",
"FR",
"JP"
],
"maxLength": 2,
"minLength": 2,
"type": "string"
},
"date": {
"description": "Date in YYYY-MM-DD format. Must be between 1980-01-01 and 2050-12-31 (inclusive).",
"examples": [
"2026-02-15",
"2025-12-25",
"2024-07-04"
],
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"type": "string"
},
"include_holidays": {
"description": "Whether to include public holidays as non-working days. Defaults to true if not specified.",
"type": "boolean"
},
"weekend_days": {
"description": "Comma-separated list of weekend days (mon,tue,wed,thu,fri,sat,sun). Optional: if not provided, default weekend days are determined by country.",
"examples": [
"sat,sun",
"fri,sat",
"sun"
],
"type": "string"
}
},
"required": [
"date",
"country"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json