Expand This Someone

Could someone show some real examples being used? Perhaps show examples of code in which it is used? I feel like this article assumes you know a lot of stuff already, which is not how it should be, as it should ensure even new users can get a good understanding on the topic.
Turkey3 (talk | contribs) 22:34, 25 June 2014 (UTC)

For example, it doesn't even say what the APIName is, so how would we use it then :/
Turkey3 (talk | contribs) 22:51, 25 June 2014 (UTC)
that would help if we actually knew more about it :/
Mathfreak231 (talk | contribs) 01:07, 26 June 2014 (UTC)
it would also be nice if the Scratch servers weren't in mm
Mathfreak231 (talk | contribs) 01:10, 26 June 2014 (UTC)
I think it's safe to assume that if you need to use the API, you'll know how to make HTTP requests.
blob8108 (talk | contribs) 09:12, 26 June 2014 (UTC)
It's not always assumed by someone new to coding. It should say, then, that it is assumes you can make HTTP requests, or really, the page could provide examples of HTTP requests in a language such as PHP.
Turkey3 (talk | contribs) 12:46, 26 June 2014 (UTC)
Why PHP, of all the languages? Forum Smiley - Straight Face.png
Scimonster (talk | contribs) 18:35, 26 June 2014 (UTC)
Python! import requests; requests.get('http://…')
blob8108 (talk | contribs) 18:59, 26 June 2014 (UTC)
I said "such as"
Turkey3 (talk | contribs) 19:00, 26 June 2014 (UTC)
I'm fine with assumptions. It's good if someone who KNOWS how to use HTTPS requests can understand the article. I honestly don't think it's safe to because using certain API URLs, you can change your bio, delete, create, share, unshare and modify projects, interact with the cloud server, etc. If HTTPS requests are used improperly, you can wreck your projects or userprofile. If it matters that much, I suggest using Python's requests. But no matter what you use, you have a bunch of headers, csrf tokens and json to deal with, which I can't explain here.
23:29, 2 August 2015 (UTC)

Eh... this is the outdated API

So i suggest that this wiki article gets updated --
DrKat123 (talk | contribs) 22:50, 1 March 2016 (UTC)

You have an account, you can do it if you want...
Hamish752 (talk | contribs) 05:48, 2 March 2016 (UTC)
Your wish is my command!
Gaza101 (talk | contribs) 14:03, 14 March 2016 (UTC)

Add More Requests

So far, this page only has information about GET request URLs. What about PUT requests? Also, we should talk about the request headers as well.
Chibi-Matoran (talk | contribs) 22:58, 2 June 2016 (UTC)

Using api-staging is a bad idea

api-staging uses a separate database from the main site, it's outdated. Using api.scratch.mit.edu is the correct way. Are you api-staging should be used?

15:31, 24 October 2016 (UTC)

Where would this go?

So what section in the article would I categorize something like this under?
Icon.png GlassGalaxy (talk | contribs) 02:36, 12 November 2016 (UTC)

Should we add April Fool's endpoints which are likely to be removed in the near future?

In 2018, the POST https://api.scratch.mit.edu/surprise was added to the Scratch API, for the sole purpose of an April Fool's easter egg (clicking a link would lead to a counter being incremented). I'm writing this on 2018-03-31, and I would not be surprised if this endpoint was removed in the near future.

Should we add this endpoint, and, more broadly; should we add any endpoints that are likely to be removed or modified in the near future? I suppose we could change the endpoint to historical after it's removed? Thoughts?
Jokebookservice1 (talk | contribs) 10:55, 31 March 2018 (UTC)

First off, it's not just POST, GET shows the count.
Second, yes, we should add them, but just add the {{obsolete feature}} template to the top of the section once they're removed.
Kenny2scratch logo.jpg kenny2scratch  Talk  Contribs  Directory 
11:55, 31 March 2018 (UTC)
Mm, okay, I'll add it in. GET does show the count; but it appears to be cached server-side, and so lags behind the actual value.
Jokebookservice1 (talk | contribs) 12:04, 31 March 2018 (UTC)

3.0

When 3.0 comes around, I presume we are going to have to update this to match the new API. Does anyone have any info on the 3.0 API?
Logabe (talk | contribs)

Actually, I think 3.0 uses this API, so the title might be a bit misleading. This page seems to cover all Scratch APIs. Shall we move it?
Kenny2scratch logo.jpg kenny2scratch  Talk  Contribs  Directory 
10:53, 27 September 2018 (UTC)

Studio APIs

Is it possible to get the info on a studio through APIs?


HappyParakeet (talk | contribs) 00:29, 8 May 2019 (UTC)

/studios/<studio-id>/
Logo of Apple502j.jpg Apple502j Talk/Activities 2,243edit 09:07, 8 May 2019 (UTC)

Moving

Shouldn’t this be moved to form Scratch API (2.0) to Scratch API due to being the current one?
Scramaso (talk | contribs) 09:53, 18 January 2020 (UTC)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.