{
    "componentChunkName": "component---src-components-blog-post-jsx",
    "path": "/blog/visualizing-data-from-the-spotify-api/",
    "result": {"data":{"site":{"siteMetadata":{"author":"Monica Powell","siteUrl":"https://www.aboutmonica.com"}},"mdx":{"id":"5181f38d-6796-5ff5-a342-9d8696c42f2d","timeToRead":1,"body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Visualizing Data from the Spotify API\",\n  \"date\": \"2017-01-27T03:20:46.967Z\",\n  \"template\": \"post\",\n  \"draft\": false,\n  \"slug\": \"visualizing-data-from-the-spotify-api\",\n  \"category\": [\"tutorial\"],\n  \"tags\": [\"API\", \"Python\"],\n  \"description\": \"This post will go over how to connect with the Spotify API to collect information about artists using Python 3 and then create an infographic from the data Spotify returned. Below is a preview of…\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"figure\", null, mdx(\"p\", null, mdx(\"img\", {\n    parentName: \"p\",\n    \"src\": \"/media/visualizing-data-from-the-spotify-api-0.jpeg\",\n    \"alt\": null\n  }))), mdx(\"h3\", {\n    \"id\": \"visualizing-data-from-the-spotifyapi\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#visualizing-data-from-the-spotifyapi\",\n    \"aria-label\": \"visualizing data from the spotifyapi permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Visualizing Data from the Spotify\\xA0API\"), mdx(\"h4\", {\n    \"id\": \"how-to-quickly-visualize-stats-about-spotify-artists-with-infogram\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h4\",\n    \"href\": \"#how-to-quickly-visualize-stats-about-spotify-artists-with-infogram\",\n    \"aria-label\": \"how to quickly visualize stats about spotify artists with infogram permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"How to quickly visualize stats about Spotify artists with Infogr.am\"), mdx(\"p\", null, \"This post will go over how to connect with the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://medium.com/u/60a317bb70e4\"\n  }, \"Spotify\"), \" API to collect information about artists using Python 3 and then create an infographic from the data Spotify returned. Below is a preview of what we will be creating before we dive into the details.\"), mdx(\"h3\", {\n    \"id\": \"installing-requests\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#installing-requests\",\n    \"aria-label\": \"installing requests permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Installing Requests\"), mdx(\"p\", null, \"In order to play around with Spotify\\u2019s API in Python to gather data about artists, I installed \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://github.com/kennethreitz/requests\"\n  }, \"Requests: HTTP for Humans\"), \" via the terminal using: \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"$ pip install requests\"), \". Note: Requests is a library that can be used to make API calls and is not limited to use only with the Spotify API.\"), mdx(\"h3\", {\n    \"id\": \"spotifypy\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#spotifypy\",\n    \"aria-label\": \"spotifypy permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"spotify.py\"), mdx(\"p\", null, \"Note: You can explore documentation for the Spotify web API \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://developer.spotify.com/web-api/endpoint-reference/\"\n  }, \"here\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"# importing Requests: HTTP for Humans - installed in previous step.\\nimport requests\\n\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"# making a search request to the Spotify API to return\\n# any artist with 'lil' in their name. This request is\\n# limited to 50 artists in the US market.\\nresponse = requests.get('https://api.spotify.com/v1/search?query=lil&type=artist&limit=50&market=US')\\n\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"# converts the response from a string to a json object that can be parsed in Python.\\ndata = response.json()\\n\\n\\n\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"#visit this url: in order to see what the json object that is returned looks like:\\n# [https://api.spotify.com/v1/search?query=lil&type=artist&limit=50&market=US](https://api.spotify.com/v1/search?query=lil&type=artist&limit=50&market=US)\\n\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"#looking at the 'items' returned for 'artists' in this request.\\n\")), mdx(\"p\", null, \"The \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://developer.spotify.com/web-api/search-item/\"\n  }, \"Spotify API\"), \" describes items returned from search as:\"), mdx(\"figure\", null, mdx(\"p\", null, mdx(\"img\", {\n    parentName: \"p\",\n    \"src\": \"/media/visualizing-data-from-the-spotify-api-1.png\",\n    \"alt\": null\n  }))), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"lil_artists = data['artists']['items']\\n\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"# iterating through each artist and their items\\n# items contains the information we would like to receive for each artist.\\n\")), mdx(\"h4\", {\n    \"id\": \"artist-object-full-from-spotifyapi\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h4\",\n    \"href\": \"#artist-object-full-from-spotifyapi\",\n    \"aria-label\": \"artist object full from spotifyapi permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"artist object (full) (\", mdx(\"a\", {\n    parentName: \"h4\",\n    \"href\": \"https://developer.spotify.com/web-api/search-item/\"\n  }, \"from Spotify\\xA0API\"), \")\"), mdx(\"figure\", null, mdx(\"p\", null, mdx(\"img\", {\n    parentName: \"p\",\n    \"src\": \"/media/visualizing-data-from-the-spotify-api-2.png\",\n    \"alt\": null\n  }))), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"# I use two separate for loops because I want to return ALL of the artist names before returning popularity rankings.\\nfor artist in lil_artists:\\n # return the name of each artist found with 'search?query=lil&type=artist&limit=50&market=US'\\n\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"print(artist['name'])\\n\")), mdx(\"p\", null, \"Note: Spotify\\u2019s API will also return artists that had names that formerly matched query. For example: Boosie Badazz, G Herbo and Bow Wow no longer user \\u2018lil\\u2019 in their stage name however, they are included in this dataset.\"), mdx(\"p\", null, \"returns:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-bash\"\n  }, \"Lil Wayne\\nLil Yachty\\nLil Uzi Vert\\nLil Dicky\\nBoosie Badazz\\nLil Jon\\nKing Lil G\\nLil Durk\\nLil Jon & The East Side Boyz\\nLil Bibby\\nG Herbo\\nLil Rob\\nLil Reese\\nLil Keke\\nBow Wow\\nLil Scrappy\\nLil Wyte\\nLil Blood\\nLil Snupe\\nLil Mama\\nLil B\\nLil' Kim\\nLil Cuete\\nLil Phat\\nLil Debbie\\nLil Twist\\nLil Trill\\nLil AJ\\nLil Lonnie\\nLil Goofy\\nMr. Lil One\\nLil Flash\\nLil Kesh\\nLil Haiti\\nLil Silva\\nLil Rue\\nLil Cray\\nLil Eddie\\nLil Wayne, DJ Drama\\nLil Yase\\nLil Suzy\\nLil Mouse\\nLil C\\nLil Rick\\nLil Boom\\nLil June\\nLil E\\nLil Fate\\nLil' Flip\\n\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"# returns the popularity ranking associated with each of these artists\\n # view popularity definition above\\n\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"for artist in lil_artists:\\n print(artist['popularity'])\\n\")), mdx(\"p\", null, \"returns:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-bash\"\n  }, \"86\\n72\\n72\\n68\\n67\\n72\\n61\\n60\\n60\\n54\\n53\\n50\\n50\\n48\\n57\\n49\\n50\\n45\\n45\\n45\\n44\\n62\\n40\\n39\\n43\\n39\\n37\\n38\\n37\\n36\\n35\\n36\\n38\\n39\\n35\\n43\\n34\\n35\\n41\\n35\\n33\\n34\\n34\\n33\\n38\\n33\\n32\\n34\\n34\\n49\\n\\n\")), mdx(\"h3\", {\n    \"id\": \"visualize-data\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#visualize-data\",\n    \"aria-label\": \"visualize data permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Visualize Data\"), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Create a free \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://infogr.am/\"\n  }, \"Infogr.am\"), \" account.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Select \\u2018Chart or Graph\\u2019\")), mdx(\"figure\", null, mdx(\"p\", null, mdx(\"img\", {\n    parentName: \"p\",\n    \"src\": \"/media/visualizing-data-from-the-spotify-api-3.png\",\n    \"alt\": null\n  }))), mdx(\"p\", null, \"3\", \".\", \" Select the type of chart or graph you would like to create\"), mdx(\"p\", null, \"4\", \".\", \" The chart will be created with dummy data. Double click on the chart to pull up an black bar with an \\u2018edit\\u2019 button. Clicking edit will allow you to manipulate the data.\"), mdx(\"figure\", null, mdx(\"p\", null, mdx(\"img\", {\n    parentName: \"p\",\n    \"src\": \"/media/visualizing-data-from-the-spotify-api-4.png\",\n    \"alt\": null\n  }))), mdx(\"figure\", null, mdx(\"p\", null, mdx(\"img\", {\n    parentName: \"p\",\n    \"src\": \"/media/visualizing-data-from-the-spotify-api-5.png\",\n    \"alt\": null\n  }))), mdx(\"figure\", null, mdx(\"p\", null, mdx(\"img\", {\n    parentName: \"p\",\n    \"src\": \"/media/visualizing-data-from-the-spotify-api-6.png\",\n    \"alt\": null\n  }))), mdx(\"p\", null, \"5\", \".\", \" Here\\u2019s the dummy data that infogr.am automatically includes:\"), mdx(\"figure\", null, mdx(\"p\", null, mdx(\"img\", {\n    parentName: \"p\",\n    \"src\": \"/media/visualizing-data-from-the-spotify-api-7.png\",\n    \"alt\": null\n  }))), mdx(\"p\", null, \"6\", \".\", \" Copy and paste the output of:\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"print(artist['name'])\"), \" and\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"print(artist['popularity'])\")), mdx(\"figure\", null, mdx(\"p\", null, mdx(\"img\", {\n    parentName: \"p\",\n    \"src\": \"/media/visualizing-data-from-the-spotify-api-8.png\",\n    \"alt\": null\n  }))), mdx(\"p\", null, \"7\", \".\", \" The result is a beautiful graphic will all of the data that you pasted into infogr.am. Now you can play around with the visual aesthetic of the graphic.\"), mdx(\"h3\", {\n    \"id\": \"example-of-infograms-i-created-from-thisdata\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#example-of-infograms-i-created-from-thisdata\",\n    \"aria-label\": \"example of infograms i created from thisdata permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Example of Infogr.ams I created from this\\xA0data\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, \"With limit of 10 data points:\\n\", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://infogram.com/popularity-of-lil-artists-1g0n2ow9vygrp4y\"\n  }, \"https://infogram.com/popularity-of-lil-artists-1g0n2ow9vygrp4y\"))), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, \"With 50 data points:\\n\", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://infogram.com/copy-copy-popularity-of-lil-artists-1gk92ed3jlq3p16\"\n  }, \"https://infogram.com/copy-copy-popularity-of-lil-artists-1gk92ed3jlq3p16\")))));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{"items":[{"url":"#visualizing-data-from-the-spotifyapi","title":"Visualizing Data from the Spotify API","items":[{"url":"#how-to-quickly-visualize-stats-about-spotify-artists-with-infogram","title":"How to quickly visualize stats about Spotify artists with Infogr.am"}]},{"url":"#installing-requests","title":"Installing Requests"},{"url":"#spotifypy","title":"spotify.py","items":[{"url":"#artist-object-full-from-spotifyapi","title":"artist object (full) (from Spotify API)"}]},{"url":"#visualize-data","title":"Visualize Data"},{"url":"#example-of-infograms-i-created-from-thisdata","title":"Example of Infogr.ams I created from this data"}]},"frontmatter":{"title":"Visualizing Data from the Spotify API","date":"January 27, 2017","description":"This post will go over how to connect with the Spotify API to collect information about artists using Python 3 and then create an infographic from the data Spotify returned. Below is a preview of…","tags":["API","Python"]}},"allWebMentionEntry":{"edges":[]}},"pageContext":{"permalink":"https://www.aboutmonica.com/blog/visualizing-data-from-the-spotify-api/","slug":"/blog/visualizing-data-from-the-spotify-api/","prev":{"id":"4e89550e-6a96-58c4-bfcc-b6cce23e884d","frontmatter":{"title":"How to Change Repo Language in GitHub","category":["tutorial"],"date":"2017-02-07T14:17:11.000Z","slug":"how-to-change-repo-language-in-github","tags":["Git","GitHub","Linguistics","Tutorial"],"redirects":["/blog/2017/02/07/how-to-change-repo-language-in-github/"]},"fields":{"slug":"/blog/how-to-change-repo-language-in-github/"}},"next":{"id":"705b41f0-e095-58b7-bb43-df8128099712","frontmatter":{"title":"Hide Your API Keys","category":["tutorial"],"date":"2017-01-26T01:23:25.000Z","slug":"hide-your-api-keys","tags":["Python","API","Git/GitHub","Tutorial"],"redirects":["/blog/2017/01/26/hide-your-api-keys/"]},"fields":{"slug":"/blog/hide-your-api-keys/"}}}},
    "staticQueryHashes": ["1977783444","764694655"]}