---
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

---

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