Times Adder API

⭐ Beginner's Pick Science & Math / No Auth Required Beginner HTTPS
Free to Use Varies (check documentation)

Overview

Times Adder is a lightweight utility API that accepts an array of time values and returns their total sum. It is perfect for projects that need to calculate total durations, such as video playlists, workout timers, or task schedulers. No authentication is required, so you can integrate it immediately with a simple POST request.

💡

Beginner Tip

Send a POST request with a JSON body containing an array of time strings in HH:MM:SS format, and the API returns their combined total. Make sure to set the Content-Type header to application/json so the server correctly parses your request body.

Available Data

Times Adder data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Times Adder",
    "description": "With this API you can add each of the times introduced in the array sended",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

result The total summed time in HH:MM:SS format.
times Echo of the original time strings that were sent in the request.

Implementation Example

const url = "https://github.com/FranP-code/API-Times-Adder";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

400 Bad Request — invalid format Time strings are not in the expected HH:MM:SS format.
Always use the full three-part format including hours: "00:05:30" for five minutes and thirty seconds, not just "5:30".
Missing Content-Type header causes empty body Without the Content-Type: application/json header, the server may not parse the JSON body.
Always include -H "Content-Type: application/json" in your curl command or set the equivalent header in your HTTP client.
Incorrect result for times over 24 hours Some implementations roll over at 24 hours so verify expected behavior.
Test with a sum exceeding 24 hours to confirm the API returns values like "25:00:00" rather than resetting to "01:00:00".

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 20/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 7/15
Response Time 50ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS NO
Category Science & Math
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →