# 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 %}
