NashTech Blog

Table of Contents

Are you brainstorming your next project? Below are some APIs that could kickstart your ideas. Take a look and let me know which one catches your eye the most

Fixer

Foreign exchange rates and currency conversion JSON API Fixer is a simple and lightweight API for current and historical foreign exchange (forex) rates.

Example:

GET https://data.fixer.io/api/latest
{
  "base": USD,
  "date": "2018-02-13",
  "rates": {
     "CAD": 1.260046,
     "CHF": 0.933058,
     "EUR": 0.806942,
     "GBP": 0.719154,
     [170 world currencies]
  }
}

Spoonacular

Our knowledge engineers spent years crafting our complex food ontology, which allows us to understand the relationships between ingredients, recipes, nutrition, allergens, and more. We understand “nut free” muffins can’t contain pecans (even if the recipe doesn’t mention “nuts” anywhere!) and we automatically determine that a recipe with Worcestershire sauce isn’t vegetarian (we’re looking at you, anchovies.)

Example:

https://api.spoonacular.com/recipes/findByIngredients?ingredients=apples,+flour,+sugar&number=2

Gnews

GNews API is a simple REST API with which you can search for current and historic news articles published by over 60,000 sources. With this news API, you can also collect the current top headlines articles based on the Google News ranking.

Example:

GET https://gnews.io/api/v4/top-headlines?category=general&apikey=API_KEY

{
  "totalArticles": 54904,
  "articles": [
    {
      "title": "Google's Pixel 7 and 7 Pro’s design gets revealed even more with fresh crisp renders",
      "description": "Now we have a complete image of what the next Google flagship phones will look like. All that's left now is to welcome them during their October announcement!",
      "content": "Google’s highly anticipated upcoming Pixel 7 series is just around the corner, scheduled to be announced on October 6, 2022, at 10 am EDT during the Made by Google event. Well, not that there is any lack of images showing the two new Google phones, b... [1419 chars]",
      "url": "https://www.phonearena.com/news/google-pixel-7-and-pro-design-revealed-even-more-fresh-renders_id142800",
      "image": "https://m-cdn.phonearena.com/images/article/142800-wide-two_1200/Googles-Pixel-7-and-7-Pros-design-gets-revealed-even-more-with-fresh-crisp-renders.jpg",
      "publishedAt": "2022-09-28T08:14:24Z",
      "source": {
        "name": "PhoneArena",
        "url": "https://www.phonearena.com"
      }
    }
  ]
}

Unsplash

Over 3 million free high-resolution images brought to you by the world’s most generous community of photographers.

Example:

GET /search/photos {
  "total": 133,
  "total_pages": 7,
  "results": [
    {
      "id": "eOLpJytrbsQ",
      "created_at": "2014-11-18T14:35:36-05:00",
      "width": 4000,
      "height": 3000,
      "color": "#A7A2A1",
      "blur_hash": "LaLXMa9Fx[D%~q%MtQM|kDRjtRIU",
      "likes": 286,
      "liked_by_user": false,
      "description": "A man drinking a coffee.",
      "user": {
        "id": "Ul0QVz12Goo",
        "username": "ugmonk",
        "name": "Jeff Sheldon",
        "first_name": "Jeff",
        "last_name": "Sheldon",
        "instagram_username": "instantgrammer",
        "twitter_username": "ugmonk",
        "portfolio_url": "http://ugmonk.com/",
        "profile_image": {
          "small": "https://images.unsplash.com/profile-1441298803695-accd94000cac?ixlib=rb-0.3.5&q=80&fm=jpg&crop=faces&cs=tinysrgb&fit=crop&h=32&w=32&s=7cfe3b93750cb0c93e2f7caec08b5a41",
          "medium": "https://images.unsplash.com/profile-1441298803695-accd94000cac?ixlib=rb-0.3.5&q=80&fm=jpg&crop=faces&cs=tinysrgb&fit=crop&h=64&w=64&s=5a9dc749c43ce5bd60870b129a40902f",
          "large": "https://images.unsplash.com/profile-1441298803695-accd94000cac?ixlib=rb-0.3.5&q=80&fm=jpg&crop=faces&cs=tinysrgb&fit=crop&h=128&w=128&s=32085a077889586df88bfbe406692202"
        },
        "links": {
          "self": "https://api.unsplash.com/users/ugmonk",
          "html": "http://unsplash.com/@ugmonk",
          "photos": "https://api.unsplash.com/users/ugmonk/photos",
          "likes": "https://api.unsplash.com/users/ugmonk/likes"
        }
      },
      "current_user_collections": [],
      "urls": {
        "raw": "https://images.unsplash.com/photo-1416339306562-f3d12fefd36f",
        "full": "https://hd.unsplash.com/photo-1416339306562-f3d12fefd36f",
        "regular": "https://images.unsplash.com/photo-1416339306562-f3d12fefd36f?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&s=92f3e02f63678acc8416d044e189f515",
        "small": "https://images.unsplash.com/photo-1416339306562-f3d12fefd36f?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&s=263af33585f9d32af39d165b000845eb",
        "thumb": "https://images.unsplash.com/photo-1416339306562-f3d12fefd36f?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=8aae34cf35df31a592f0bef16e6342ef"
      },
      "links": {
        "self": "https://api.unsplash.com/photos/eOLpJytrbsQ",
        "html": "http://unsplash.com/photos/eOLpJytrbsQ",
        "download": "http://unsplash.com/photos/eOLpJytrbsQ/download"
      }
    },
    // more photos ...
  ]
}

