# List Projects and Versions

You can list all Projects and Versions within a Project with the Python package.

### List Projects

You can list all Projects within a Workspace using the following code:

```python
import roboflow

rf = roboflow.Roboflow(api_key=YOUR_API_KEY_HERE)
workspace = rf.workspace(WORKSPACE_ID)
```

Where `WORKSPACE_ID` is your workspace URL identifier (e.g., "my-workspace" from `https://app.roboflow.com/my-workspace`).

### Get a Project

```
# get a specific project
project = rf.workspace().project("PROJECT_ID")

# list all versions in a specific project
project.versions()

# get a specific version from a project
project.version(version_number)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/developer/python-sdk/list-projects-and-versions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
