# Get Contract Event ID

Returns a single indexed smart-contract event by its ID, including its arguments, topics and block timestamp.

_Source: https://beta.taostats.io/docs/api-reference/contract-event/get-contract-event-id_

_Last reviewed: 2026-09-18_

```http
GET https://api.taostats.io/api/contract_event/{id}/v1
```

Requires an API key in the `Authorization` header.

Returns a single indexed smart-contract event by its ID, including its arguments, topics and block timestamp.

## Try it

Try this request in the browser on the HTML version of this page, or use the code samples below.

### Examples

Look up a single contract event by its ID

```text
https://api.taostats.io/api/contract_event/8670681-0408/v1
```

### Code samples

**cURL**

```bash
curl -H "Authorization: <YOUR_API_KEY>" \
  "https://api.taostats.io/api/contract_event/8670681-0408/v1"
```

**JavaScript**

```js
const response = await fetch('https://api.taostats.io/api/contract_event/8670681-0408/v1', {
  headers: {
    Authorization: '<YOUR_API_KEY>',
  },
});
const data = await response.json();
```

**Python**

```python
import requests

response = requests.get(
    "https://api.taostats.io/api/contract_event/8670681-0408/v1",
    headers={"Authorization": "<YOUR_API_KEY>"},
)
data = response.json()
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | `string` | Yes |  |

## Responses

### `200` — Contract event retrieved successfully

| Field | Type | Required |
| --- | --- | --- |
| `data` | `object` | Yes |
| `data.args` | `object` | Yes |
| `data.block_number` | `integer (int32)` | Yes |
| `data.id` | `string` | Yes |
| `data.index` | `integer (int32)` | Yes |
| `data.name` | `string` | Yes |
| `data.timestamp` | `string (date-time)` | Yes |
| `data.topic_0` | `string, nullable` |  |
| `data.topic_1` | `string, nullable` |  |
| `data.topic_2` | `string, nullable` |  |
| `data.topic_3` | `string, nullable` |  |

### Other responses

| Status | Meaning |
| --- | --- |
| `400` | Bad request |
| `404` | Contract event not found |
| `500` | Internal server error |

Every request needs an `Authorization` header holding your API key — see [Getting started with the Taostats API](https://beta.taostats.io/docs/start-here/getting-started-with-taostats-api).
