# Block by timestamp

```
https://api.vechainstats.com/v2/block/blocktime
    ?blockts=1695307034
    &VCS_API_KEY=your_api_key
```

{% tabs %}
{% tab title="Request" %}

| Parameter    | Description                        |
| ------------ | ---------------------------------- |
| blockts      | Timestamp in Unix Timestamp format |
| {% endtab %} |                                    |

{% tab title="Response" %}
{% hint style="info" %}
The response will return the block number produced on or the first one after the requested timestamp
{% endhint %}

```json
{
    "status": {
        "success": true,
        "message": "OK"
    },
    "data": {
        "number": 16478272,
        "hash": "0x00fb70402a118cd7c571736eb14bfa98c0df1bc5cb97db3a2843d60460eb38ae",
        "timestamp": 1695307040
    },
    "meta": {
        "blockts": 1695307034,
        "timestamp": 1695634559
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vechainstats.com/api-endpoints/block/block-by-timestamp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
