提供: Japanese Scratch-Wiki

Document stub.png この項目は、書きかけの項目です。この項目を加筆・訂正などしてくださる協力者を求めています。
Clock.png このページはScratch 2.0から3.0へのアップデートに伴い、大規模な変更が必要であると予想されています。ここに書かれていることはすぐに古くなるかもしれません。

Scratch APIを使うと、Scratchに関するさまざまなデータが取得できる。

試す場合、以下の「リクエスト例」のURLに飛ぶだけで結果がわかる。

注意:リクエストに、GETを含めてリクエストするとうまく行きません。

api.scratch.mit.edu

api.scratch.mit.eduは、最新のScratch APIである。このAPIのURLは次の通り:

https://api.scratch.mit.edu

GET /

リクエスト例

GET https://api.scratch.mit.edu

応答例

{"website":"scratch.mit.edu","api":"api.scratch.mit.edu","help":"help@scratch.mit.edu"}

サーバーの状態

GET /health

リクエスト例

GET https://api.scratch.mit.edu/health

応答例

{
  "version": "682c409583cb3f06e855ce1c163cd2f1e1cd1406",
  "uptime": 18634934,
  "load": [
    0,
    0,
    0
  ],
  "sql": {
    "ssl": true
  },
  "cache": {
    "connected": true,
    "ready": true
  }
}

ニュース

GET /news

リクエスト例

GET https://api.scratch.mit.edu/news

応答例

[
  {
    "id": 160769150358,
    "stamp": "2017-05-17T15:00:52.000Z",
    "headline": "New Scratch Design Studio",
    "url": "https://scratch.mit.edu/studios/3963359/",
    "image": "https://68.media.tumblr.com/1c34c83f9dcaee31422e88bd88de4f00/tumblr_inline_nwuaehA1SR1szpavb_540.png",
    "copy": "Create a project that tells others about a Scratch studio you love!"
  },
  {
    "id": 160239764738,
    "stamp": "2017-05-02T20:42:40.000Z",
    "headline": "Happy Birthday, Scratch!",
    "url": "https://scratch.mit.edu/discuss/topic/252683/",
    "image": "https://68.media.tumblr.com/b8e8bc37f38a135a0f873a6fe7788701/tumblr_inline_nwuak8hOun1szpavb_540.png",
    "copy": "This month Scratch turns 10 years old!"
  },
  ...
]

プロジェクト

GET /projects/count/all

リクエスト例

GET https://api.scratch.mit.edu/projects/count/all

応答例

{"count":22850560}

プロキシ

GET /proxy/featured

リクエスト例

GET https://api.scratch.mit.edu/proxy/featured

応答例

{
    "community_newest_projects":[
        {
            "thumbnail_url":"//cdn.scratch.mit.edu/static/site/projects/thumbnails/10157/8493.png",
            "title":"Take To The Sky- CC  ~OPEN~ remix",
            "creator":"Sapphire19",
            "type":"project",
            "id":101578493,
            "love_count":0
        },
        {
            "thumbnail_url":"//cdn.scratch.mit.edu/static/site/projects/thumbnails/10157/8191.png",
            "title":"Untitled",
            "creator":"Sally_Williams-",
            "type":"project",
            "id":101578191,
            "love_count":0
        },
        ...
    ],
    "community_most_remixed_projects":[
        {
            "title":"Oreo!!!",
            "type":"project",
            "remixers_count":429,
            "love_count":11395,
            "thumbnail_url":"//cdn.scratch.mit.edu/static/site/projects/thumbnails/2625/7525.png",
            "creator":"FunnyAnimatorJimTV",
            "id":26257525
        },
        ...
    ],
    "scratch_design_studio":[
        {
            "gallery_id":1859165,
            "creator":"NaturalmotionStudios",
            "remixers_count":0,
            "gallery_title":"Remix-A-Thon",
            "love_count":8,
            "thumbnail_url":"//cdn.scratch.mit.edu/static/site/projects/thumbnails/9805/1641.png",
            "title":"My Dream House - SDS",
            "type":"project",
            "id":98051641
        },
        ...
    ],
    "curator_top_projects":[
        {
            "title":"Colour Dash! ",
            "creator":"enderbrick",
            "love_count":30,
            "thumbnail_url":"//cdn.scratch.mit.edu/static/site/projects/thumbnails/9647/1680.png",
            "curator_name":"Cirrus-",
            "type":"project",
            "id":96471680
        },
        ...
    ],
    "community_featured_studios":[
        {
            "thumbnail_url":"//cdn.scratch.mit.edu/static/site/galleries/thumbnails/139/9754.png",
            "type":"gallery",
            "id":1399754,
            "title":"Robots, Androids, and Artificial Intelligence"
        },
        ...
    ],
    "community_most_loved_projects":[
        {
            "thumbnail_url":"//cdn.scratch.mit.edu/static/site/projects/thumbnails/10022/2418.png",
            "title":"Instrument Sprites",
            "creator":"ceebee",
            "type":"project",
            "id":100222418,
            "love_count":104
        },
        ...
    ],
    "community_featured_projects":[
        {
            "thumbnail_url":"//cdn.scratch.mit.edu/static/site/projects/thumbnails/9486/8644.png",
            "title":"Cavern | Platformer",
            "creator":"Influenzi",
            "type":"project",
            "id":94868644,
            "love_count":334
        },
        ...
    ]
}

GET /proxy/users/<username>/activity

リクエスト例

GET https://api.scratch.mit.edu/proxy/users/abee/activity

応答例

[
  {
    "project_title": "Scratchの大型アプデについて",
    "actor": {
      "username": "happy-happy2",
      "pk": 13893342,
      "thumbnail_url": "//uploads.scratch.mit.edu/users/avatars/13893342.png",
      "admin": false
    },
    "project": 196556683,
    "project_creator": {
      "username": "rn-m-rn",
      "pk": 26093807,
      "thumbnail_url": "//uploads.scratch.mit.edu/users/avatars/26093807.png",
      "admin": false
    },
    "datetime_created": "2018-02-10T08:34:18",
    "message": "\nお気に入り\n   <a href=\"/projects/196556683/\">Scratchの大型アプデについて</a>",
    "type": 3
  },
  {
    "title": "Scratchの大型アプデについて",
    "recipient": {
      "username": "rn-m-rn",
      "pk": 26093807,
      "thumbnail_url": "//uploads.scratch.mit.edu/users/avatars/26093807.png",
      "admin": false
    },
    "actor": {
      "username": "happy-happy2",
      "pk": 13893342,
      "thumbnail_url": "//uploads.scratch.mit.edu/users/avatars/13893342.png",
      "admin": false
    },
    "project": 196556683,
    "datetime_created": "2018-02-10T08:34:18",
    "message": "\n好き\n    <a href=\"/projects/196556683/\">Scratchの大型アプデについて</a>",
    "type": 2
  },
  {
    "actor": {
      "username": "mucchi110",
      "pk": 11220260,
      "thumbnail_url": "//uploads.scratch.mit.edu/users/avatars/11220260.png",
      "admin": false
    },
    "datetime_created": "2018-02-10T08:33:38",
    "followed_user": {
      "username": "kasaha",
      "pk": 20995851,
      "thumbnail_url": "//uploads.scratch.mit.edu/users/avatars/20995851.png",
      "admin": false
    },
    "message": "\nフォローしている\n    <a href=\"/users/kasaha/\">kasaha</a>",
    "type": 0,
    "followed_username": "kasaha"
  }
  ...
]

GET /proxy/users/<username>/activity/count

リクエスト例

GET https://api.scratch.mit.edu/proxy/users/Paddle2See/activity/count

応答例

{
  "msg_count": 14
}

ユーザー

GET /users/<username>

リクエスト例

GET https://api.scratch.mit.edu/users/apple502j

応答例

{
  "id": 10817178,
  "username": "apple502j",
  "history": {
    "joined": "2015-06-26T22:47:57.000Z"
  },
  "profile": {
    "id": 9986108,
    "images": {
      "90x90": "https://cdn2.scratch.mit.edu/get_image/user/10817178_90x90.png?v=",
      "60x60": "https://cdn2.scratch.mit.edu/get_image/user/10817178_60x60.png?v=",
      "55x55": "https://cdn2.scratch.mit.edu/get_image/user/10817178_55x55.png?v=",
      "50x50": "https://cdn2.scratch.mit.edu/get_image/user/10817178_50x50.png?v=",
      "32x32": "https://cdn2.scratch.mit.edu/get_image/user/10817178_32x32.png?v="
    },
    "status": "・Scratch Wiki JP SYSOP& Create a projects\n・GitHub \n・Scratch mod\n\n\n",
    "bio": "My icon is by me.\n\nDon't eat apple502j!\n(I have been eaten many times.)\nMy sister's account @banana302\nSub @apple502j_sub",
    "country": "Japan"
  }
}

GET /users/<username>/favorites

リクエスト例

GET https://api.scratch.mit.edu/users/ScratchCat/favorites

応答例

[
  {
    "id": 103776594,
    "title": "Scratch Cat Explores The World",
    "description": "EDIT 3 MANY YEARS LATER)\nsuprise attack comments are alive again >:)\n\nEDIT 2: If you want to remix this, Please read this first. https://scratch.mit.edu/projects/103776594/\n\nEDIT: OH MY GOD, i log back on after an hour and HOLY POPATO OVER 1000 MESSAGES\n*head explodes*\nThank you all so much for this!!\n\nI decided to make a project about the famous kitty, Scratch Cat!\n\nI hope you all like it :)\nFeel free to remix and add scratch cat going to even MORE places\nBut, please credit me if you do remix it :P\n\n-x- Credits -x-\nWalking Cat Sprite - @griffpatch\nOther Cat Sprites - @ScratchCat\nScripting - @Dreampelt\nSong (Monody) - TheFatRat",
    "instructions": "",
    "author": {
      "id": 11282880
    },
    "image": "https://uploads.scratch.mit.edu/projects/thumbnails/103776594.png",
    "history": {
      "created": "2016-04-01T16:00:43.000Z",
      "modified": "2017-09-19T23:59:23.000Z",
      "shared": "2016-04-01T17:20:18.000Z"
    },
    "stats": {
      "views": 87108,
      "loves": 6857,
      "favorites": 5420,
      "comments": 1076
    },
    "remix": {
      "parent": null,
      "root": null
    }
  }
]

GET /users/<username>/followers

リクエスト例

GET https://api.scratch.mit.edu/users/thisandagain/followers

応答例

[
  {
    "id": 18521501,
    "username": "Scooby-Doo-Lover",
    "history": {
      "joined": "2016-09-26T10:24:49.000Z"
    },
    "profile": {
      "id": 18521501,
      "images": {
        "90x90": "https://cdn2.scratch.mit.edu/get_image/user/18521501_90x90.png?v=",
        "60x60": "https://cdn2.scratch.mit.edu/get_image/user/18521501_60x60.png?v=",
        "55x55": "https://cdn2.scratch.mit.edu/get_image/user/18521501_55x55.png?v=",
        "50x50": "https://cdn2.scratch.mit.edu/get_image/user/18521501_50x50.png?v=",
        "32x32": "https://cdn2.scratch.mit.edu/get_image/user/18521501_32x32.png?v="
      },
      "status": "bof......",
      "bio": "Hi I'm @Scooby-Doo-Lover but you can call me Scooby Doo, Scooby or Scoob (XD Scoob-adive!)\n\nThank you to @StrawberrySwirlinc for the AWESOME profile pic!\n\nI might to F4F if you insist.\nI love plush :3",
      "country": "Australia"
    }
  },
  {
    "id": 22078175,
    "username": "kyse",
    "history": {
      "joined": "2017-03-09T15:36:41.000Z"
    },
    "profile": {
      "id": 22078175,
      "images": {
        "90x90": "https://cdn2.scratch.mit.edu/get_image/user/22078175_90x90.png?v=",
        "60x60": "https://cdn2.scratch.mit.edu/get_image/user/22078175_60x60.png?v=",
        "55x55": "https://cdn2.scratch.mit.edu/get_image/user/22078175_55x55.png?v=",
        "50x50": "https://cdn2.scratch.mit.edu/get_image/user/22078175_50x50.png?v=",
        "32x32": "https://cdn2.scratch.mit.edu/get_image/user/22078175_32x32.png?v="
      },
      "status": "Who ever is my 100th follower gets a prize. Congrats to RBdancer for being my 50th follower she got a prize. Lets see who is my 100th follower. Turns out I'm not leaving scratch. ",
      "bio": " I  will always do f4f. I love LOINEL MESSi. Check out these scratchers @scratchcat74 KS89797 falzatari and GB2630 and yogi2016.",
      "country": "United States"
    }
  },
  {
    "id": 28268895,
    "username": "AK384762",
    "history": {
      "joined": "2017-12-12T15:38:50.000Z"
    },
    "profile": {
      "id": 28268895,
      "images": {
        "90x90": "https://cdn2.scratch.mit.edu/get_image/user/28268895_90x90.png?v=",
        "60x60": "https://cdn2.scratch.mit.edu/get_image/user/28268895_60x60.png?v=",
        "55x55": "https://cdn2.scratch.mit.edu/get_image/user/28268895_55x55.png?v=",
        "50x50": "https://cdn2.scratch.mit.edu/get_image/user/28268895_50x50.png?v=",
        "32x32": "https://cdn2.scratch.mit.edu/get_image/user/28268895_32x32.png?v="
      },
      "status": "everthing100%\n",
      "bio": "Troll face \n",
      "country": "United States"
    }
  },
  {
    "id": 19156050,
    "username": "sandropenner",
    "history": {
      "joined": "2016-10-24T17:41:09.000Z"
    },
    "profile": {
      "id": 19156050,
      "images": {
        "90x90": "https://cdn2.scratch.mit.edu/get_image/user/19156050_90x90.png?v=",
        "60x60": "https://cdn2.scratch.mit.edu/get_image/user/19156050_60x60.png?v=",
        "55x55": "https://cdn2.scratch.mit.edu/get_image/user/19156050_55x55.png?v=",
        "50x50": "https://cdn2.scratch.mit.edu/get_image/user/19156050_50x50.png?v=",
        "32x32": "https://cdn2.scratch.mit.edu/get_image/user/19156050_32x32.png?v="
      },
      "status": "Dog-Man Game ------------------------------------------------->\n",
      "bio": "i like coding\ni am a male\ni am 14 \ni have 11 followers looking for more (*wink, wink)\nbtw I do f4f",
      "country": "Canada"
    }
  },
  ...
]

GET /users/<username>/following

リクエスト例

GET https://api.scratch.mit.edu/users/Paddle2See/following

応答例

[
  {
    "id": 26249744,
    "username": "GulpTea",
    "history": {
      "joined": "2017-10-06T14:07:50.000Z"
    },
    "profile": {
      "id": 26249744,
      "images": {
        "90x90": "https://cdn2.scratch.mit.edu/get_image/user/26249744_90x90.png?v=",
        "60x60": "https://cdn2.scratch.mit.edu/get_image/user/26249744_60x60.png?v=",
        "55x55": "https://cdn2.scratch.mit.edu/get_image/user/26249744_55x55.png?v=",
        "50x50": "https://cdn2.scratch.mit.edu/get_image/user/26249744_50x50.png?v=",
        "32x32": "https://cdn2.scratch.mit.edu/get_image/user/26249744_32x32.png?v="
      },
      "status": "Moderating!\n\n@bigpuppy made my icon, thank you!\n_B)_",
      "bio": "Hi there!\nI'm a moderator for Scratch located in Canada.\n\nI'm a Christian, and I enjoy programming while listening to jazz and drinking tea!",
      "country": "Canada"
    }
  },
  {
    "id": 6777752,
    "username": "PutneyCat",
    "history": {
      "joined": "2014-12-31T16:17:24.000Z"
    },
    "profile": {
      "id": 6777752,
      "images": {
        "90x90": "https://cdn2.scratch.mit.edu/get_image/user/6777752_90x90.png?v=",
        "60x60": "https://cdn2.scratch.mit.edu/get_image/user/6777752_60x60.png?v=",
        "55x55": "https://cdn2.scratch.mit.edu/get_image/user/6777752_55x55.png?v=",
        "50x50": "https://cdn2.scratch.mit.edu/get_image/user/6777752_50x50.png?v=",
        "32x32": "https://cdn2.scratch.mit.edu/get_image/user/6777752_32x32.png?v="
      },
      "status": "",
      "bio": "Hello, this is PutneyCat. This was a shared daughter-father account (and we still do scratch together) but now we have our own accounts and father (lawyer hooked on scratch) uses this one.",
      "country": "United Kingdom"
    }
  },
  {
    "id": 24137617,
    "username": "dietbacon",
    "history": {
      "joined": "2017-05-30T16:46:03.000Z"
    },
    "profile": {
      "id": 24137617,
      "images": {
        "90x90": "https://cdn2.scratch.mit.edu/get_image/user/24137617_90x90.png?v=",
        "60x60": "https://cdn2.scratch.mit.edu/get_image/user/24137617_60x60.png?v=",
        "55x55": "https://cdn2.scratch.mit.edu/get_image/user/24137617_55x55.png?v=",
        "50x50": "https://cdn2.scratch.mit.edu/get_image/user/24137617_50x50.png?v=",
        "32x32": "https://cdn2.scratch.mit.edu/get_image/user/24137617_32x32.png?v="
      },
      "status": "",
      "bio": "",
      "country": "United States"
    }
  },
  {
    "id": 5509488,
    "username": "P444",
    "history": {
      "joined": "2014-10-31T08:48:21.000Z"
    },
    "profile": {
      "id": 5509488,
      "images": {
        "90x90": "https://cdn2.scratch.mit.edu/get_image/user/5509488_90x90.png?v=",
        "60x60": "https://cdn2.scratch.mit.edu/get_image/user/5509488_60x60.png?v=",
        "55x55": "https://cdn2.scratch.mit.edu/get_image/user/5509488_55x55.png?v=",
        "50x50": "https://cdn2.scratch.mit.edu/get_image/user/5509488_50x50.png?v=",
        "32x32": "https://cdn2.scratch.mit.edu/get_image/user/5509488_32x32.png?v="
      },
      "status": "Not very active due to college...\nI can only answer to  \"major\" questions as my routine doesn't allow any further involvement.\nLast logged in date : 18th Dec 2017",
      "bio": "A rare breed of the 44th series. Possibly 4...?\nalt @pl4l\nI hated pen, now I love it... how?!\nI have finally joined the \"one forever loop\" squad!",
      "country": "NO"
    }
  },
  {
    "id": 15850198,
    "username": "Rosyda",
    "history": {
      "joined": "2016-03-16T09:26:03.000Z"
    },
    "profile": {
      "id": 15850198,
      "images": {
        "90x90": "https://cdn2.scratch.mit.edu/get_image/user/15850198_90x90.png?v=",
        "60x60": "https://cdn2.scratch.mit.edu/get_image/user/15850198_60x60.png?v=",
        "55x55": "https://cdn2.scratch.mit.edu/get_image/user/15850198_55x55.png?v=",
        "50x50": "https://cdn2.scratch.mit.edu/get_image/user/15850198_50x50.png?v=",
        "32x32": "https://cdn2.scratch.mit.edu/get_image/user/15850198_32x32.png?v="
      },
      "status": "Everyone here is really kind, thank you for making my experience here in scratch to be so wonderful, you're all amazing and I'm glad that you have been with me ^^",
      "bio": "✿▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬✿\n. ᴀsɪᴀɴ | ɪsғᴘ | ᴄᴏᴅᴇʀ | ᴀʀᴛɪsᴛ | ᴘɪᴀɴɪsᴛ\n. ᴍʏ ᴅʀᴇᴀᴍ ɪs ᴛᴏ ʙᴇ ᴀ ᴛᴇᴀᴄʜᴇʀ ♡\n.­ ɢʜᴏsᴛ: @evelynn- icon: @sekkai",
      "country": "Indonesia"
    }
  },
  ...
]

