GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the followers of a specific user from the GitLab API (version 4). It is useful for scenarios where you want to gather information about who is following a particular user on GitLab, such as for social or project collaboration insights. For example, you might use this to monitor followers of a project maintainer or to analyze user engagement.

Use Case Examples

  1. Get the list of followers for a user with ID 123, paginated with 20 followers per page.
  2. Fetch followers of a user to analyze social connections within a GitLab instance.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication The authentication method used, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to connect to, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for pagination: page number and items per page.
Path Parameters Path parameter specifying the user ID whose followers are to be retrieved.

Output

JSON

  • followers - Array of follower user objects returned by the GitLab API.
  • pagination
    • page - Current page number of the results.
    • per_page - Number of items per page in the results.
    • total - Total number of followers available.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in the GitLab instance.
  • Check that the API key credential has sufficient permissions to access user follower information.
  • If pagination parameters are used, verify they are valid integers to avoid request errors.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to follower data, otherwise the request will fail.

Links

Discussion