# fetch.fetch_component_by_mukey { #soildb.fetch.fetch_component_by_mukey }

```python
fetch.fetch_component_by_mukey(
    mukeys,
    columns=None,
    chunk_size=1000,
    client=None,
    auto_schema=False,
)
```

Fetch component data for a list of mukeys with optional schema auto-registration.

Performance Notes:
- Components are the most numerous SSURGO entities (often 1000s per survey area)
- Use chunk_size of 500-1000 for large mukey lists
- Consider filtering for major components only if not needed

Args:
    mukeys: Map unit key(s) (single key or list of keys)
    columns: Columns to select (default: key component columns from schema)
    chunk_size: Chunk size for pagination (recommended: 500-1000)
    client: Optional SDA client
    auto_schema: If True, automatically creates and registers schema from
                SDA response metadata. Useful for custom tables or new columns

Returns:
    SDAResponse with component data

Examples:
    # Basic usage
    response = await fetch_component_by_mukey("123456")

    # With auto schema registration
    response = await fetch_component_by_mukey("123456", auto_schema=True)

    # Custom columns
    response = await fetch_component_by_mukey(
        "123456", columns=["cokey", "compname", "taxclname"]
    )