Dogapi

To get more than 10, and additional fields then be sure to use your API Key from the welcome email as the 'x-api-key' header, or ?api_key= query string parameter to access all the images and data.

Example Request URL

https://api.thecatapi.com/v1/images/0XYvRd7oD

Example Response

{
"id":"0XYvRd7oD",
"width":1204,"height":1445,
"url":"https://cdn2.thecatapi.com/images/0XYvRd7oD.jpg",
"breeds":[{
    "weight":{"imperial":"7  -  10","metric":"3 - 5"},
    "id":"abys","name":"Abyssinian",
    "temperament":"Active, Energetic, Independent, Intelligent, Gentle",
    "origin":"Egypt",
    "country_codes":"EG",
    "country_code":"EG",
    "life_span":"14 - 15",
    "wikipedia_url":"https://en.wikipedia.org/wiki/Abyssinian_(cat)"
}]

Jokeapi

JokeAPI is a REST API that serves uniformly and well formatted jokes. It can be used without any API token, membership, registration or payment. It supports a variety of filters that can be applied to get just the right jokes you need. The usage is very simple and similar to other RESTful APIs and requires only basic knowledge of HTTP requests and JSON, XML, YAML or plain text.

Example:

v2.jokeapi.dev/joke/Any?lang=ru

Restcountries

Retrieve detailed information about countries, including population, language, and more.

 

Opentrivia

The Open Trivia Database provides a completely free JSON API for use in programming projects. Use of this API does not require a API Key, just generate the URL below use it in your own application to retrieve trivia questions.

Pokeapi

All the Pokémon data you’ll ever need in one place, easily accessible through a modern free open-source RESTful API.

Example:

Catapi

Explore cat breeds, images, and additional information.

Example:

Newsapi

Stay updated with headlines and articles from various sources. Locate articles and breaking news headlines from news sources and blogs across the web with our JSON API

Example:

TVmaze

Enhance your website with television show information. Search through all the shows in our database by the show’s name. A fuzzy algorithm is used (with a fuzziness value of 2), meaning that shows will be found even if your query contains small typos. Results are returned in order of relevancy (best matches on top) and contain each show’s full information.

Example:

Opensea

Venture into the world of NFTs with access to a marketplace and related experiences.

Example:

https://api.opensea.io/api/v2/collections/{collection_slug}/stats

CloudConvert

Convert files across over 200 different formats, including audio, documents, and videos.

Example:

https://api.cloudconvert.com/v2/jobs

Marvel

Access information about Marvel’s vast library of comics.

Example:

https://gateway.marvel.com:443/v1/public/characters?apikey=apikey

IPapi

Gain insights about IP addresses with this informative service. The API can also help you to find the public IP address of a device. The API can be integrated in your application either on the server side or on the client side. The documentation below uses json format as an example. Other supported formats are xml, csv, yaml and jsonp.

Example:

Hope this sparks some inspiration for your project! Let me know which API intrigues you the most. Happy coding!

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Suggested Article

Scroll to Top