> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How can I access the data logged to my runs directly and programmatically?

The history object tracks metrics logged with `wandb.log`. To access the history object, use the API:

```python theme={null}
api = wandb.Api()
run = api.run("username/project/run_id")
print(run.history())
```

***

<Badge stroke shape="pill" color="orange" size="md">[Experiments](/support/models/tags/experiments)</Badge>
