<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Chris Yau</title>
    <description>The latest articles on DEV Community by Chris Yau (@time-now-api).</description>
    <link>https://dev.to/time-now-api</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2049706%2Fac5375e2-73b7-4eea-9c88-ddef6ba20e86.webp</url>
      <title>DEV Community: Chris Yau</title>
      <link>https://dev.to/time-now-api</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/time-now-api"/>
    <language>en</language>
    <item>
      <title>🚀 I built a Free, Open World Time API (No API Keys, CORS Enabled)</title>
      <dc:creator>Chris Yau</dc:creator>
      <pubDate>Thu, 22 Jan 2026 10:57:39 +0000</pubDate>
      <link>https://dev.to/time-now-api/i-built-a-free-open-world-time-api-no-api-keys-cors-enabled-5en</link>
      <guid>https://dev.to/time-now-api/i-built-a-free-open-world-time-api-no-api-keys-cors-enabled-5en</guid>
      <description>&lt;h1&gt;
  
  
  🚀 Finally, a Free World Time API (No Sign-up, No Keys)
&lt;/h1&gt;

&lt;p&gt;Handling timezones in software development is universally painful. Between Daylight Saving Time (DST) switches, leap seconds, and server drift, getting the simple question — &lt;em&gt;“What time is it in Tokyo right now?”&lt;/em&gt; — can be surprisingly complex.&lt;/p&gt;

&lt;p&gt;While there are plenty of APIs out there, most of them require you to sign up, manage API keys, or deal with strict rate limits just to get a simple JSON timestamp.&lt;/p&gt;

&lt;p&gt;I wanted a tool that I could just use without the hassle.&lt;br&gt;&lt;br&gt;
So, I built the &lt;strong&gt;Time.Now Developer API&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It is &lt;strong&gt;free&lt;/strong&gt;, &lt;strong&gt;public&lt;/strong&gt;, &lt;strong&gt;CORS-enabled&lt;/strong&gt;, and requires &lt;strong&gt;no API keys&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;All information is here: &lt;a href="https://time.now/developer" rel="noopener noreferrer"&gt;https://time.now/developer&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🌍 What this API offers you
&lt;/h2&gt;

&lt;p&gt;I designed this to be the simplest way to add time synchronization to your apps. Here is what you get out of the box:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Zero Friction&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
No API keys. No sign-ups. Just make a GET request.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Atomic Precision&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Current local time synchronized with atomic clocks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Timezone Intelligence&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
All the messy DST logic is handled for you. You get the current status (&lt;code&gt;dst: true/false&lt;/code&gt;) and exact offsets.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Geo-IP Detection&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Use the &lt;code&gt;/ip&lt;/code&gt; endpoint to automatically detect a user's timezone based on their connection.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Frontend Ready&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Fully CORS-enabled. Fetch directly from React, Vue, or vanilla JS — no proxy required.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ⚡ Quick Start
&lt;/h2&gt;

&lt;p&gt;You can test it right now in your browser or terminal.&lt;/p&gt;

&lt;p&gt;Base endpoint:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://time.now/developer/api" rel="noopener noreferrer"&gt;https://time.now/developer/api&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  1️⃣ Get Time by Location
&lt;/h2&gt;

&lt;p&gt;Want to know the current time in London? Just &lt;code&gt;GET&lt;/code&gt; the area and location.&lt;/p&gt;

&lt;p&gt;curl &lt;a href="https://time.now/developer/api/timezone/Europe/London" rel="noopener noreferrer"&gt;https://time.now/developer/api/timezone/Europe/London&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;JSON Response:&lt;/p&gt;

&lt;p&gt;{&lt;br&gt;
  "abbreviation": "BST",&lt;br&gt;
  "datetime": "2023-10-05T14:30:00.123456+01:00",&lt;br&gt;
  "day_of_week": 4,&lt;br&gt;
  "day_of_year": 278,&lt;br&gt;
  "dst": true,&lt;br&gt;
  "dst_offset": 3600,&lt;br&gt;
  "timezone": "Europe/London",&lt;br&gt;
  "unixtime": 1696512600,&lt;br&gt;
  "utc_datetime": "2023-10-05T13:30:00.123456Z",&lt;br&gt;
  "utc_offset": "+01:00",&lt;br&gt;
  "week_number": 40&lt;br&gt;
}&lt;/p&gt;




&lt;h2&gt;
  
  
  2️⃣ Auto-Detect a User’s Time
&lt;/h2&gt;

&lt;p&gt;Perfect for frontend apps when you want a &lt;strong&gt;server-verified local time&lt;/strong&gt; without asking for GPS permissions.&lt;/p&gt;

&lt;p&gt;fetch('&lt;a href="https://time.now/developer/api/ip'" rel="noopener noreferrer"&gt;https://time.now/developer/api/ip'&lt;/a&gt;)&lt;br&gt;
  .then(res =&amp;gt; res.json())&lt;br&gt;
  .then(data =&amp;gt; {&lt;br&gt;
    console.log(&lt;code&gt;Your server time is: ${data.datetime}&lt;/code&gt;);&lt;br&gt;
    console.log(&lt;code&gt;You are in: ${data.timezone}&lt;/code&gt;);&lt;br&gt;
  });&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 When should you use this?
&lt;/h2&gt;

&lt;p&gt;This API is useful whenever you need an external &lt;strong&gt;source of truth&lt;/strong&gt; for time.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔌 IoT &amp;amp; Smart Devices
&lt;/h3&gt;

&lt;p&gt;Arduino, ESP32, Raspberry Pi, and similar devices often lack battery-backed RTCs.&lt;br&gt;&lt;br&gt;
Call this API on boot to sync accurate system time instantly.&lt;/p&gt;

&lt;h3&gt;
  
  
  🌐 Global Scheduling
&lt;/h3&gt;

&lt;p&gt;If a user in New York schedules something for a user in Tokyo, don’t calculate offsets manually.&lt;br&gt;&lt;br&gt;
Query both timezones and let the API handle DST and offsets correctly.&lt;/p&gt;

&lt;h3&gt;
  
  
  🎮 Preventing Client-Side Cheating
&lt;/h3&gt;

&lt;p&gt;Never trust &lt;code&gt;new Date()&lt;/code&gt; in browsers — users can change their system clock.&lt;br&gt;&lt;br&gt;
Use the &lt;code&gt;unixtime&lt;/code&gt; value from the API to enforce accurate countdowns and deadlines.&lt;/p&gt;




&lt;h2&gt;
  
  
  🚀 Try it out
&lt;/h2&gt;

&lt;p&gt;I built this as a hassle-free utility for the developer community.&lt;/p&gt;

&lt;p&gt;Base URL: &lt;a href="https://time.now/developer/api" rel="noopener noreferrer"&gt;https://time.now/developer/api&lt;/a&gt;&lt;br&gt;&lt;br&gt;
Docs &amp;amp; Guides: View the Developer Hub&lt;/p&gt;

&lt;p&gt;There are copy-paste integration examples for &lt;strong&gt;Python, Go, PHP, Java, Swift&lt;/strong&gt;, and more in the docs.&lt;/p&gt;

&lt;p&gt;Let me know in the comments if you find it useful — happy coding! 👨‍💻👩‍💻&lt;/p&gt;

</description>
      <category>api</category>
      <category>webdev</category>
      <category>programming</category>
      <category>timezone</category>
    </item>
  </channel>
</rss>
