Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
- Sid72020123
-
500+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
SUI v3.0
Scratch Username Index API. This API can be used to find usernames from their IDs.
Currently, SUI has indexed 3.0M+ (3.0 Million) users!
Note: As SUI was originally made for ScratchConnect Python library, you can also request any endpoint with the domain: “sui.scratchconnect.eu.org”. Eg., https://sui.scratchconnect.eu.org
Interactive Docs:
For interactive documentation, go to: https://sui.scratchconnect.eu.org/docs
Root
Status
This endpoint will give the status and other information about the server like the total number of users indexed, etc.
Get ID (from username)
Note: Use the Scratch API to get the ID of a user. Some user's data may not have been indexed… This endpoint was made just for testing…
Now using this endpoint you can also be able to index a user, his/her following and followers! Just give the username and the “Indexing” status will be shown!
Example: https://sui.scratchconnect.eu.org/get_id/griffpatch
Get User (from ID)
Example: https://sui.scratchconnect.eu.org/get_user/1882674
Get Random Data
Get the random indexed data.
Get Data
To get the data, use the “/get_data” endpoint. Eg. https://sui.scratchconnect.eu.org/get_data/?limit=100&offset=0
The “limit” parameter states the number of indexed data you want (max limit of 10K) and the “offset” parameter states the number of data you want to skip from the beginning. This is similar as used in the Scratch API except for the limit (Scratch API has a limit of 40…)
Note for Scratch Team
If the SUI API is spamming the Scratch API then I will discontinue running it or reduce the number of requests made. Currently, it makes 1-2 requests per 1 second.
Source Code
Source Code is on Github
Thank You!
Scratch Username Index API. This API can be used to find usernames from their IDs.
Currently, SUI has indexed 3.0M+ (3.0 Million) users!
Note: As SUI was originally made for ScratchConnect Python library, you can also request any endpoint with the domain: “sui.scratchconnect.eu.org”. Eg., https://sui.scratchconnect.eu.org
Interactive Docs:
For interactive documentation, go to: https://sui.scratchconnect.eu.org/docs
Root
GET https://sui.scratchconnect.eu.org/
Status
This endpoint will give the status and other information about the server like the total number of users indexed, etc.
GET https://sui.scratchconnect.eu.org/status/
Get ID (from username)
Note: Use the Scratch API to get the ID of a user. Some user's data may not have been indexed… This endpoint was made just for testing…
Now using this endpoint you can also be able to index a user, his/her following and followers! Just give the username and the “Indexing” status will be shown!
GET https://sui.scratchconnect.eu.org/get_id/:username
Get User (from ID)
GET https://sui.scratchconnect.eu.org/get_user/:id
Get Random Data
Get the random indexed data.
https://sui.scratchconnect.eu.org/random/
Get Data
To get the data, use the “/get_data” endpoint. Eg. https://sui.scratchconnect.eu.org/get_data/?limit=100&offset=0
The “limit” parameter states the number of indexed data you want (max limit of 10K) and the “offset” parameter states the number of data you want to skip from the beginning. This is similar as used in the Scratch API except for the limit (Scratch API has a limit of 40…)
Note for Scratch Team
If the SUI API is spamming the Scratch API then I will discontinue running it or reduce the number of requests made. Currently, it makes 1-2 requests per 1 second.
Source Code
Source Code is on Github
Thank You!
Last edited by Sid72020123 (May 24, 2023 08:22:20)
- -EmeraldThunder-
-
1000+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
I've always wanted something that allows you to do this! I can think of several projects I've dropped because of this.
What crawling algorithm have you used?
What crawling algorithm have you used?
Nothing here.
- Sid72020123
-
500+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
This just takes all the followers of famous users in Scratch. Then it collects the data of 40 followers of those followers… I've always wanted something that allows you to do this! I can think of several projects I've dropped because of this.
What crawling algorithm have you used?
After some time, I may add some new technique…
- mbrick2
-
1000+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
Could you add more information such as join date and status (scratcher, teacher, student)
Last edited by mbrick2 (Feb. 17, 2022 09:46:11)




My Forums
ATs
Collabaration
My collabs
AIPoint
AspectOS
CoreOS
OddyseyOS
Cops and Robbers
#BringBackManagerRights
#ReturnRightsToManagers
#WeAreForManagerRights
#LetsRemindAboutMangers
#WeAreMangers
#MangersMustManage
The road to 1000 posts!
0 ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ 1000
80% complete

Banner Made By @Abcde26
Card Made By @Polygon

Card Made By @Polygon
- Sid72020123
-
500+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
I could have done that but that would increase the size of data stored of each user… Could you add more information such as join date and status (scratcher, teacher, student)
But still you can request to Scratch API or Scratch DB to get that information…
- Chiroyce
-
1000+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
I think @Jeffalo was working on something related to this.
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
- Chiroyce
-
1000+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
Suggestion for the get_id endpoint - use requests to get it from the Scratch API.
If the user is Chiroyce, get the JSON data from https://api.scratch.mit.edu/users/Chiroyce/
Here's a demo
If the user is Chiroyce, get the JSON data from https://api.scratch.mit.edu/users/Chiroyce/
Here's a demo
from requests import get def get_id(username): id = get(f'https://api.scratch.mit.edu/users/{username}').json()['id'] return id
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
-
500+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
I know that already but I made it so that I could have checked if the specific user is indexed… Suggestion for the get_id endpoint - use requests to get it from the Scratch API.
If the user is Chiroyce, get the JSON data from https://api.scratch.mit.edu/users/Chiroyce/
Here's a demofrom requests import get def get_id(username): id = get(f'https://api.scratch.mit.edu/users/{username}').json()['id'] return id
I also wrote in the docs above.
- mbrick2
-
1000+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
(#11)YES PLEASE
Shall I add ‘all_data’ endpoint? What do you think? People may spam it but I may add API keys for that…
Last edited by mbrick2 (Feb. 17, 2022 10:52:35)




My Forums
ATs
Collabaration
My collabs
AIPoint
AspectOS
CoreOS
OddyseyOS
Cops and Robbers
#BringBackManagerRights
#ReturnRightsToManagers
#WeAreForManagerRights
#LetsRemindAboutMangers
#WeAreMangers
#MangersMustManage
The road to 1000 posts!
0 ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ 1000
80% complete

Banner Made By @Abcde26
Card Made By @Polygon

Card Made By @Polygon
- Sid72020123
-
500+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
I am busy now because of school and my exams are gonna start soon…(#11)YES PLEASE
Shall I add ‘all_data’ endpoint? What do you think? People may spam it but I may add API keys for that…
I will think over this and I will make that endpoint…
- god286
-
1000+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
all data should have a rate limit and only return 10-20 at a time

** ******** ** **
/** **////// // ****** /**
/** ****** ** ** ****** /** ***** ****** **/**///** ******
/** //////** /** /** //////** /********* **///**//**//*/**/** /**///**/
/** ******* //** /** ******* ////////**/** // /** / /**/****** /**
** /** **////** //**** **////** /**/** ** /** /**/**/// /**
//***** //******** //** //******** ******** //***** /*** /**/** //**
///// //////// // //////// //////// ///// /// // // //
- mbrick2
-
1000+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
Where is the source code?




My Forums
ATs
Collabaration
My collabs
AIPoint
AspectOS
CoreOS
OddyseyOS
Cops and Robbers
#BringBackManagerRights
#ReturnRightsToManagers
#WeAreForManagerRights
#LetsRemindAboutMangers
#WeAreMangers
#MangersMustManage
The road to 1000 posts!
0 ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ 1000
80% complete

Banner Made By @Abcde26
Card Made By @Polygon

Card Made By @Polygon
- mbrick2
-
1000+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
(#17)THROWS an errorCurrently, the source code is on Where is the source code? replit
I will add it to github soon…




My Forums
ATs
Collabaration
My collabs
AIPoint
AspectOS
CoreOS
OddyseyOS
Cops and Robbers
#BringBackManagerRights
#ReturnRightsToManagers
#WeAreForManagerRights
#LetsRemindAboutMangers
#WeAreMangers
#MangersMustManage
The road to 1000 posts!
0 ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ 1000
80% complete

Banner Made By @Abcde26
Card Made By @Polygon

Card Made By @Polygon
- Sid72020123
-
500+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
- Sid72020123
-
500+ posts
SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]
- Discussion Forums
- » Advanced Topics
-
» SUI v3.0 - Scratch Username Index API [3.7M+ Indexed Users!]