Right, this seems to be poorly documented or I can\'t see it in the documentation. I basically want no related videos (?rel=0) using the JavaScript API.
?rel=0
new YT.Player('playerid', { height: '550', width: '840', videoID: 'video_id', playerVars: {rel: 0}, });
No need to code through the API,now its easily can be done by
You tube embed button -> Show more -> tickout the option 'Show suggested videos when the video finishes'