Play with some Unique and Fun APIs
Tags: webdev, jokes, programming
Published: 2021-05-10 11:04:00

<h1><strong>Introduction</strong></h1>

<p>The term API is an acronym, and it stands for &ldquo;<strong>Application Programming Interface</strong>&rdquo;.</p>

<blockquote>
<p style="text-align:center">Think of an API like a menu in a restaurant. The menu provides a list of dishes you can order, along with a description of each dish. When you specify what menu items you want, the restaurant&rsquo;s kitchen does the work and provides you with some finished dishes. You don&rsquo;t know exactly how the restaurant prepares that food, and you don&rsquo;t really need to.</p>
</blockquote>

<p>Let&#39;s explore some cool, unique and fun APIs today.</p>

<h1><strong>Removal API</strong></h1>

<p>So, the first API we are going to explore is from&nbsp;<a href="https://removal.ai"><strong>removal.ai</strong></a>. Removal.ai makes it easy for us to remove backgrounds from our images and the final image we get is more clean and good. It&#39;s simple to use using its website where we just have to drag and drop our image and it provides us our resultant image.&nbsp;</p>

<p>Now, this website gives us API access also. We just need an <strong>API Key </strong>and we can use the below cURL command to remove background without going on its website.</p>

<pre>
<code class="language-bash">$ curl -L -X POST "https://api.removal.ai/3.0/remove"
-H "Rm-Token: YOUR_API_KEY"
-F "image_file=@path/to/image.jpg"
-F "get_file=1" -o transparent_image.png</code></pre>

<p>You can get API Key from <a href="https://removal.ai/my-account">here </a>and read the entire API documentation <a href="https://removal.ai/api-documentation/">here</a>.</p>

<h1><strong>Random Jokes API</strong></h1>

<p><a href="https://icanhazdadjoke.com/"><strong>icanhazdadjoke.com</strong></a>&nbsp;is the largest selection of dad jokes on the internet. Now supporting many different integrations to ensure you can access the dad jokes that you need wherever you are. You can add it to Slack or even Alexa. It provides us API to fetch&nbsp;a random joke, a specific joke, or searching for jokes in a variety of formats. The best thing is we don&#39;t need to authenticate ourselves for using the API.</p>

<p>We can fetch data in different ways. The basic cURL command to fetch joke in JSON format is :&nbsp;</p>

<pre>
<code class="language-bash">$ curl -H "Accept: application/json" https://icanhazdadjoke.com/j/R7UfaahVfFd</code></pre>

<p>You can learn more about it <a href="https://icanhazdadjoke.com/api">here</a>.</p>

<h1><strong>Marvel API</strong></h1>

<p>The next API we are going to discuss is from <a href="https://developer.marvel.com/"><strong>Marvel</strong></a>. <em>Marvel fans must like this post now</em>. It allows developers everywhere to access information about Marvel&#39;s vast library of comics&mdash;from what&#39;s coming up, to 70 years ago. This&nbsp;tool will help developers everywhere create amazing, uncanny and incredible web sites and applications using data from the 70-plus years of the Marvel age of comics.</p>

<p>Just <a href="https://developer.marvel.com/signup">signup</a> for an account and get an API <a href="https://developer.marvel.com/account">here</a>. We get a huge API access ranging from characters to series and comics and everything. Just read the API documentation <a href="https://developer.marvel.com/documentation/getting_started">here</a> and start exploring this API as much you can (<em>of course, Marvel fans must do</em>).</p>

<h1><strong>Free Meal API</strong></h1>

<p>This API comes from <a href="https://www.themealdb.com/"><strong>TheMealDB.com</strong></a>&nbsp;where we can search meals using name, area, categories and ingredients.&nbsp;The API and site will always remain free at point of access.&nbsp;You can use the <strong>Test API Key &quot;1&quot; </strong>during development of your app or for educational use.&nbsp;However you must apply for a key a production API key via email if releasing publicly. You must explore this API <a href="https://www.themealdb.com/api.php">here</a> if you are a foodie..&nbsp;</p>

<h1><strong>Fun Translations API</strong></h1>

<p><a href="https://api.funtranslations.com/">Funtranslations API</a> gives access to the full set of translations available at funtranslations.com so that you can integrate them in your workflow or an app. wh</p>

<p>The base endpoint is :&nbsp;</p>

<pre>
<code class="language-bash">https://api.funtranslations.com/translate/</code></pre>

<p>For public calls you <strong>don&#39;t need to pass any API Key</strong>.&nbsp;Just invoke the endpoint (see examples <a href="https://funtranslations.com/api/">here</a>). However, for paid subscriptions you need to pass the API key in the header as <em>X-FunTranslations-Api-Secret</em>.&nbsp;</p>

<h1><strong>NASA API</strong></h1>

<p>Outer space has always been fascinating to humans.&nbsp;The objective of this API is to make NASA data, including imagery, eminently accessible to application developers. The <a href="https://api.nasa.gov/"><strong>api.nasa.gov</strong></a> catalog is growing.&nbsp;<br />
You <strong>do not need to authenticate</strong>&nbsp;in order to explore the NASA data. However, if you will be intensively using the APIs to, say, support a mobile application, then you should sign up for a&nbsp;<a href="https://api.nasa.gov/#signUp">NASA developer key</a>. You can learn more about the APIs <a href="https://api.nasa.gov/#browseAPI">here</a>.</p>

<h1><strong>ADVICE SLIP</strong></h1>

<p><a href="https://api.adviceslip.com/">Advice Slip JSON API</a>&nbsp;comes from the <a href="https://adviceslip.com/">AdviceSlip.com</a>&nbsp;where we can get random advice, get advice by id or search an advice. It is completely free and can be helpful if you want to generate advice. Learn more about this <a href="https://api.adviceslip.com/">here</a>.</p>

<h1><strong>Conclusion</strong></h1>

<p>I hope you liked the above fun APIs and will surely check them out someday.&nbsp;You can also check out this&nbsp;<a href="https://github.com/public-apis/public-apis">github repository</a>&nbsp;for an extensive list of public APIs.</p>