List Projects and Versions

List Projects

Get the projects in your workspace:

import roboflow

rf = roboflow.Roboflow(api_key="YOUR_API_KEY")
workspace = rf.workspace()

for project in workspace.list_projects():
    print(project["id"], project["name"], project["type"])

Each entry includes the project's id (URL slug), display name, project type, image count, and a few other metadata fields.

To work against a public Universe workspace, pass its slug:

universe_ws = rf.workspace("roboflow-100")

Get a Project

project = workspace.project("my-detector")

Or use the top-level shortcut:

project = rf.project("my-detector")

List Versions

project.versions() returns Version objects you can call methods on directly (download, train, delete, etc.). For a lightweight dict response, use project.list_versions() or project.get_version_information().

Get a Version

Numeric — versions are 1-indexed.

CLI equivalent

See List Workspaces and Projects (CLI) and Manage Versions (CLI).

Last updated

Was this helpful?