Discuss Scratch
- Sid72020123
- Scratcher
500+ posts
Scratch Comments API
Scratch Comments API
Simple API to get the comments of a Scratch User, Studio and Project in JSON format!
Documentation
Documentation can be found here or here
API Uses:
Get User Comments:
Example URL:
GET https://scratch-comments-api.sid72020123.repl.co/user/?username=griffpatch&limit=10&page=1
Get Studio Comments:
Example URL:
GET https://scratch-comments-api.sid72020123.repl.co/studio/?id=100&limit=10&page=1
Get Project Comments:
Example URL:
GET https://scratch-comments-api.sid72020123.repl.co/project/?id=104&limit=10&page=1
Source Code
Source Code can be found on Github: https://github.com/Sid72020123/Scratch-Comments-API
Simple API to get the comments of a Scratch User, Studio and Project in JSON format!
Documentation
Documentation can be found here or here
API Uses:
Get User Comments:
GET https://scratch-comments-api.sid72020123.repl.co/user/?username=:username&limit=:limit&page=:page
GET https://scratch-comments-api.sid72020123.repl.co/user/?username=griffpatch&limit=10&page=1
Get Studio Comments:
GET https://scratch-comments-api.sid72020123.repl.co/studio/?id=:id&limit=:limit&page=:page
GET https://scratch-comments-api.sid72020123.repl.co/studio/?id=100&limit=10&page=1
Get Project Comments:
GET https://scratch-comments-api.sid72020123.repl.co/project/?id=:id&limit=:limit&page=:page
GET https://scratch-comments-api.sid72020123.repl.co/project/?id=104&limit=10&page=1
Source Code
Source Code can be found on Github: https://github.com/Sid72020123/Scratch-Comments-API
Last edited by Sid72020123 (Jan. 25, 2022 11:43:16)
Sid72020123
- Chiroyce
- Scratcher
1000+ posts
Scratch Comments API
Get Studio Comments:There's already an official API for that - https://api.scratch.mit.edu/studios/30136012/comments?offset=0&limit=20
Get Project Comments:and that - https://api.scratch.mit.edu/users/Chiroyce/projects/579616012/comments?offset=0&limit=20
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- Sid72020123
- Scratcher
500+ posts
Scratch Comments API
I know but that official API's doesn't give Replies but only the replies count. A user of scratchconnect requested to make that so I made it.Get Studio Comments:There's already an official API for that - https://api.scratch.mit.edu/studios/30136012/comments?offset=0&limit=20Get Project Comments:and that - https://api.scratch.mit.edu/users/Chiroyce/projects/579616012/comments?offset=0&limit=20
Sid72020123
- Chiroyce
- Scratcher
1000+ posts
Scratch Comments API
I know but that official API's doesn't give Replieshttps://api.scratch.mit.edu/studios/30136012/comments/172901030/replies?offset=0&limit=25
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- Sid72020123
- Scratcher
500+ posts
Scratch Comments API
Oh. I didn't knew that! But does any official Scratch API gives the replies of comments on User Profile??I know but that official API's doesn't give Replieshttps://api.scratch.mit.edu/studios/30136012/comments/172901030/replies?offset=0&limit=25
Sid72020123
- Sid72020123
- Scratcher
500+ posts
Scratch Comments API
Ok. The Studio and Project API may not be useful but User Comments API may be.
Sid72020123
- Capitan_Florida_2
- Scratcher
100+ posts
Scratch Comments API
:peekeyes: OH MY GOOOOOOOD
cf2
being since 2016 __
I said “Nothing's new, nothing's changed, I still need you”.
note for me: CTRL+SHIFT+DOWN
i am very.
we just gotta get back to the website
- Capitan_Florida_2
- Scratcher
100+ posts
Scratch Comments API
i love it :]
cf2
being since 2016 __
I said “Nothing's new, nothing's changed, I still need you”.
note for me: CTRL+SHIFT+DOWN
i am very.
we just gotta get back to the website
- SansStudios
- Scratcher
1000+ posts
Scratch Comments API
I love FastAPI! Very cool project, especially the user page comments part
Last edited by SansStudios (Jan. 25, 2022 22:14:10)
☁️ scratchcloud ☁️
Click above to check it out! I've worked on it for over a year!
Just like sudden sadness comes hangin' on the breeze
- Sid72020123
- Scratcher
500+ posts
Scratch Comments API
Thanks I love FastAPI! Very cool project, especially the user page comments part
Sid72020123
- Chiroyce
- Scratcher
1000+ posts
Scratch Comments API
Yep, the user profile doesn't have an API. Ok. The Studio and Project API may not be useful but User Comments API may be.
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- Sid72020123
- Scratcher
500+ posts
Scratch Comments API
OkYep, the user profile doesn't have an API. Ok. The Studio and Project API may not be useful but User Comments API may be.
Sid72020123
- Maximouse
- Scratcher
1000+ posts
Scratch Comments API
https://scratch.mit.edu/site-api/comments/user/Chiroyce/?page=1Yep, the user profile doesn't have an API. Ok. The Studio and Project API may not be useful but User Comments API may be.
- Sid72020123
- Scratcher
500+ posts
Scratch Comments API
I mean the data in JSON format.https://scratch.mit.edu/site-api/comments/user/Chiroyce/?page=1Yep, the user profile doesn't have an API. Ok. The Studio and Project API may not be useful but User Comments API may be.
Sid72020123
- Capitan_Florida_2
- Scratcher
100+ posts
Scratch Comments API
Huhhttps://scratch.mit.edu/site-api/comments/user/Chiroyce/?page=1Yep, the user profile doesn't have an API. Ok. The Studio and Project API may not be useful but User Comments API may be.
cf2
being since 2016 __
I said “Nothing's new, nothing's changed, I still need you”.
note for me: CTRL+SHIFT+DOWN
i am very.
we just gotta get back to the website
- Sid72020123
- Scratcher
500+ posts
Scratch Comments API
That Official API doesn't give the data in JSON format so I made this API.Huhhttps://scratch.mit.edu/site-api/comments/user/Chiroyce/?page=1Yep, the user profile doesn't have an API. Ok. The Studio and Project API may not be useful but User Comments API may be.
Sid72020123
- god286
- Scratcher
1000+ posts
Scratch Comments API
I have also implemented something similar in meowclient
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- Sid72020123
- Scratcher
500+ posts
Scratch Comments API
meowclientCool! I have also implemented something similar in
Sid72020123
- Chiroyce
- Scratcher
1000+ posts
Scratch Comments API
Oops - should've worded it better. Yep, the user profile doesn't have an API which responds in JSON.https://scratch.mit.edu/site-api/comments/user/Chiroyce/?page=1Yep, the user profile doesn't have an API. Ok. The Studio and Project API may not be useful but User Comments API may be.
*Well most APIs these days use JSON so I assumed that an API would respond with JSON
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence