Table of content

Update video metadata (with Python SDK)

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.

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. Update metadata

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