GitLab user

GET https://api.api.sh/gitlab/v1/user
1 credit / call reference try it in the playground →

A gitlab.com user's public profile (id, username, name, link, avatar, state), number of starred projects and their public projects (page of 20 by default, with the project fields). Pass next_page back as page; null on the last page.

Every response includes credits_used: the credits this call cost.

Part of the GitLab API: 22 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
usernamerequired string Username or gitlab.com profile link. Example: sytses
order_by last_activity_at | created_at | updated_at | star_count | name Order of projects (default last_activity_at).
page integer Page number (default 1).
limit integer Results per page (default 20, max 100).

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/gitlab/v1/user?username=sytses" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"id": 1,"username": "sytses","name": "Sid Sijbrandij","url": "https://gitlab.com/sytses","avatar": "https://secure.gravatar.com/avatar/adcd204e48241a6528220c7450334cc5ffab2ea1c6a89d3d0ada01d01ed2b49e?s=80&d=identicon","state": "active","locked": false,"starred_projects": 1,"projects_total": 22,"projects_page": 1,"projects_count": 20,"projects": [{"id": 2230440,"path": "sytses/dotfiles","name": "dotfiles","name_with_namespace": "Sid Sijbrandij / dotfiles","url": "https://gitlab.com/sytses/dotfiles","description": "My dotfiles.","topics": [],"stars": 17,"forks": 4,"open_issues": null,"created_at": "2016-12-29T12:59:52.294Z","last_activity_at": "2025-10-27T10:47:39.506Z","default_branch": "master","visibility": "public","avatar": null,"http_url_to_repo": "https://gitlab.com/sytses/dotfiles.git","ssh_url_to_repo": "name@example.com:sytses/dotfiles.git","readme_url": "https://gitlab.com/sytses/dotfiles/-/blob/master/README.md","license": null,"license_url": null,"namespace": {"path": "sytses","name": "Sid Sijbrandij","kind": "user","url": "https://gitlab.com/sytses"},"forked_from": null,"archived": null,"empty_repo": null},{"id": 72353001,"path": "sytses/gitlab","name": "GitLab","name_with_namespace": "Sid Sijbrandij / GitLab","url": "https://gitlab.com/sytses/gitlab","description": "GitLab is an open source end-to-end software development platform with built-in version control, issue tracking, code review, CI/CD, and mor…","topics": [],"stars": 0,"forks": 0,"open_issues": null,"created_at": "2025-08-04T23:02:23.229Z","last_activity_at": "2025-08-06T17:01:49.329Z","default_branch": "master","visibility": "public","avatar": "https://gitlab.com/uploads/-/system/project/avatar/72353001/project_avatar.png?v=1754499709","http_url_to_repo": "https://gitlab.com/sytses/gitlab.git","ssh_url_to_repo": "name@example.com:sytses/gitlab.git","readme_url": "https://gitlab.com/sytses/gitlab/-/blob/master/README.md","license": null,"license_url": null,"namespace": {"path": "sytses","name": "Sid Sijbrandij","kind": "user","url": "https://gitlab.com/sytses"},"forked_from": null,"archived": null,"empty_repo": null},"… 18 more"],"next_page": 2,"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.