Collect profile IDs
You are reading API v2 documentationStill using the Legacy API? Access the Legacy API documentation.
Which profiles do I have access to?
What's a profile?A profile is the Dailymotion channel that publishes videos. Your user account can manage one or more profiles. You'll need the
profile_idto upload videos, update settings, and more.Think of it as the API's equivalent of a "logged in as...". You'll use
profile_idin most API calls.
When you start using the Dailymotion API, the very first question you need to answer is: "Which profiles do I have access to?"
That's exactly what GET /me is for. Call it with your access token to retrieve the following:
- Your user ID: Your unique identifier on Dailymotion.
- Your profile IDs and names: The profile(s) you can manage.
Authentication
You need an access token with the account.read scope. If you don't have an access token yet, check out the Authentication guide.
Collect your profile IDs
Call /me to collect the IDs of the profiles you manage:
// Replace <YOUR_ACCESS_TOKEN> with your actual token
curl --request GET \
--url https://api.dailymotion.com/v2/me \
--header 'Authorization: Bearer <YOUR_ACCESS_TOKEN>'Response
{
"user_id": "xyz789",
"profiles": [
{
"profile_id": "x1y2z3",
"name": "officialdailymotion"
}
]
}Here's what each field means:
| Field | Description |
|---|---|
user_id | Your personal account ID. Think of it as your account number. |
profiles | The list of profiles you can manage. Each one has a profile_id and a name. |
profile_id | The unique ID of a profile you manage. You'll use it in most other API calls. |
name | The unique slug of the profile, used in URLs (ie. dailymotion.com/user/officialdailymotion). |
What to do with these IDs
Once you've called /me, save those values, you'll need them everywhere:
profile_idâ Use this to upload videos, manage playlists, update your profile settings, etc.user_idâ Use this to get your user account details.profile.nameâ Useful for display or filtering purposes.
Updated about 1 month ago
