If you've read some of our articles on this site, you might've noticed some (if not all) skip writing tests for the code we publish. This is only because there's so much you can write in an article before it turns into an essay. It's important to note that writing tests for your code is extremely important. When you're just playing around with …
Ruby API Tutorials
How To Use the Kairos API With Ruby on Rails
Social media websites have made face recognition pretty much a mundane thing nowadays. Facebook, Google, and others can easily recognize your face in a picture, making it easy for you to categorize and find them, build albums, etc. Building such an algorithm is no easy feat, which is one of the reasons you can find some services that provide this …
Build a Influencer Search App with Ruby on Rails
Internet search has gone way beyond the traditional web search. Thanks to other mediums of content shared over multiple online platforms, there is a new dimension to search. Influencer search is one such option. It is a smart strategy that helps in content marketing. It lets you find authority content written by influencers, and also gives you a …
How to use the Google Translate API with Ruby on Rails
Google, mostly known for its search engine and extremely popular email service, Gmail, also provides an incredible amount of APIs, which are extremely powerful and useful, no matter your needs. From image recognition to maps, their offering is almost unmatched. In this article, we'd like to take a look at the Google Translate API. Google's …
How To Use The AliExpress API With Ruby
AliExpress is one of the biggest online retailers in the world. As such, they have enormous amounts of data, ready to be used by applications you can develop yourself. They naturally provide an API so that developers can integrate into their platform. Among other things, you can search for products and get details about them, including shipping …
How to use the Instagram API with Ruby (in 4 Easy Steps)
Instagram is one of the most popular social networks around. With more than a billion users, it's safe to say there's some potential for integrations. We'd like to take a look at what can be achieved using Instagram's API. We're going to look into how to use the API, what information we can get from it, and how to use it with Ruby. How to Sign Up …
How to use the Twitter API with Ruby
Ruby is often thought of as a web language, due to the popularity of web frameworks like Ruby on Rails. Building websites and web backends using Ruby is certainly easy and the ecosystem is huge, making it ideal. But Ruby can of course be used for other purposes. In this article, we'd like to show you how to use a Twitter API and an example of how …
Using the Facebook API with Ruby to Build a COVID-19 Statistics Bot
The COVID-19 pandemic is still ongoing and it has brought along with itself a plethora of data, which is being made available by various APIs. In this article, we'd like to take advantage of one of them, and at the same time teach you how to build a simple Facebook Messenger Bot in the process. What we'll build We're going to build a Messenger …
How to use a Car Database API
Introduction Open data APIs provide us with the ability to query large data sets in meaningful ways, drill down to the data being requested in our library and present it to the caller with all relevant context. To get information about specific vehicles, we need to use a car data API. These APIs provide detailed information about vehicle brands …
How To Convert An Existing Rails App to an API
Ruby on Rails is a great framework to build web applications. A great share of websites and services use it nowadays, including GitHub, Airbnb and Shopify. Since its introduction 14 years ago, it has evolved into a mature, flexible and extremely powerful tool to develop entire web services. Moreover, the community around it is huge, meaning …
How To Use a News API with Ruby on Rails
RapidAPI provides a good deal of News APIs. From technology news to movie articles, you can most likely find what you need for your application here. In this article, we'll be focusing on the Hacker News API. This is an API for the well renowned Hacker News website, where technology and other different types of articles get submitted, voted and …
How to Build a Custom Search Engine with the Google Search API (with Ruby)
Google is nowadays the go-to default search engine for almost everyone (Sorry Bing!). Not only that, but their service offering ranges from email to web hosting, including AI services, maps, among many other things. You usually don't think of Google Search as being available to developers as an API. In fact, it's one of a plethora of APIs Google …
How To Create a Sports Website With Ruby (with the Sportpage Feeds API)
In this article, we'd like to show how you can build a simple scoreboard for the major US leagues using Ruby and the Sportspage Feeds API. An initial approach to this would require sourcing the data from multiple sports APIs (or scraping), which would, in turn, require writing code for different response types and putting them all together. …
Web Scraping with Ruby (and the ScrapingBee API)
Web Scraping is a term normally used for using an automated method of extracting data from a website. Web scraping is a way to programmatically access the content on websites that don't provide APIs. Keep in mind, scraping a website might be against their terms of service, so be sure to check those first. In this article, we'd like to give you a …
How to use the SendGrid API with Ruby
Email is a technology that has been part of everyday life for more than 50 years. It's still one of the most important methods of communication, even in the era of smartphones and apps. It provides an extremely reliable and secure way of messaging, from notifications to password resets. In some countries, email (or some form thereof) is even used …