Discuss Scratch

Turtsles
Scratcher
58 posts

Scratch Message Count

To view the message count using ScratchAPI you go here.

https://api.scratch.mit.edu/users/Turtsles/messages/count/

But using getrequest or scratchclient in python it resuts as 0 messages no matter what, why is this?
dhuls
Scratcher
1000+ posts

Scratch Message Count

Because someone was spamming this endpoint, scripts are now blocked from using it.

Last edited by dhuls (Jan. 16, 2022 18:36:50)

SansStudios
Scratcher
1000+ posts

Scratch Message Count

dhuls wrote:

Because someone was spamming this endpoint, scripts are now blocked from using it.

Woah really? Is there a source post I can get?
Chiroyce
Scratcher
1000+ posts

Scratch Message Count

SansStudios wrote:

Woah really? Is there a source post I can get?
deleted, sadly. I think it was because the person who made the topic also gave directions on how to avoid the block.

related: https://scratch.mit.edu/discuss/post/5528026, https://scratch.mit.edu/discuss/post/5527647

Last edited by Chiroyce (Jan. 17, 2022 03:06:21)

SansStudios
Scratcher
1000+ posts

Scratch Message Count

Chiroyce wrote:

deleted, sadly. I think it was because the person who made the topic also gave directions on how to avoid the block.

related: https://scratch.mit.edu/discuss/post/5528026, https://scratch.mit.edu/discuss/post/5527647

Thanks for the topics

I really don't understand why people need to spam the API for their cloud projects. It's not hard to use call-response in projects (the cloud servers are websockets ). Oh well.

Last edited by SansStudios (Jan. 17, 2022 03:24:55)

Chiroyce
Scratcher
1000+ posts

Scratch Message Count

SansStudios wrote:

I really don't understand why people need to spam the API for their cloud projects. It's not hard to use call-response in projects (the cloud servers are websockets :rolleyes ). Oh well.
It's for live messag counts, so the project updates automatically, for that they'll have to get the count every 3-5 seconds or so, some even used sub-zero delays, which means around 10 requests a second
helloworldbyeworld
Scratcher
1000+ posts

Scratch Message Count

Chiroyce wrote:

SansStudios wrote:

I really don't understand why people need to spam the API for their cloud projects. It's not hard to use call-response in projects (the cloud servers are websockets :rolleyes ). Oh well.
It's for live messag counts, so the project updates automatically, for that they'll have to get the count every 3-5 seconds or so, some even used sub-zero delays, which means around 10 requests a second
And they say you shouldn't make that many requests.
Sid72020123
Scratcher
500+ posts

Scratch Message Count

Turtsles wrote:

To view the message count using ScratchAPI you go here.

https://api.scratch.mit.edu/users/Turtsles/messages/count/

But using getrequest or scratchclient in python it resuts as 0 messages no matter what, why is this?
You can still get the real messages count. The messages count endpoint needs some headers (eg. user-agent) for it to give the messages count. This messages count feature works in ScratchConnect but not in ScratchClient because it's owner has not updated that library.
ajsya
Scratcher
1000+ posts

Scratch Message Count

Sid72020123 wrote:

Turtsles wrote:

To view the message count using ScratchAPI you go here.

https://api.scratch.mit.edu/users/Turtsles/messages/count/

But using getrequest or scratchclient in python it resuts as 0 messages no matter what, why is this?
You can still get the real messages count. The messages count endpoint needs some headers (eg. user-agent) for it to give the messages count. This messages count feature works in ScratchConnect but not in ScratchClient because it's owner has not updated that library.
ScratchConnect plug? lol
Sid72020123
Scratcher
500+ posts

Scratch Message Count

ajsya wrote:

Sid72020123 wrote:

Turtsles wrote:

To view the message count using ScratchAPI you go here.

https://api.scratch.mit.edu/users/Turtsles/messages/count/

But using getrequest or scratchclient in python it resuts as 0 messages no matter what, why is this?
You can still get the real messages count. The messages count endpoint needs some headers (eg. user-agent) for it to give the messages count. This messages count feature works in ScratchConnect but not in ScratchClient because it's owner has not updated that library.
ScratchConnect plug? lol
LOL
beanyboy512
Scratcher
500+ posts

Scratch Message Count

i checked gdpr0000001's account (the glitched one) and they have 0 messages

Powered by DjangoBB