> For a complete page index of the Captain API documentation, fetch https://docs.captain.dev/llms.txt?excludeSpec=true

# Get Record

GET https://acme.captain.dev/v1/indexes/{index}/records/{record_id}

Get one record by its id. A record the key may not see answers 404 RECORD_NOT_FOUND, the same as an id that doesn't exist. Get Records reads up to 100 at once.

Reference: https://docs.captain.dev/reference/product-search/records/get-record

## Authentication

- `Authorization` header (bearer token, required) — A search key, issued by Captain. Sent as Authorization: Bearer \<key>.
- `Authorization` header (bearer token, required) — A scoped key for one end user, minted from an issuer key that Captain issues. Sent as Authorization: Bearer \<key>.

## Request

### Path parameters

- `index` (string, required) — index name
- `record_id` (string, required)

## Response

### 200

record

- `id` (string, optional)
- `title` (string, optional)
- `description` (string, optional)
- `brand` (string, optional)
- `category` (string, optional)
- `price` (double, optional)
- `rating` (double, optional)
- `image_url` (string, optional)
- `attributes` (RecordAttributes, optional)
- `identifiers` (list of string, optional)
- `fields` (RecordFields, optional)

## Types

### RecordAttributes

### RecordFields

## Examples

**Response**

```json
{
  "id": "sku-10482",
  "title": "Moab 3 Mid Waterproof Hiking Boot",
  "description": "Waterproof leather and mesh mid boot with a Vibram TC5+ outsole and a breathable membrane.",
  "brand": "Merrell",
  "category": "Hiking Boots",
  "price": 139,
  "rating": 4.6,
  "image_url": "https://cdn.acme.example/img/sku-10482.jpg"
}
```

**SDK Code**

```python Python REST
import json
import requests

BASE_URL = "https://acme.captain.dev"
API_KEY = "your_search_key"
INDEX = "products"
RECORD_ID = "sku-10482"

headers = {
    "Authorization": f"Bearer {API_KEY}",
}

response = requests.get(
    f"{BASE_URL}/v1/indexes/{INDEX}/records/{RECORD_ID}",
    headers=headers,
    timeout=30.0,
)

print(json.dumps(response.json(), indent=2))
```

```typescript TypeScript REST
const BASE_URL = "https://acme.captain.dev";
const API_KEY = "your_search_key";
const index = "products";
const recordId = "sku-10482";

const response = await fetch(`${BASE_URL}/v1/indexes/${index}/records/${recordId}`, {
  method: "GET",
  headers: {
    Authorization: `Bearer ${API_KEY}`,
  },
});

const result = await response.json();
console.log(JSON.stringify(result, null, 2));
```