---
title: "Find sequence by timestamp"
method: GET
path: "/explorer/{network}/ledger/sequence-from-timestamp"
tags: ["Ledger Info API"]
---

# Find sequence by timestamp

`GET /explorer/{network}/ledger/sequence-from-timestamp`

Resolves ledger sequence with a finalization time equal or less than a given timestamp. If the timestamp indicates some time in the future or, vise versa, less than the closing time of the first ledger, server returns 404 Not Found error.

## Path parameters

- `network` 'public' | 'testnet', required — Stellar network

## Query parameters

- `timestamp` union, required
  - string, date-time
  - integer

## Response `200`

Ledger sequence resolved

- LedgerTimestampSequenceInfo — Ledger sequence-timestamp pair
  - `sequence` integer — Ledger sequence
  - `timestamp` integer — Unix timestamp (UTC)
  - `date` string, date-time — Ledger date

## Other responses

- `400` — Invalid timestamp
- `404` — Ledger sequence cannot be resolved

## Changes

- **2022-10-01** `e98582bd958f` — 1 info
  - endpoint added
- **2022-06-01** `e95744a13be0` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/stellar-expert/apis/stellarexpert-api/changes/explorer/:network/ledger/sequence-from-timestamp/get.md)

---

[API](https://skmtc.dev/stellar-expert/apis/stellarexpert-api.md) · [All operations](https://skmtc.dev/stellar-expert/apis/stellarexpert-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stellar-expert/stellarexpert-api/revisions/5d96955edab4/schema)
