To enjoy all our Developer Portal features, please switch to Microsoft Edge, Google Chrome or Mozilla Firefox browsers.

Updating video metadata with Dailymotion's Python SDK

Posted on by Purnadi Kertonugroho

Dailymotion's Python SDK allows you to update your video metadata once you uploaded them on our platform. Follow this quick tutorial to learn how to programmatically modify this information in a few lines of code.

2 steps to update your video metadata

1. Authentication

  • First you need to import our Python SDK

import importlib
_DAILYMOTION = importlib.import_module("dailymotion-sdk-python.dailymotion")

  • Then connect to Dailymotion by providing your API key and API secret

_DM = _DAILYMOTION.Dailymotion()  
        info={"username": _USERNAME, "password": _PASSWORD},


2. Metadata updating

You can now update your video metadata using our Python SDK. Use the HTTP POST method to modify the metadata by requesting to the appropriate URL.

For example, this is how to edit the title of a video by posting to /video/<VIDEO_ID>:

result ="/video/<xid>", {"title": "My new title"})

Read our article explaining How to Upload Videos on Dailymotion via an Excel file

Posted in Data API
Tagged Python SDK and SDK