GitLab: User projects
A GitLab.com user's public projects, with the user's name and avatar.
GET /v1/gitlab/user-projects
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
username | string | Required | Up to 100 characters GitLab username, for example sytses. |
order_by | string | Optional | star_count, last_activity_at, created_at, name Sort field, highest or newest first. Default star_count. |
page | integer | Optional | Any Results page, from 1. |
per_page | integer | Optional | Any Results per page, 1 to 100. Default 20. |
Example request
GitLab
GET/v1/gitlab/user-projects?username=sytses&per_page=10
{
"success": true,
"data": {
"user": {
"id": 1,
"username": "sytses",
"name": "Sid Sijbrandij",
"state": "active",
"avatar_url": "https://secure.gravatar.com/avatar/adcd204e48241a6528220c7450334cc5ffab2ea1c6a89d3d0ada01d01ed2b49e?s=80&d=identicon",
"url": "https://gitlab.com/sytses"
},
"page": 1,
"has_more": true,
"total": 22,
"count": 10,
"items": [
{
"id": 2230440,
"path": "sytses/dotfiles",
"name": "dotfiles",
"description": "My dotfiles.",
"stars": 17,
"forks": 4,
"default_branch": "master",
"visibility": "public",
"created_at": "2016-12-29T12:59:52.294Z",
"last_activity_at": "2025-10-27T10:47:39.506Z",
"url": "https://gitlab.com/sytses/dotfiles",
"namespace": {
"name": "Sid Sijbrandij",
"path": "sytses",
"kind": "user"
}
},
{
"id": 695082,
"path": "sytses/sytses.gitlab.io",
"name": "sytses.gitlab.io",
"description": "https://sytse.com",
"stars": 2,
"forks": 2,
"default_branch": "master",
"visibility": "public",
"created_at": "2015-12-22T12:21:38.087Z",
"last_activity_at": "2023-06-03T00:07:52.937Z",
"url": "https://gitlab.com/sytses/sytses.gitlab.io",
"namespace": {
"name": "Sid Sijbrandij",
"path": "sytses",
"kind": "user"
}
},
{
"id": 4549417,
"path": "sytses/www.firstruleofkerneldevelopment.com",
"name": "www.firstruleofkerneldevelopment.com",
"stars": 1,
"forks": 0,
"default_branch": "master",
"visibility": "public",
"created_at": "2017-11-02T13:39:55.840Z",
"last_activity_at": "2017-11-02T13:39:55.840Z",
"url": "https://gitlab.com/sytses/www.firstruleofkerneldevelopment.com",
"avatar_url": "https://gitlab.com/uploads/-/system/project/avatar/4549417/jekyll.png?v=1705629555",
"namespace": {
"name": "Sid Sijbrandij",
"path": "sytses",
"kind": "user"
}
}
]
},
"meta": {
"request_id": "req_b1d00999fb274d3a97b8e48a78b120f3",
"credits_charged": 1,
"credits_remaining": 1980
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.items has these 13 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
id | integer |
path | string |
name | string |
description | string |
stars | integer |
forks | integer |
default_branch | string |
visibility | string |
created_at | string |
last_activity_at | string |
url | url |
namespace | object |
avatar_url | url |