<!-- source: https://secondlayer.tools/docs/api-reference#get-subgraph-row -->

## Get one row by id

`GET /v1/subgraphs/{name}/{table}/{id}`

One row by its `_id`, wrapped as `{ data }`. An id that isn't an integer, or no row with it, is a 404.

### Path parameters

| Name | Type | Description |
| --- | --- | --- |
| `name` | string, required | Subgraph name, as deployed (the `name` in its definition). |
| `table` | string, required | Table name, one of the keys of the definition's `schema`. `GET /v1/subgraphs/{name}` lists them. |
| `id` | string, required | The row's `_id`. |

### Responses

- `200` The row.
- `401` This bind requires the instance token, and it was missing or wrong
- `404` No subgraph, table, or row with that name or id (`SUBGRAPH_NOT_FOUND`, `TABLE_NOT_FOUND`, `ROW_NOT_FOUND`)
- `429` Hosted only: rate limited; retry after `Retry-After` seconds. Self-hosted reads are not rate limited

### Example

```bash
curl https://api.secondlayer.tools/v1/subgraphs/{name}/{table}/48138 \
  -H "Authorization: Bearer $SECONDLAYER_API_KEY"
```

```json
{
  "data": {
    "_id": "48138",
    "_block_height": "9048926",
    "_tx_id": "0x926f5ff4326155dea077126d21810fc7954568647898dbfb2f66a28b880dc5c9",
    "_created_at": "2026-09-23T15:10:29.114Z",
    "sender": "SP1TPYSSG52FKCDHHN8Y76ABMA12P069BZBFAYEAF",
    "recipient": "SP3EWCDA3V8HCP64CSETSNYXZ25WC4AJ95EC0ZEST.zr-d-0",
    "amount": "14000",
    "asset_identifier": "SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token::sbtc-token"
  }
}
```
