Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

youtube-search-api-with-axios

joaoamaral7MIT2.0.0

Retrives a list of videos from youtube search api based on query parameters using axios

youtube, search, api, v3, axios, react, promise

readme

youtube-search-api-with-axios

Retrives a list of videos from youtube search api based on query parameters using axios

Basic Usage

Import module

import searchYouTube from 'youtube-api-search';

Define your API_KEY

const API_KEY = 'put your google youtube search api key here';

Use it in your code


searchYouTube({key: API_KEY, term: term, maxResults: 6}, (videos) => {
            console.log(videos);
        });

Enjoy! :)