# Using an API - Trakt.tv example

DevFeed: [Using an API - Trakt.tv example](<https://devfeed.tech/articles/using-an-api-trakt-tv-example-21780.md>)

Original publisher: [Read original article](<https://enoent.fr/posts/using-an-api-trakt-dot-tv-example/>)

Author: Marc Plano-Lesay

Published: 2014-10-08T22:06:00Z

Content type: tutorial

Language: en

Sources: [Marc Plano-Lesay](<https://devfeed.tech/sources/marc-plano-lesay.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [Ruby](<https://devfeed.tech/topics/ruby.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Code](<https://devfeed.tech/topics/code.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [api-architecture](<https://devfeed.tech/tags/api-architecture.md>), [article](<https://devfeed.tech/tags/article.md>), [code](<https://devfeed.tech/tags/code.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [json](<https://devfeed.tech/tags/json.md>), [rest](<https://devfeed.tech/tags/rest.md>), [ruby](<https://devfeed.tech/tags/ruby.md>)

## AI overview

This tutorial explains how applications can use website data through APIs, using Trakt.tv as an example. It introduces clients and servers, XML and JSON data formats, and REST concepts, with Ruby code for sending requests.

## Source excerpt

A lot of websites are generating data which could be really useful outside a web browser. Having the weather shown on your smartphone's lock-screen, the delay until your next bus... How can we use this from an application? This article will explain what's behind these hidden data flows, and how to use them. For this purpose, I'll use Trakt.tv as an example. If you don't know it: Trakt allows you to manage your movie/TV series library, keep track of watch progress, your ratings, comments... and see those of other people. Some code will show how to send such requests. It will be written in Ruby.