GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdForks

AI-generated

Summary

Retrieve a list of forks for a specific GitLab project using its ID or URL-encoded path, with optional query parameters to filter, sort, and paginate the results.

Inputs

  • id (required) — The ID or URL-encoded path of the target project to fetch forks from.
  • order_by — Field to order the returned projects by (e.g., created_at).
  • sort — Sort order of the returned projects, either ascending ('asc') or descending ('desc').
  • archived — Filter forks by archived status (true or false).
  • visibility — Filter forks by visibility level ('private', 'internal', or 'public').
  • search — Search term to return projects matching the criteria.
  • search_namespaces — Include ancestor namespaces when matching search criteria (boolean).
  • owned — Limit results to projects owned by the authenticated user (boolean).
  • starred — Limit results to projects starred by the authenticated user (boolean).
  • imported — Limit results to projects imported by the authenticated user (boolean).
  • membership — Limit results to projects where the authenticated user is a member (boolean).
  • with_issues_enabled — Filter projects with issues feature enabled (boolean).
  • with_merge_requests_enabled — Filter projects with merge requests feature enabled (boolean).
  • with_programming_language — Filter projects by programming language used in the repository.
  • min_access_level — Filter projects by minimum access level of the authenticated user (integer).
  • id_after — Return projects with IDs greater than this value.
  • id_before — Return projects with IDs less than this value.
  • last_activity_after — Return projects with last activity after this ISO 8601 datetime.
  • last_activity_before — Return projects with last activity before this ISO 8601 datetime.
  • repository_storage — Filter by repository storage shard; admin only.
  • topic — Comma-separated list of topics to filter projects.
  • topic_id — Filter projects by assigned topic ID.
  • updated_before — Return projects updated before this ISO 8601 datetime.
  • updated_after — Return projects updated after this ISO 8601 datetime.
  • include_pending_delete — Include projects pending deletion; admin only.
  • wiki_checksum_failed — Filter projects where wiki checksum failed.
  • repository_checksum_failed — Filter projects where repository checksum failed.
  • include_hidden — Include hidden projects; admin only.
  • marked_for_deletion_on — Filter projects marked for deletion on this date.
  • page — Page number for paginated results.
  • per_page — Number of items to return per page.
  • simple — Return only basic project fields (ID, URL, name, path).
  • with_custom_attributes — Include custom attributes in the response.

Output shape

a list of forked projects of the specified project

Supports pagination through 'page' and 'per_page' query parameters. Response fields can be simplified by setting 'simple' to true. Authentication is required unless skipped explicitly.

Links

Discussion