Dailymotion Data API Overview

Get introduced to the Dailymotion Data API and the learning outcomes of this course.

Overview

Dailymotion is a platform where users can upload and watch videos. Dailymotion API makes it easier for developers to integrate its functionalities into their applications and offers numerous endpoints to access different services provided by Dailymotion. The APIs that extract public data can be called without any authentication key, and user-specific data is accessed through the authentication process. Some objects of Dailymotion include videos, users, channels, and playlists. Each of these is identified through a unique ID. All these objects are connected with each other. For example, a user creates a channel, and then the videos are uploaded to it. After that, these videos can be grouped into a playlist.

Data API objects

Let's see some objects and their description from the Data API.

User object

The user object is responsible for the other objects. This object is used to show the information of the Dailymotion user account. This object also plays a vital role in the authentication of Dailymotion services.

Video object

The video object represents the main functionality of the Dailymotion services. We'll see different operations on the video object, like uploading and publishing a video, fetching a list of videos, editing a video, and adding videos to the watch later list.

Playlist object

A playlist object is used to maintain videos available on Dailymotion. An authenticated user can create a playlist and add videos to it. We'll perform different operations on a playlist object.

Channel object

A channel object represents the category of a video. When we create a video, we assign it to a channel based on its content. This helps Dailymotion to keep the videos categorized and tailor them according to the user's interest.

Supported methods and base URL

Dailymotion API uses HTTP methods to perform the intended tasks. The most commonly used and supported HTTP methods are GET, POST, and DELETE. The base URL for Dailymotion Data API is as follows:

https://api.dailymotion.com
Base URL

Response types

The Dailymotion Data APIs return the output in JSON format. A single result is shown as an item, and more than one result is shown in a list that contains the items.

Besides these items, a response list contains some other properties as well. The following table explains these properties:

Name

Type

Category

Description

page

Number

Required

This shows the page number returned in the response. The first page is returned by default, but we can pass a number (the maximum limit is 100).

limit

Number

Required

This is the number of items shown in a result per request. The limit can be passed in the parameter according to preference (the maximum limit is 100).

explicit

Boolean

Required

This is true if any of the items in the list has a flag marked as explicit.

total

Number

Required

This tells us an estimated number of total items in a particular call.

has_more

Boolean

Required

This tells us whether the next page exists or not.