added filtering by year in api