Skip to content
Andrew Sliwinski edited this page May 2, 2016 · 1 revision

GET /search/projects

Returns projects matching the specified search terms in order of relevance and popularity. The lack of a query q string will result in all shared projects being returned.

Request URL

https://api.scratch.mit.edu/search/projects

https://api.scratch.mit.edu/search/projects?q=cat

https://api.scratch.mit.edu/search/projects?q=cat&limit=2

Example Request

curl -X GET "https://api.scratch.mit.edu/search/projects?limit=2"

Example Response

[
  {
    "id": 105745748,
    "title": "President Wars: The Bern Strikes Back",
    "description": "Credit to the presidential candidates, Mac Miller, Hilton, BazukaG (Myself), Au5, Fractal, Flux Pavillion.\n\n\n\n\n\n\n\nI KNOW THAT BERNIE ISN'T A COMMUNIST IT'S A JOKE",
    "instructions": "    ◀❤#Love❤▲★#Favorite★▲♛#Follow♛▶\n▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣\n*DISCLAIMER: None of this project is serious, and does not portray my views on the upcoming election.* \nI'm finally back to making projects!\n#FeelTheBern\nPress Green Flag a few times\nRun Tim: Approx. 4 minutes\n▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣\nPOLL FINISHED\nWINNER: PRESIDENT WARS II*\n*Popular vote does not determine what project I make next\n▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣\nUpdate 4/16/16:\n#Working on New Collaboration, details will be announced soon\n#@WillSmithFish has gone missing, presumably abducted by aliens\n#Might go back to making shorts again\n▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣\n",
    "image": "https://cdn2.scratch.mit.edu/get_image/project/105745748_480x360.png",
    "images": {
      "282x218": "https://cdn2.scratch.mit.edu/get_image/project/105745748_282x218.png?v=1461159557",
      "216x163": "https://cdn2.scratch.mit.edu/get_image/project/105745748_216x163.png?v=1461159557",
      "200x200": "https://cdn2.scratch.mit.edu/get_image/project/105745748_200x200.png?v=1461159557",
      "144x108": "https://cdn2.scratch.mit.edu/get_image/project/105745748_144x108.png?v=1461159557",
      "135x102": "https://cdn2.scratch.mit.edu/get_image/project/105745748_135x102.png?v=1461159557",
      "100x80": "https://cdn2.scratch.mit.edu/get_image/project/105745748_100x80.png?v=1461159557"
    },
    "history": {
      "created": "2016-04-16T22:55:24.000Z",
      "modified": "2016-04-20T13:39:17.000Z",
      "shared": "2016-04-16T23:05:06.000Z"
    },
    "stats": {
      "views": 12655,
      "loves": 1865,
      "favorites": 1574,
      "comments": 0
    }
  },
  {
    "id": 105680927,
    "title": "Sans Boss Fight",
    "description": "Toby Fox etc\nThis game IS POSSIBLE. I play test everything.\nSpent 2 days on this.\nQuick bug fix: Moved text back some layers to show how many items you have.\nQuick note: There is some different colored bones.I tried to make them as close to white as I could, because the platforms were to close, and they use a color script for when you touch the box you fall off.",
    "instructions": "Z - go through text / confirm\nArrow keys - Move and select\nUp arrow - hold to jump (Don't hold it while touching platforms or else you'll go through it, haven't been able to fix this glitch)\n",
    "image": "https://cdn2.scratch.mit.edu/get_image/project/105680927_480x360.png",
    "images": {
      "282x218": "https://cdn2.scratch.mit.edu/get_image/project/105680927_282x218.png?v=1461123718",
      "216x163": "https://cdn2.scratch.mit.edu/get_image/project/105680927_216x163.png?v=1461123718",
      "200x200": "https://cdn2.scratch.mit.edu/get_image/project/105680927_200x200.png?v=1461123718",
      "144x108": "https://cdn2.scratch.mit.edu/get_image/project/105680927_144x108.png?v=1461123718",
      "135x102": "https://cdn2.scratch.mit.edu/get_image/project/105680927_135x102.png?v=1461123718",
      "100x80": "https://cdn2.scratch.mit.edu/get_image/project/105680927_100x80.png?v=1461123718"
    },
    "history": {
      "created": "2016-04-16T04:04:27.000Z",
      "modified": "2016-04-20T03:41:58.000Z",
      "shared": "2016-04-17T23:01:58.000Z"
    },
    "stats": {
      "views": 10400,
      "loves": 341,
      "favorites": 339,
      "comments": 0
    }
  }
]
Clone this wiki locally