[go: up one dir, main page]

Skip to content

Provide a programatic way to retrieve user public snippets via the REST API

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

At the moment there's no way to retrieve someone's public Snippets via the API. There's a way to list Project snippets via https://docs.gitlab.com/ee/api/project_snippets.html#list-snippets, but there's no equivalent way for user snippets. Could you please implement it?

The best approach I found is to query https://gitlab.com/users/jimen0/snippets.json where you can replace jimen0 with any username. However this results in a crazy escaped html blob which is quite hard to parse for something as simple as this snippet: https://gitlab.com/-/snippets/2422399

image

Thank you!

Edited by 🤖 GitLab Bot 🤖