Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation retrieves a list of followers for a specified user from a Gitea instance via its API. It is useful when you want to analyze or display the social connections of a user within Gitea, such as showing who follows a particular user or integrating follower data into dashboards or reports.

Practical examples include:

  • Displaying a user's followers on a custom dashboard.
  • Exporting follower lists for analysis or marketing purposes.
  • Monitoring changes in follower counts over time.

Properties

Name Meaning
Username The username of the user whose followers you want to list.
Page The page number of results to return (1-based). Useful for paginating through followers.
Limit The number of follower records to return per page (page size).

Output

The output contains a JSON array where each element represents a follower of the specified user. Each follower object typically includes details such as the follower's username and other profile information as provided by the Gitea API.

No binary data output is involved in this operation.

Dependencies

  • Requires access to a Gitea instance with an API endpoint.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The base URL of the Gitea instance must be set in the credentials configuration.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication errors.
    • Specifying a username that does not exist will result in an error or empty response.
    • Pagination parameters (page and limit) set incorrectly may lead to unexpected results or no data.
  • Error messages:

    • Authentication failures: Check that the API key/token is valid and has sufficient permissions.
    • Not found errors: Verify the username exists in the Gitea instance.
    • Rate limiting or server errors: May require retrying after some time or checking server status.

Links and References

Discussion