get youtube channel subscribers via youtube API
I'm trying to use youtube api to get a list of subscribers to a channel i own then check a user's Email to find out if he's subscribed or not. Now I'm using this page to test my first step https://developers.google.com/youtube/v3/docs/subscriptions/list and inserting data as follows and all other fields are empty
As you can see I get this error and the part label contains an error while the value is "snippet". how to solve this problem and if solved as I need is it available to get a list of all users' emails subscribed to my channel as a list?
youtube youtube-api subscriber
add a comment |
I'm trying to use youtube api to get a list of subscribers to a channel i own then check a user's Email to find out if he's subscribed or not. Now I'm using this page to test my first step https://developers.google.com/youtube/v3/docs/subscriptions/list and inserting data as follows and all other fields are empty
As you can see I get this error and the part label contains an error while the value is "snippet". how to solve this problem and if solved as I need is it available to get a list of all users' emails subscribed to my channel as a list?
youtube youtube-api subscriber
400 Bad Request - Show headers - { "error": { "errors": [ { "domain": "youtube.part", "reason": "unknownPart", "message": "subscriberSnippet", "locationType": "parameter", "location": "part" } ], "code": 400, "message": "subscriberSnippet" } }
– Sakthi
Feb 26 '15 at 12:16
add a comment |
I'm trying to use youtube api to get a list of subscribers to a channel i own then check a user's Email to find out if he's subscribed or not. Now I'm using this page to test my first step https://developers.google.com/youtube/v3/docs/subscriptions/list and inserting data as follows and all other fields are empty
As you can see I get this error and the part label contains an error while the value is "snippet". how to solve this problem and if solved as I need is it available to get a list of all users' emails subscribed to my channel as a list?
youtube youtube-api subscriber
I'm trying to use youtube api to get a list of subscribers to a channel i own then check a user's Email to find out if he's subscribed or not. Now I'm using this page to test my first step https://developers.google.com/youtube/v3/docs/subscriptions/list and inserting data as follows and all other fields are empty
As you can see I get this error and the part label contains an error while the value is "snippet". how to solve this problem and if solved as I need is it available to get a list of all users' emails subscribed to my channel as a list?
youtube youtube-api subscriber
youtube youtube-api subscriber
asked Jan 28 '15 at 10:01
PHP UserPHP User
74021338
74021338
400 Bad Request - Show headers - { "error": { "errors": [ { "domain": "youtube.part", "reason": "unknownPart", "message": "subscriberSnippet", "locationType": "parameter", "location": "part" } ], "code": 400, "message": "subscriberSnippet" } }
– Sakthi
Feb 26 '15 at 12:16
add a comment |
400 Bad Request - Show headers - { "error": { "errors": [ { "domain": "youtube.part", "reason": "unknownPart", "message": "subscriberSnippet", "locationType": "parameter", "location": "part" } ], "code": 400, "message": "subscriberSnippet" } }
– Sakthi
Feb 26 '15 at 12:16
400 Bad Request - Show headers - { "error": { "errors": [ { "domain": "youtube.part", "reason": "unknownPart", "message": "subscriberSnippet", "locationType": "parameter", "location": "part" } ], "code": 400, "message": "subscriberSnippet" } }
– Sakthi
Feb 26 '15 at 12:16
400 Bad Request - Show headers - { "error": { "errors": [ { "domain": "youtube.part", "reason": "unknownPart", "message": "subscriberSnippet", "locationType": "parameter", "location": "part" } ], "code": 400, "message": "subscriberSnippet" } }
– Sakthi
Feb 26 '15 at 12:16
add a comment |
1 Answer
1
active
oldest
votes
get a list of subscribers to a channel i own
If you want check the subscribers of your YouTube channel you need to use the resource subscription.list with these fields:
part: subscriberSnippet
mySubscribers: true
And authenticate with OAuth2.0.
then check a user's Email
Email is a private information, you can get it only if the owner of the channel give you the permission.
Changed "part" to "subscriberSnippet" and got this error ""message": "Incompatible parameters specified in the request." and the "part" label color is red
– PHP User
Jan 28 '15 at 15:51
@Yasser remove mine to true and your channelId, just follow the fields i indicate in my answer
– mpgn
Jan 28 '15 at 16:03
But this gets users (emails are not included and returned only 4 members) of my channel when I send the request I want the user to enter his email Address then he/she will be redirected to a different page if he had subscribed already to my channel so I think the channel id should be passed
– PHP User
Jan 28 '15 at 16:16
And I'm the owner of the channel
– PHP User
Jan 28 '15 at 16:27
@Yasser this answer is correct, you'll not be able to get the user's email from the API. I think the only way to do what you want is to get the list of the channels that the user subscribes to (using oauth to authenticate the user and than setting 'mine' to true) and check if your channel appears in the list returned
– Vinicius Pinto
Jan 28 '15 at 19:38
|
show 3 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f28189354%2fget-youtube-channel-subscribers-via-youtube-api%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
get a list of subscribers to a channel i own
If you want check the subscribers of your YouTube channel you need to use the resource subscription.list with these fields:
part: subscriberSnippet
mySubscribers: true
And authenticate with OAuth2.0.
then check a user's Email
Email is a private information, you can get it only if the owner of the channel give you the permission.
Changed "part" to "subscriberSnippet" and got this error ""message": "Incompatible parameters specified in the request." and the "part" label color is red
– PHP User
Jan 28 '15 at 15:51
@Yasser remove mine to true and your channelId, just follow the fields i indicate in my answer
– mpgn
Jan 28 '15 at 16:03
But this gets users (emails are not included and returned only 4 members) of my channel when I send the request I want the user to enter his email Address then he/she will be redirected to a different page if he had subscribed already to my channel so I think the channel id should be passed
– PHP User
Jan 28 '15 at 16:16
And I'm the owner of the channel
– PHP User
Jan 28 '15 at 16:27
@Yasser this answer is correct, you'll not be able to get the user's email from the API. I think the only way to do what you want is to get the list of the channels that the user subscribes to (using oauth to authenticate the user and than setting 'mine' to true) and check if your channel appears in the list returned
– Vinicius Pinto
Jan 28 '15 at 19:38
|
show 3 more comments
get a list of subscribers to a channel i own
If you want check the subscribers of your YouTube channel you need to use the resource subscription.list with these fields:
part: subscriberSnippet
mySubscribers: true
And authenticate with OAuth2.0.
then check a user's Email
Email is a private information, you can get it only if the owner of the channel give you the permission.
Changed "part" to "subscriberSnippet" and got this error ""message": "Incompatible parameters specified in the request." and the "part" label color is red
– PHP User
Jan 28 '15 at 15:51
@Yasser remove mine to true and your channelId, just follow the fields i indicate in my answer
– mpgn
Jan 28 '15 at 16:03
But this gets users (emails are not included and returned only 4 members) of my channel when I send the request I want the user to enter his email Address then he/she will be redirected to a different page if he had subscribed already to my channel so I think the channel id should be passed
– PHP User
Jan 28 '15 at 16:16
And I'm the owner of the channel
– PHP User
Jan 28 '15 at 16:27
@Yasser this answer is correct, you'll not be able to get the user's email from the API. I think the only way to do what you want is to get the list of the channels that the user subscribes to (using oauth to authenticate the user and than setting 'mine' to true) and check if your channel appears in the list returned
– Vinicius Pinto
Jan 28 '15 at 19:38
|
show 3 more comments
get a list of subscribers to a channel i own
If you want check the subscribers of your YouTube channel you need to use the resource subscription.list with these fields:
part: subscriberSnippet
mySubscribers: true
And authenticate with OAuth2.0.
then check a user's Email
Email is a private information, you can get it only if the owner of the channel give you the permission.
get a list of subscribers to a channel i own
If you want check the subscribers of your YouTube channel you need to use the resource subscription.list with these fields:
part: subscriberSnippet
mySubscribers: true
And authenticate with OAuth2.0.
then check a user's Email
Email is a private information, you can get it only if the owner of the channel give you the permission.
edited Jun 13 '16 at 8:18
Sufian
4,83473699
4,83473699
answered Jan 28 '15 at 12:11
mpgnmpgn
5,08374884
5,08374884
Changed "part" to "subscriberSnippet" and got this error ""message": "Incompatible parameters specified in the request." and the "part" label color is red
– PHP User
Jan 28 '15 at 15:51
@Yasser remove mine to true and your channelId, just follow the fields i indicate in my answer
– mpgn
Jan 28 '15 at 16:03
But this gets users (emails are not included and returned only 4 members) of my channel when I send the request I want the user to enter his email Address then he/she will be redirected to a different page if he had subscribed already to my channel so I think the channel id should be passed
– PHP User
Jan 28 '15 at 16:16
And I'm the owner of the channel
– PHP User
Jan 28 '15 at 16:27
@Yasser this answer is correct, you'll not be able to get the user's email from the API. I think the only way to do what you want is to get the list of the channels that the user subscribes to (using oauth to authenticate the user and than setting 'mine' to true) and check if your channel appears in the list returned
– Vinicius Pinto
Jan 28 '15 at 19:38
|
show 3 more comments
Changed "part" to "subscriberSnippet" and got this error ""message": "Incompatible parameters specified in the request." and the "part" label color is red
– PHP User
Jan 28 '15 at 15:51
@Yasser remove mine to true and your channelId, just follow the fields i indicate in my answer
– mpgn
Jan 28 '15 at 16:03
But this gets users (emails are not included and returned only 4 members) of my channel when I send the request I want the user to enter his email Address then he/she will be redirected to a different page if he had subscribed already to my channel so I think the channel id should be passed
– PHP User
Jan 28 '15 at 16:16
And I'm the owner of the channel
– PHP User
Jan 28 '15 at 16:27
@Yasser this answer is correct, you'll not be able to get the user's email from the API. I think the only way to do what you want is to get the list of the channels that the user subscribes to (using oauth to authenticate the user and than setting 'mine' to true) and check if your channel appears in the list returned
– Vinicius Pinto
Jan 28 '15 at 19:38
Changed "part" to "subscriberSnippet" and got this error ""message": "Incompatible parameters specified in the request." and the "part" label color is red
– PHP User
Jan 28 '15 at 15:51
Changed "part" to "subscriberSnippet" and got this error ""message": "Incompatible parameters specified in the request." and the "part" label color is red
– PHP User
Jan 28 '15 at 15:51
@Yasser remove mine to true and your channelId, just follow the fields i indicate in my answer
– mpgn
Jan 28 '15 at 16:03
@Yasser remove mine to true and your channelId, just follow the fields i indicate in my answer
– mpgn
Jan 28 '15 at 16:03
But this gets users (emails are not included and returned only 4 members) of my channel when I send the request I want the user to enter his email Address then he/she will be redirected to a different page if he had subscribed already to my channel so I think the channel id should be passed
– PHP User
Jan 28 '15 at 16:16
But this gets users (emails are not included and returned only 4 members) of my channel when I send the request I want the user to enter his email Address then he/she will be redirected to a different page if he had subscribed already to my channel so I think the channel id should be passed
– PHP User
Jan 28 '15 at 16:16
And I'm the owner of the channel
– PHP User
Jan 28 '15 at 16:27
And I'm the owner of the channel
– PHP User
Jan 28 '15 at 16:27
@Yasser this answer is correct, you'll not be able to get the user's email from the API. I think the only way to do what you want is to get the list of the channels that the user subscribes to (using oauth to authenticate the user and than setting 'mine' to true) and check if your channel appears in the list returned
– Vinicius Pinto
Jan 28 '15 at 19:38
@Yasser this answer is correct, you'll not be able to get the user's email from the API. I think the only way to do what you want is to get the list of the channels that the user subscribes to (using oauth to authenticate the user and than setting 'mine' to true) and check if your channel appears in the list returned
– Vinicius Pinto
Jan 28 '15 at 19:38
|
show 3 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f28189354%2fget-youtube-channel-subscribers-via-youtube-api%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
400 Bad Request - Show headers - { "error": { "errors": [ { "domain": "youtube.part", "reason": "unknownPart", "message": "subscriberSnippet", "locationType": "parameter", "location": "part" } ], "code": 400, "message": "subscriberSnippet" } }
– Sakthi
Feb 26 '15 at 12:16