World Time API Ip.txt API

The Ip.txt API from World Time API — 1 operation(s) for ip.txt.

Operations 1

GET /ip.txt request the current time based on the ip of the request. note: this is a "best guess" obtained from open-source data.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/worldtimeapi-ip-txt-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

worldtimeapi-ip-txt-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: World Time Geo Ip.txt API
  version: '2025-10-01'
  description: API to get the current local time details for a given timezone or IP address
servers:
- url: https://public.timeapi.world/api/
tags:
- name: Ip.txt
paths:
  /ip.txt:
    get:
      summary: 'request the current time based on the ip of the request. note: this is a "best guess" obtained from open-source data.'
      responses:
        '200':
          description: the current time for the timezone determined from client IP in plain text
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DateTimeTextResponse'
              example: 'abbreviation: BST

                datetime: 2025-09-12T14:28:04.754+01:00

                day_of_week: 5

                day_of_year: 255

                dst: true

                dst_from: 2025-03-30T01:00:00+00:00

                dst_offset: 3600

                dst_until: 2025-10-26T01:00:00+00:00

                raw_offset: 0

                timezone: Europe/London

                unixtime: 1757683684

                utc_datetime: 2025-09-12T13:28:04.754+00:00

                utc_offset: +01:00

                week_number: 37

                client_ip: 127.0.0.1

                '
        default:
          $ref: '#/components/responses/ErrorTextResponse'
      tags:
      - Ip.txt
components:
  responses:
    ErrorTextResponse:
      description: an error response in plain text
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/ErrorTextResponse'
  schemas:
    DateTimeTextResponse:
      type: string
      description: 'time zone details, as per the DateTimeJsonResponse response, in the format `key: value`, one item per line'
    ErrorTextResponse:
      type: string
      description: details about the error encountered in plain text