Relative Time Formatter API GET

Relative Time Formatter is a tool for converting timestamps and dates to human-readable relative time formats like '2 hours ago' or 'in 3 days'. It supports multiple styles and custom reference times for flexible time representation.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/relativetimeformatter
Verification
Format

No key required to try it. Get a key to use it in your app.

200 OK
{
  "status": "ok",
  "error": null,
  "data": {
    // Relative Time Formatter response payload
  }
}

About the Relative Time Formatter API

Relative Time Formatter works by calculating the time difference between dates and expressing it in the most appropriate unit (seconds, minutes, hours, days, weeks, months, years) with customizable formatting styles.

What people use it for

Social Media
Display post timestamps as relative times like '5 minutes ago' in feeds and timelines
Activity Logs
Show user activity and system events with human-readable time references
Notifications
Format notification timestamps for better user comprehension and engagement
Analytics
Present time-based data and metrics in accessible relative time formats

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Relative Time Formatter

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Relative Time Formatter API.

Read the docs
What does the Relative Time Formatter API do?
Relative Time Formatter is a tool for converting timestamps and dates to human-readable relative time formats like '2 hours ago' or 'in 3 days'. It supports multiple styles and custom reference times for flexible time representation.
How do I authenticate Relative Time Formatter API requests?
Pass your API key in the x-api-key header over HTTPS. One key works across all 300+ APIVerve APIs — there are no per-endpoint credentials.
How much does the Relative Time Formatter API cost?
Each call spends 2 credits from your shared pool. The free tier includes 200 credits every month, and paid plans add more headroom.
How fast is the Relative Time Formatter API?
Response time depends on the endpoint — the p50 through p99 latency for this API is published on this page. Requests are served over HTTPS through a global edge network.
What response formats does the Relative Time Formatter API support?
JSON by default, plus XML and YAML via the format parameter. GraphQL and an MCP interface for AI agents are available across the catalog.
What HTTP method does the Relative Time Formatter API use?
GET over HTTPS, following standard REST conventions with a consistent { status, error, data } response envelope.

Ready to build with Relative Time Formatter? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs