DatesAPI
GET today's date or the next month's name. In your local language. In a format you specify. For free. Integrate it with your Zapier or Make scenario without having to deal with their obscure date modules.

Languages
This applies only to month and weekday names. You can GET the result in your language. Just supply a query parameter lang, i.e. ?lang=fr.


DatesAPI uses the Go date and time formatting layouts. Learn them here and get used to January 2006. Combine it with the lang parameter to get dates in any possible format.
Use cases
DatesAPI was invented to be integrated with services like Zapier or Make. We needed a simple way to create new tickets in a ticket system where each ticket was named like "Project X April 2024". Doing date math like this and returning the month name in a non-English language was not easily done within those services.
Today, tomorrow, yesterday.
The current month, the next month and the previous month.
This year, the following year and – you gessed it – the previous year.
Free forever
Get all what you need. Start immediately without registering. No API key or email address needed.
All endpoints
Unlimited requests
Rate limited to 1 request per second
We promise: we won't spam you or sell your address.
DatesAPI
This is the API documentation for the DatesAPI webservice.
The base URL of the DatesAPI webservice is https://api.datesapi.net. All request have to use the encrypted URL (https).
The DatesAPI webservice accepts only GET requests.
The webservice returns a JSON object with a single key result. The value of result is a string.
You don't have to supply any authentication or headers. Just a plain HTTP GET request.
All example responses are given relative to the date written (2025-06-08).
| Name | Endpoint | Response |
|---|---|---|
| Today | GET /today | {"result": "2025-06-08"} |
| Tomorrow | GET /tomorrow | {"result": "2025-06-09"} |
| Yesterday | GET /yesterday | {"result": "2025-06-07"} |
| This month | GET /this-month | {"result": "June 2025"} |
| Next month | GET /next-month | {"result": "July 2025"} |
| Last month | GET /last-month | {"result": "May 2025"} |
| This year | GET /this-year | {"result": "2025"} |
| Next year | GET /next-year | {"result": "2026"} |
| Last year | GET /last-year | {"result": "2024"} |
We use the golang-module/carbon for translating return values. As of today the following languages are supported.
| Name | Language code |
|---|---|
| German | de |
| English | en |
| Spanish | es |
| Farsi | fa |
| French | fr |
| Hindi | hi |
| Indonesian | id |
| Italian | it |
| Japanese | jp |
| Korean | kr |
| Bahasa Malaysian | ms-MY |
| Dutch | nl |
| Polish | pl |
| Portuguese | pt |
| Romanian | ro |
| Russian | ru |
| Swedish | se |
| Thai | th |
| Turkish | tr |
| Ukrainian | uk |
| Vietnamese | vi |
| Simplified Chinese | zh-CN |
| Traditional Chinese | zh-TW |
Supply the given language code as a query parameter lang:
GET /this-month?lang=es
Since DatesAPI is written in Go we use the Go date and time formatting layouts.These are a bit unusual since January 1st 2006 is the reference date. You don't supply formatting like i.e. "YYYY-MM-DD". Instead you supply parts of the reference date as formatting instructions.
All example responses are given relative to the date written (2025-06-08).
| Meaning | Formatting layout | Result |
|---|---|---|
| year | 2006 or 06 | 2025 or 25 |
| month | 01 or 1 | 03 or 3 |
| day | 02 or 2 | 16 |
| weekday | Monday | Saturday |
| month name | January | March |
Supply the given language code as a query parameter format:
GET /this-month?format=2006-January
Since DatesAPI is written in Go we use the Go date and time formatting layouts.These are a bit unusual since January 1st 2006 is the reference date. You don't supply formatting like i.e. "YYYY-MM-DD". Instead you supply parts of the reference date as formatting instructions.