Skip to content
Back to skills

Public Api And Automation

ASecurity

"Query, export, and automate W&B resources with wandb.Api,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
toolspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill public-api-and-automation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Public Api And Automation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Public Api And Automation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-public-api-and-automation/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-public-api-and-automation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: public-api-and-automation
description: "Query, export, and automate W&B resources with wandb.Api,
  including runs, projects, sweeps, reports, files, history exports, and
  automation events/actions/scopes."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# W&B Public API and Automation

Use this sub-skill when a task asks an agent to read existing W&B data, export run history or metadata, inspect files/reports/sweeps, or create/update W&B Automations. This is for post-hoc querying and server-side automation, not live experiment logging, artifact lifecycle design, or running sweep agents.

## Route by task

- For `wandb.Api` construction, path shapes, run/project/sweep/report access, filters, and object properties, read [API reference](references/api-reference.md).
- For large or selective run-history exports, sampled vs unsampled history, pagination, file downloads, and the bundled export helper, read [export and pagination](references/export-and-pagination.md).
- For automation scopes, events, filters, integrations, actions, create/update/delete flows, and compatibility checks, read [automations](references/automations.md).
- For auth, host, path, pagination, missing-field, GraphQL/network, and automation mismatch failures, read [troubleshooting](references/troubleshooting.md).

## Core patterns

```python
import wandb

api = wandb.Api(timeout=60)
run = api.run("entity/project/run_id")
print(run.config)
print(dict(run.summary))
for row in run.scan_history(keys=["loss", "accuracy"], page_size=1000):
    ...
```

```python
import wandb
from wandb.automations import OnRunMetric, RunEvent, SendWebhook

api = wandb.Api()
project = api.project("project", entity="entity")
webhook = next(api.webhook_integrations(entity="entity"))
event = OnRunMetric(scope=project, filter=RunEvent.metric("loss").mean(5).gt(1.0))
action = SendWebhook.from_integration(webhook, payload={"metric": "loss"})
automation = api.create_automation(event >> action, name="loss-alert")
```

## Bundled script

Use [scripts/export_run_history.py](scripts/export_run_history.py) for safe CSV or JSONL exports:

```bash
python scripts/export_run_history.py --entity ENTITY --project PROJECT --run RUN_ID --out history.csv --format csv --keys loss accuracy --max-rows 10000
```

Start with `--dry-run` or `--max-rows` before exporting large histories.

Files in this skill

  • SKILL.md2.3 KB
  • references/api-reference.md4.8 KB
  • references/automations.md5.4 KB
  • references/export-and-pagination.md3.7 KB
  • references/troubleshooting.md5 KB
  • scripts/export_run_history.py5.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.