# Tweet ID to timestamp: when an X post was made, to the millisecond

> Paste a post ID or link. Every X post ID made since 4 November 2010 carries its own creation time, so the time is read from the ID itself, in your browser.

Canonical page: https://okdata.online/tools/tweet-id-to-timestamp/

## Example

`2120464771900379217` → 2026-11-11T10:32:52.608Z (Unix 1794393172608 ms)

## How it works

X post IDs are Snowflake IDs: the top 41 bits are milliseconds since X’s epoch, 1288834974657 (4 November 2010, 01:42:54.657 UTC). Shift the ID right by 22 bits and add the epoch, and you have the Unix time in milliseconds. IDs from before the switch were a plain counter and carry no time; the tool says so when an ID is one of them.

## By API

[X post detail](https://okdata.online/apis/x/posts/get/) `x.posts.get`: $0.0003 a call, charged even when the answer is empty or failed; bad parameters are free.

```bash
curl -G "https://api.okdata.online/v1/x/posts/get" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode "id=2120464771900379217"
```