GET /users/<username>/messages/count

リクエスト例

GET https://api.scratch.mit.edu/users/Paddle2See/messages/count

応答例

{
  "count": 14
}

GET /users/<username>/projects

リクエスト例

GET https://api.scratch.mit.edu/users/ScratchCat/projects

応答例

[
  {
    "id": 103343044,
    "title": "Clue One",
    "description": "",
    "instructions": "After 9 years, I've finally decided to take a vacation! But the big question is, where in the world have I gone??\n\nI'll be sharing clues to my vacation adventures randomly throughout the day. This is your first clue!\n\nUse the sprites I leave behind as clues to help tell the story of my vacation! Add where you think I went, or where you think I should go next!\n\n =^..^= ",
    "author": {
      "id": 15883188
    },
    "image": "https://uploads.scratch.mit.edu/projects/thumbnails/103343044.png",
    "history": {
      "created": "2016-03-29T13:25:31.000Z",
      "modified": "2016-03-31T18:54:32.000Z",
      "shared": "2016-03-31T18:54:32.000Z"
    },
    "stats": {
      "views": 9178,
      "loves": 398,
      "favorites": 311,
      "comments": 1455
    },
    "remix": {
      "parent": null,
      "root": null
    }
  },
  {
    "id": 103343073,
    "title": "Clue Six",
    "description": "",
    "instructions": "After 9 years, I've finally decided to take a vacation! But the big question is, where in the world have I gone??\n\nI'll be sharing clues to my vacation adventures randomly throughout the day. This is Clue #6!\n\nUse the sprites I leave behind as clues to help tell the story of my vacation! Add where you think I went, or where you think I should go next!\n\n =^..^= ",
    "author": {
      "id": 15883188
    },
    "image": "https://uploads.scratch.mit.edu/projects/thumbnails/103343073.png",
    "history": {
      "created": "2016-03-29T13:25:43.000Z",
      "modified": "2016-04-01T15:58:33.000Z",
      "shared": "2016-04-01T15:58:33.000Z"
    },
    "stats": {
      "views": 1858,
      "loves": 156,
      "favorites": 123,
      "comments": 487
    },
    "remix": {
      "parent": null,
      "root": null
    }
  },
  ...
]

