List all projects in a group
Lists all projects in a specified group accessible to the authenticated user. Unauthenticated requests return only public projects with a limited subset of attributes.
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
The ID of a group
Query parameters
Limit by projects that are not archived and not marked for deletion
Limit by archived status
Limit by visibility
Return list of authorized projects matching the search criteria
Return projects ordered by field
Return projects sorted in ascending and descending order
Return only the ID, URL, name, and path of each project
Limit by owned by authenticated user
Limit by starred status
Limit by enabled issues feature
Limit by enabled merge requests feature
Include projects shared to this group
Includes projects in subgroups of this group
Includes projects in ancestors of this group
Limit by minimum access level of authenticated user on projects
Current page number
Number of items per page
Include custom attributes in the response
Return only projects having security report artifacts present
Response
List all projects in a group
Example response
[
{
"id": 1,
"description": "desc",
"name": "project1",
"name_with_namespace": "John Doe / project1",
"path": "project1",
"path_with_namespace": "namespace1/project1",
"created_at": "2020-05-07T04:27:17.016Z",
"default_branch": "main",
"tag_list": [
"tag"
],
"topics": [
"topic"
],
"ssh_url_to_repo": "git@gitlab.example.com:gitlab/gitlab.git",
"http_url_to_repo": "https://gitlab.example.com/gitlab/gitlab.git",
"web_url": "https://gitlab.example.com/gitlab/gitlab",
"readme_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/README.md",
"forks_count": 1,
"license_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/LICENCE",
"license": {
"key": "gpl-3.0",
"name": "GNU General Public License v3.0",
"nickname": "GNU GPLv3",
"html_url": "http://choosealicense.com/licenses/gpl-3.0"
},
"avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png",
"star_count": 1,
"last_activity_at": "2013-09-30T13:46:02Z",
"visibility": "public",
"namespace": {
"id": 2,
"name": "project",
"path": "my_project",
"kind": "project",
"full_path": "group/my_project",
"parent_id": 1,
"avatar_url": "https://example.com/avatar/12345",
"web_url": "https://example.com/group/my_project"
},
"custom_attributes": {
"key": "foo",
"value": "bar"
},
"repository_storage": "default",
"forked_from_project": {
"id": 1,
"description": "desc",
"name": "project1",
"name_with_namespace": "John Doe / project1",
"path": "project1",
"path_with_namespace": "namespace1/project1",
"created_at": "2020-05-07T04:27:17.016Z",
"default_branch": "main",
"tag_list": [
"tag"
],
"topics": [
"topic"
],
"ssh_url_to_repo": "git@gitlab.example.com:gitlab/gitlab.git",
"http_url_to_repo": "https://gitlab.example.com/gitlab/gitlab.git",
"web_url": "https://gitlab.example.com/gitlab/gitlab",
"readme_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/README.md",
"forks_count": 1,
"license_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/LICENCE",
"license": {
"key": "gpl-3.0",
"name": "GNU General Public License v3.0",
"nickname": "GNU GPLv3",
"html_url": "http://choosealicense.com/licenses/gpl-3.0"
},
"avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png",
"star_count": 1,
"last_activity_at": "2013-09-30T13:46:02Z",
"visibility": "public",
"namespace": {
"id": 2,
"name": "project",
"path": "my_project",
"kind": "project",
"full_path": "group/my_project",
"parent_id": 1,
"avatar_url": "https://example.com/avatar/12345",
"web_url": "https://example.com/group/my_project"
},
"custom_attributes": {
"key": "foo",
"value": "bar"
},
"repository_storage": "default"
},
"container_registry_image_prefix": "registry.gitlab.example.com/gitlab/gitlab-client",
"_links": {
"self": "https://gitlab.example.com/api/v4/projects/4",
"issues": "https://gitlab.example.com/api/v4/projects/4/issues",
"merge_requests": "https://gitlab.example.com/api/v4/projects/4/merge_requests",
"repo_branches": "https://gitlab.example.com/api/v4/projects/4/repository/branches",
"labels": "https://gitlab.example.com/api/v4/projects/4/labels",
"events": "https://gitlab.example.com/api/v4/projects/4/events",
"members": "https://gitlab.example.com/api/v4/projects/4/members",
"cluster_agents": "https://gitlab.example.com/api/v4/projects/4/cluster_agents"
},
"marked_for_deletion_at": "2020-05-07T04:27:17.016Z",
"marked_for_deletion_on": "2020-05-07T04:27:17.016Z",
"owner": {
"id": 1,
"username": "admin",
"public_email": "john@example.com",
"name": "Administrator",
"state": "active",
"avatar_url": "https://gravatar.com/avatar/1",
"avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
"custom_attributes": [
{
"key": "foo",
"value": "bar"
}
],
"web_url": "https://gitlab.example.com/root"
},
"repository_object_format": "sha1",
"service_desk_address": "address@example.com",
"issues_access_level": "enabled",
"repository_access_level": "enabled",
"merge_requests_access_level": "enabled",
"forking_access_level": "enabled",
"wiki_access_level": "enabled",
"builds_access_level": "enabled",
"snippets_access_level": "enabled",
"pages_access_level": "enabled",
"analytics_access_level": "enabled",
"container_registry_access_level": "enabled",
"security_and_compliance_access_level": "enabled",
"releases_access_level": "enabled",
"environments_access_level": "enabled",
"feature_flags_access_level": "enabled",
"infrastructure_access_level": "enabled",
"monitor_access_level": "enabled",
"model_experiments_access_level": "enabled",
"model_registry_access_level": "enabled",
"package_registry_access_level": "enabled",
"creator_id": 1,
"import_url": "https://gitlab.com/gitlab/gitlab.git",
"import_type": "git",
"import_status": "none",
"import_error": "Import error",
"open_issues_count": 1,
"updated_at": "2020-05-07T04:27:17.016Z",
"ci_default_git_depth": 20,
"ci_delete_pipelines_in_seconds": 86400,
"build_git_strategy": "fetch",
"runner_token_expiration_interval": 3600,
"resource_group_default_process_mode": "unordered",
"auto_cancel_pending_pipelines": "enabled",
"build_timeout": 3600,
"auto_devops_deploy_strategy": "continuous",
"runners_token": "b8547b1dc37721d05889db52fa2f02",
"merge_method": "merge",
"squash_option": "default_off",
"suggestion_commit_message": "Suggestion message",
"merge_commit_template": "%(title)",
"squash_commit_template": "%(source_branch)",
"mr_default_title_template": "%(source_branch)",
"issue_branch_template": "%(title)",
"statistics": {
"commit_count": 37,
"storage_size": 1038090,
"repository_size": 1038090
},
"reviewer_assignment_strategy": "code_owners",
"merge_request_title_regex": "/Title of merge request/",
"merge_request_title_regex_description": "This requires the title to include a Jira label"
}
]Changes
No recorded changes to this operation across all 5 revisions of this API.