{"id":585,"date":"2020-08-11T21:59:12","date_gmt":"2020-08-11T21:59:12","guid":{"rendered":"http:\/\/sniplyio.wpengine.com\/?p=585"},"modified":"2021-04-05T16:00:48","modified_gmt":"2021-04-05T16:00:48","slug":"beginners-guide-to-web-apis","status":"publish","type":"post","link":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/","title":{"rendered":"Beginners Guide to Web APIs"},"content":{"rendered":"\n<p><strong>Web API<\/strong> \u2013 these days, it\u2019s a term that startups throw around all the time. Whether it\u2019s machine learning, photo editing, taking credit card payments, or creating Sniply links, there\u2019s an API for that. But what does Web API actually mean? And why should you even care what it means?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Web API For Beginners<\/strong><\/h2>\n\n\n\n<p>The acronym API actually stands for <strong>\u201cApplication Programming Interface\u201d<\/strong>, but it basically just means that it\u2019s a way that an external programmer can interact with a piece of software without caring about the inside implementation details. Understanding APIs and how they work is a powerful skill for web development and application creation because you can build on top of software to make something that performs some advanced functionality without writing major libraries of code.<\/p>\n\n\n\n<p>It\u2019s like when you drive your car: you can turn the steering wheel, step on the gas, or slam it into reverse but (unless you\u2019re an automotive engineer) you don\u2019t really know (or care) how it works on the inside. This means that you can ignore a lot of the complexity that happens inside the car and just enjoy the drive. In the same way, a software developer can use an API to get all of the functionality of a piece of software without having to look at all of the internal complexities of a problem, even if they are a beginner with only a rudimentary understanding of API basics. Now you can begin to see why people are so eager to learn how to use APIs to harness everything internet APIs have to offer.<\/p>\n\n\n\n<p>APIs are particularly popular online, where programmers can access functionality over the internet. <strong>Web APIs<\/strong> are even more powerful than a simple API that runs on a single machine (like the API to a library of code) because all of a sudden, you can have thousands of computers doing calculations the instant that an API call gets made. For example, you can access the <a href=\"http:\/\/sumanrs.wordpress.com\/2012\/04\/14\/youtube-yearly-costs-for-storagenetworking-estimate\/\">76 million GB (ie. 76 PB)<\/a> stored in Youtube\u2019s database annually through <a href=\"https:\/\/developers.google.com\/youtube\/\">their web API<\/a>. This is exactly what we did when we developed <a href=\"http:\/\/covr.fm\/\">covr.fm<\/a>, one of our side projects \u2013 feel free to check it out if you like cover music \ud83d\ude09&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A Basic Guide to Sniply\u2019s Web API<\/h2>\n\n\n\n<p>Online APIs work by providing a set of URLs to developers where they can send data to a website\u2019s servers. The servers accept the data, perform any necessary calculations and data crunching, and provide a response to the web developer. For example, using the Sniply API, you can automatically create customizable Sniply links without having to manually click through the Sniply creator over and over again. This is really handy in two cases: when you are creating a large number of links or when you are creating links on behalf of someone else. If you would like to create something similar to Sniply to share your message (or your users\u2019 messages), using the Sniply API will allow you to access all of the power of Sniply in as little as a single line of code. In fact, I\u2019ll even write the Pythonic code for accessing Sniply\u2019s API right here:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sniply_link = requests.post(\n    \"http:\/\/snip.ly\/api\/snips\/\",\n    data = {\n        \"url\":\"snip.ly\",\n        \"message\":\"Sniply is the best!\"\n    },\n    headers = {\n        \"Authorization\":\"Bearer my_access_token\"\n    }\n)\n<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>If you run that code with a valid access token, you will create a Sniply link that looks just like <a href=\"http:\/\/snip.ly\/7dS\">this one<\/a>! Cool right? It\u2019s really simple and I\u2019d gladly walk you through the basic steps to integrate Sniply into your app or workflow. To get access to the API or to experience a quick Sniply API tutorial for beginners, send me an email at nigel@snip.ly and I would be happy to get you started developing something awesome! If you would like to take a peek at our supporting documentation, you can look at the technical information at <a href=\"https:\/\/snip.ly\/api\/v2\/\">https:\/\/snip.ly\/api\/v2\/<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web API \u2013 these days, it\u2019s a term that startups throw around all the time. Whether it\u2019s machine learning, photo editing, taking credit card payments, or creating Sniply links, there\u2019s an API for that. But what does Web API actually mean? And why should you even care what it means? Web API For Beginners The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":586,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[10,12],"tags":[],"class_list":["post-585","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-growth-marketing","category-sniply-in-action"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>A Quick and Simple Beginners Guide to Web APIs - Sniply<\/title>\n<meta name=\"description\" content=\"You don&#039;t have to be an expert web developer to benefit from web APIs. Learn about the basics of web APIs and see how easy to use the Sniply API is.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Quick and Simple Beginners Guide to Web APIs - Sniply\" \/>\n<meta property=\"og:description\" content=\"You don&#039;t have to be an expert web developer to benefit from web APIs. Learn about the basics of web APIs and see how easy to use the Sniply API is.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/\" \/>\n<meta property=\"og:site_name\" content=\"Sniply\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sniplyapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-11T21:59:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-05T16:00:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sniply.io\/wp-content\/uploads\/2020\/08\/web20.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/sniply.io\/#\/schema\/person\/57daf445e89e8f0396e748bde18826fd\"},\"headline\":\"Beginners Guide to Web APIs\",\"datePublished\":\"2020-08-11T21:59:12+00:00\",\"dateModified\":\"2021-04-05T16:00:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/\"},\"wordCount\":647,\"publisher\":{\"@id\":\"https:\/\/sniply.io\/#organization\"},\"image\":{\"@id\":\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/sniply.io\/wp-content\/uploads\/2020\/08\/web20.png\",\"articleSection\":[\"Growth Marketing\",\"Sniply In Action\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/\",\"url\":\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/\",\"name\":\"A Quick and Simple Beginners Guide to Web APIs - Sniply\",\"isPartOf\":{\"@id\":\"https:\/\/sniply.io\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/sniply.io\/wp-content\/uploads\/2020\/08\/web20.png\",\"datePublished\":\"2020-08-11T21:59:12+00:00\",\"dateModified\":\"2021-04-05T16:00:48+00:00\",\"description\":\"You don't have to be an expert web developer to benefit from web APIs. Learn about the basics of web APIs and see how easy to use the Sniply API is.\",\"breadcrumb\":{\"@id\":\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#primaryimage\",\"url\":\"https:\/\/sniply.io\/wp-content\/uploads\/2020\/08\/web20.png\",\"contentUrl\":\"https:\/\/sniply.io\/wp-content\/uploads\/2020\/08\/web20.png\",\"width\":1440,\"height\":400,\"caption\":\"beginners guide to web APIs\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sniply.io\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Beginners Guide to Web APIs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sniply.io\/#website\",\"url\":\"https:\/\/sniply.io\/\",\"name\":\"Sniply\",\"description\":\"Add a call-to-action to every link you share\",\"publisher\":{\"@id\":\"https:\/\/sniply.io\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sniply.io\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/sniply.io\/#organization\",\"name\":\"Sniply\",\"url\":\"https:\/\/sniply.io\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sniply.io\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/sniply.io\/wp-content\/uploads\/2014\/07\/logo.jpg\",\"contentUrl\":\"https:\/\/sniply.io\/wp-content\/uploads\/2014\/07\/logo.jpg\",\"width\":700,\"height\":400,\"caption\":\"Sniply\"},\"image\":{\"@id\":\"https:\/\/sniply.io\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/sniplyapp\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/sniply.io\/#\/schema\/person\/57daf445e89e8f0396e748bde18826fd\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sniply.io\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/528505c27330778fac74abe91f3fce7b9dda40f4bed59de369e2cc93fe0098be?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/528505c27330778fac74abe91f3fce7b9dda40f4bed59de369e2cc93fe0098be?s=96&d=mm&r=g\",\"caption\":\"admin\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A Quick and Simple Beginners Guide to Web APIs - Sniply","description":"You don't have to be an expert web developer to benefit from web APIs. Learn about the basics of web APIs and see how easy to use the Sniply API is.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/","og_locale":"en_US","og_type":"article","og_title":"A Quick and Simple Beginners Guide to Web APIs - Sniply","og_description":"You don't have to be an expert web developer to benefit from web APIs. Learn about the basics of web APIs and see how easy to use the Sniply API is.","og_url":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/","og_site_name":"Sniply","article_publisher":"https:\/\/www.facebook.com\/sniplyapp","article_published_time":"2020-08-11T21:59:12+00:00","article_modified_time":"2021-04-05T16:00:48+00:00","og_image":[{"width":1440,"height":400,"url":"https:\/\/sniply.io\/wp-content\/uploads\/2020\/08\/web20.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#article","isPartOf":{"@id":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/"},"author":{"name":"admin","@id":"https:\/\/sniply.io\/#\/schema\/person\/57daf445e89e8f0396e748bde18826fd"},"headline":"Beginners Guide to Web APIs","datePublished":"2020-08-11T21:59:12+00:00","dateModified":"2021-04-05T16:00:48+00:00","mainEntityOfPage":{"@id":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/"},"wordCount":647,"publisher":{"@id":"https:\/\/sniply.io\/#organization"},"image":{"@id":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#primaryimage"},"thumbnailUrl":"https:\/\/sniply.io\/wp-content\/uploads\/2020\/08\/web20.png","articleSection":["Growth Marketing","Sniply In Action"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/","url":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/","name":"A Quick and Simple Beginners Guide to Web APIs - Sniply","isPartOf":{"@id":"https:\/\/sniply.io\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#primaryimage"},"image":{"@id":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#primaryimage"},"thumbnailUrl":"https:\/\/sniply.io\/wp-content\/uploads\/2020\/08\/web20.png","datePublished":"2020-08-11T21:59:12+00:00","dateModified":"2021-04-05T16:00:48+00:00","description":"You don't have to be an expert web developer to benefit from web APIs. Learn about the basics of web APIs and see how easy to use the Sniply API is.","breadcrumb":{"@id":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#primaryimage","url":"https:\/\/sniply.io\/wp-content\/uploads\/2020\/08\/web20.png","contentUrl":"https:\/\/sniply.io\/wp-content\/uploads\/2020\/08\/web20.png","width":1440,"height":400,"caption":"beginners guide to web APIs"},{"@type":"BreadcrumbList","@id":"https:\/\/sniply.io\/blog\/beginners-guide-to-web-apis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sniply.io\/"},{"@type":"ListItem","position":2,"name":"Beginners Guide to Web APIs"}]},{"@type":"WebSite","@id":"https:\/\/sniply.io\/#website","url":"https:\/\/sniply.io\/","name":"Sniply","description":"Add a call-to-action to every link you share","publisher":{"@id":"https:\/\/sniply.io\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sniply.io\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/sniply.io\/#organization","name":"Sniply","url":"https:\/\/sniply.io\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sniply.io\/#\/schema\/logo\/image\/","url":"https:\/\/sniply.io\/wp-content\/uploads\/2014\/07\/logo.jpg","contentUrl":"https:\/\/sniply.io\/wp-content\/uploads\/2014\/07\/logo.jpg","width":700,"height":400,"caption":"Sniply"},"image":{"@id":"https:\/\/sniply.io\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sniplyapp"]},{"@type":"Person","@id":"https:\/\/sniply.io\/#\/schema\/person\/57daf445e89e8f0396e748bde18826fd","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sniply.io\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/528505c27330778fac74abe91f3fce7b9dda40f4bed59de369e2cc93fe0098be?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/528505c27330778fac74abe91f3fce7b9dda40f4bed59de369e2cc93fe0098be?s=96&d=mm&r=g","caption":"admin"}}]}},"_links":{"self":[{"href":"https:\/\/sniply.io\/wp-json\/wp\/v2\/posts\/585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sniply.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sniply.io\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sniply.io\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sniply.io\/wp-json\/wp\/v2\/comments?post=585"}],"version-history":[{"count":0,"href":"https:\/\/sniply.io\/wp-json\/wp\/v2\/posts\/585\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sniply.io\/wp-json\/wp\/v2\/media\/586"}],"wp:attachment":[{"href":"https:\/\/sniply.io\/wp-json\/wp\/v2\/media?parent=585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sniply.io\/wp-json\/wp\/v2\/categories?post=585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sniply.io\/wp-json\/wp\/v2\/tags?post=585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}