Collect profile IDs

📘

You are reading API v2 documentation

Still 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_id to upload videos, update settings, and more.

Think of it as the API's equivalent of a "logged in as...". You'll use profile_id in 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:

FieldDescription
user_idYour personal account ID. Think of it as your account number.
profilesThe list of profiles you can manage. Each one has a profile_id and a name.
profile_idThe unique ID of a profile you manage. You'll use it in most other API calls.
nameThe 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:


Did this page help you?