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

The history object tracks metrics logged with wandb.log. Access the history object using the API:

api = wandb.Api()
run = api.run("username/project/run_id")
print(run.history())

Last modified February 1, 2025: 1dc8b96