GET /users/<username>/projects/<project_id>

リクエスト例 {{テキストボックス|GET https://api.scratch.mit.edu/users/ScratchCat/projects/103530008 応答例

{
  "id": 103530008,
  "title": "Where in the World is Scratch Cat?",
  "description": "+ Beginning logo very much inspired by \"Where in the World is Carmen Sandiego?\"\n+ Thanks to @Griffpatch for the Scratch Cat walk cycle\n+ Walking-in-water sound effect from freesound.org\n+ Graphics made using Illustrator and Scratch Vector Editor\n+ Music: \"The Show Must Be Go\" - Kevin MacLeod (incompetech.com)",
  "instructions": "After 9 years, I've finally decided to take a vacation! But the big question is, where in the world have I gone??\n\nHelp tell the story of my vacation! Remix this project and add where you think I went, or where you think I should go next!\n\nAnd be sure to keep an eye on my profile, I'll be sharing clues to my vacation randomly throughout the day!  =^..^= ",
  "author": {
    "id": 15883188
  },
  "image": "https://uploads.scratch.mit.edu/projects/thumbnails/103530008.png",
  "history": {
    "created": "2016-03-30T19:44:12.000Z",
    "modified": "2016-03-31T18:54:19.000Z",
    "shared": "2016-03-31T18:54:19.000Z"
  },
  "stats": {
    "views": 15473,
    "loves": 1112,
    "favorites": 911,
    "comments": 1676
  },
  "remix": {
    "parent": null,
    "root": null
  }
}

廃止されたAPI

GET /comments/gallery/<studio_id>/

リクエスト例

GET https://scratch.mit.edu/site-api/comments/gallery/5342/

GET /comments/project/<project_id>/

リクエスト例

GET https://scratch.mit.edu/site-api/comments/project/103345354/

GET /comments/user/<username>/

リクエスト例

GET https://scratch.mit.edu/site-api/comments/user/thisandagain/

PUT /users/followers/<username>/add/

リクエスト例

PUT https://scratch.mit.edu/site-api/users/followers/abee/add/

PUT /users/lovers/<project_id>/add/

リクエスト例

PUT https://scratch.mit.edu/site-api/users/lovers/154080544/add/

PUT /users/favoriters/<project_id>/add/

リクエスト例

PUT https://scratch.mit.edu/site-api/users/favoriters/154080544/add/

varserver api

クラウド変数のAPI。

GET /<project_id>

リクエスト例

GET https://scratch.mit.edu/varserver/16805451

応答例

{
  "variables": [
    {
      "name": "☁ たたかれた回数",
      "value": "2546"
    }
  ],
  "lists": []
}

api/v1 API (使用不可)

GET /

リクエスト例

GET https://scratch.mit.edu/api/v1/

応答例

{
  "project": {
    "list_endpoint": "/api/v1/project/",
    "schema": "/api/v1/project/schema/"
  },
  "projecttag": {
    "list_endpoint": "/api/v1/projecttag/",
    "schema": "/api/v1/projecttag/schema/"
  },
  "tag": {
    "list_endpoint": "/api/v1/tag/",
    "schema": "/api/v1/tag/schema/"
  },
  "user": {
    "list_endpoint": "/api/v1/user/",
    "schema": "/api/v1/user/schema/"
  }
}

GET /project/<project_id>/

リクエスト例

GET https://scratch.mit.edu/api/v1/project/178040314

応答例

{
  "creator": {
    "username": "ScratchCat",
    "userprofile": {
      "bio": "Meow! Meow Meow purrrr lick meow!",
      "country": "United States",
      "status": "Getting ready for Scratch Camp! -------->\n\nMrow! \n=^..^="
    }
  },
  "datetime_shared": "2017-10-04T15:26:38",
  "description": "Scratch In Space Studio: https://scratch.mit.edu/studios/4333395/\nVideo Sensing Blocks Tutorial: https://www.youtube.com/watch?v=8vHEqVdWn08 \n\nArtwork: Created in Illustrator\nFont: Adam.CG Pro, Marker Felt\nMusic: \"Feelin Good\" by Kevin MacLeod (incompetech.com)\nSpace background on thumbnail found here: http://www.designblognews.com/wp-content/uploads/2017/03/space-vector-background-vector-graphic-constellation-1488398377k84gn.jpg\n",
  "favorite_count": "514",
  "id": 178040314,
  "love_count": "653",
  "resource_uri": "/api/v1/project/178040314/",
  "thumbnail": "//uploads.scratch.mit.edu/projects/thumbnails/178040314.png",
  "title": "Scratch in Space",
  "view_count": "13261"
}

GET /project/set/<project_ids>/

リクエスト例

GET https://scratch.mit.edu/api/v1/project/set/169147225;178040314/

応答例

{
  "objects": [
    {
      "creator": {
        "username": "ScratchCat",
        "userprofile": {
          "bio": "Meow! Meow Meow purrrr lick meow!",
          "country": "United States",
          "status": "Getting ready for Scratch Camp! -------->\n\nMrow! \n=^..^="
        }
      },
      "datetime_shared": "2017-10-04T15:26:38",
      "description": "Scratch In Space Studio: https://scratch.mit.edu/studios/4333395/\nVideo Sensing Blocks Tutorial: https://www.youtube.com/watch?v=8vHEqVdWn08 \n\nArtwork: Created in Illustrator\nFont: Adam.CG Pro, Marker Felt\nMusic: \"Feelin Good\" by Kevin MacLeod (incompetech.com)\nSpace background on thumbnail found here: http://www.designblognews.com/wp-content/uploads/2017/03/space-vector-background-vector-graphic-constellation-1488398377k84gn.jpg\n",
      "favorite_count": "514",
      "id": 178040314,
      "love_count": "653",
      "resource_uri": "/api/v1/project/178040314/",
      "thumbnail": "//uploads.scratch.mit.edu/projects/thumbnails/178040314.png",
      "title": "Scratch in Space",
      "view_count": "13261"
    },
    {
      "creator": {
        "username": "ScratchCat",
        "userprofile": {
          "bio": "Meow! Meow Meow purrrr lick meow!",
          "country": "United States",
          "status": "Getting ready for Scratch Camp! -------->\n\nMrow! \n=^..^="
        }
      },
      "datetime_shared": "2017-07-19T13:04:35",
      "description": "Lot's of hard work from @st19_galla to make this camp possible! \nMade in the Scratch Editor\n\nMusic: http://www.bensound.com\nCar based off of: https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0ahUKEwiv6sT9xdTUAhXBUyYKHfeMCt8QjRwIBw&url=http%3A%2F%2Fwww.freepik.com%2Ffree-vector%2Fvehicle-pack-in-front-position_1071157.htm&psig=AFQjCNENsyTUfpcknsgkoqqJcf3DSqD4GA&ust=1498327214778216",
      "favorite_count": "438",
      "id": 169147225,
      "love_count": "569",
      "resource_uri": "/api/v1/project/169147225/",
      "thumbnail": "//uploads.scratch.mit.edu/projects/thumbnails/169147225.png",
      "title": "Scratch Camp 2017 Teaser",
      "view_count": "9902"
    }
  ]
}

GET /user/<username>/

リクエスト例

GET https://scratch.mit.edu/api/v1/user/mres/

応答例

{
  "username": "mres",
  "userprofile": {
    "bio": "I'm a professor at the MIT Media Lab. But more important: I'm a member of the Scratch Team! \n\nCheck out my TED talk about Scratch: http://bit.ly/mres-ted-talk",
    "country": "United States",
    "status": "I just finished writing a book called \"Lifelong Kindergarten: Cultivating Creativity through Projects, Passion, Peers, and Play\". See lifelongkindergarten.net"
  }
}

GET /user/set/<usernames>/

現在使用できない。 リクエスト例

GET https://scratch.mit.edu/api/v1/user/set/ScratchCat;thisandagain/

応答例

{
  "objects": [
    {
      "username": "ScratchCat",
      "userprofile": ""
    },
    {
      "username": "thisandagain",
      "userprofile": ""
    }
  ]
}