Unofficial Glitch API Docs (Currently WIP)

Project URL: https://glitch-api-docs.glitch.me/

This is currently work in progress, if you would like to add methods that aren’t listed in methods.json just put a pastebin in the comments with the added method and i will approve and add it to the project.

3 Likes

What are you using to generate the docs?

pug template engine and express, with bootstrap for css

Nice, although I would like to see Slate in action.

um not to sound stupid but what is “Slate”

Slate is a really cool looking API documentation generator.

Why are none of these API docs mobile friendly??? :joy:

3 Likes

I think Slate is mobile friendly.

Does anybody know if there is an endpoint to see how many thanks a user has?

You can fetch a user’s data with https://api.glitch.com/v1/users/by/login?login=USERNAME. Then, get the thanks count using the thanksCount property from the response object.

Thanks! I already figured that out a little bit earlier:


(at the bottom)
1 Like

by the looks of speed, are you querying the api every time someone loads the page. Someone could spam the page to spam 4 apis at the same time.

I am setting up a few precautions in place, such as maybe caching the result.

1 Like

Probably just going to use the sleep() function.

yeah that can work for now, I have a caching system on my alexa youtube skill but sadly it got peremantly banned from youtube with 429 for the whole year.

1 Like