--- title: "List Tasks" api: "GET /api/v1/tasks" description: "Get a paginated list of all tasks" --- Returns a paginated list of all tasks belonging to the user, ordered by creation date. Each task includes basic information like status and creation time. For detailed task info, use the get task endpoint. Page number (minimum: 1) Number of items per page (minimum: 1) List of simplified task objects Unique identifier for the task Original task instructions Final output or result from the task Current status of the task ISO 8601 timestamp of task creation ISO 8601 timestamp of task completion URL to view live task execution Total number of pages available Current page number Number of items per page Total number of tasks across all pages ```python import requests API_KEY = 'your_api_key_here' BASE_URL = 'https://api.browser-use.com/api/v1' HEADERS = {'Authorization': f'Bearer {API_KEY}'} # Get first page with 20 tasks params = {'page': 1, 'limit': 20} response = requests.get(f'{BASE_URL}/tasks', headers=HEADERS, params=params) tasks_data = response.json() print(f"Found {tasks_data['total_count']} total tasks") print(f"Showing page {tasks_data['page']} of {tasks_data['total_pages']}") for task in tasks_data['tasks']: print(f"Task {task['id']}: {task['status']}") ``` ```json { "tasks": [ { "id": "task_1234567890abcdef", "task": "Visit example.com and take a screenshot", "output": "Screenshot taken successfully", "status": "finished", "created_at": "2023-01-01T12:00:00Z", "finished_at": "2023-01-01T12:01:30Z", "live_url": "https://live.browser-use.com/task/1234567890abcdef" }, { "id": "task_0987654321fedcba", "task": "Check product availability on shopping site", "output": null, "status": "running", "created_at": "2023-01-01T11:30:00Z", "finished_at": null, "live_url": "https://live.browser-use.com/task/0987654321fedcba" } ], "total_pages": 5, "page": 1, "limit": 10, "total_count": 42 } ``` ## Pagination The API uses offset-based pagination: - **page**: Start from page 1 - **limit**: Maximum 100 items per page - **total_pages**: Use this to implement pagination UI - **total_count**: Total number of tasks across all pages ## Ordering Tasks are ordered by creation date (newest first). This ensures that recently created tasks appear at the top of the list. ## Use Cases This endpoint is useful for: - Building task management dashboards - Monitoring task execution status - Filtering tasks by status - Implementing task history views This endpoint returns simplified task objects for performance. Use the individual task endpoint to get complete task details including steps and browser data.