var Ceic = require('ceic_api');
var accessToken = "ENTER YOUR API KEY HERE";
var exampleSeriesId = "EXAMPLE SERIES ID";
var apiClient = new Ceic.ApiClient();
var seriesApi = new Ceic.SeriesApi(apiClient);
var keyWords = ["KEYWORD 1", "KEYWORD 2", "KEYWORD 3", "KEYWORD 4"];
searchArguments = {
"keyword": keyWords.join(", ")
};
seriesApi.searchSeries(searchArguments, {token: accessToken}).then(function(seriesSearchResult) {
// Access series search results data
var seriesSearchItems = seriesSearchResult.data.items;
var secondItemSeriesId = seriesSearchItems[1].metadata.id;
}, function(error) {
// Handle error
});