Open danielravina opened 8 years ago
NM ijust noticed the search
endpoint only support the snippet
. Is there a way to get a list of search results with more data?
I made a workaround with 2 api calls. I guess there isn't a way to get everything in one shot.
module.exports.search = (q) => {
return new Promise((resolve, reject) => {
youTube.search(q, 20, (error, result) => {
if (error) return reject(error);
const ids = result.items.map(r => r.id.videoId).join(',');
youTube.getById(ids, (error, r) => {
if (error) return reject(error);
resolve(r);
});
});
});
};
Hi @danielravina have a pull request?
Hi, I'm trying to add more parts to the search function with the following code but I don't see them in the results Code:
Result: