created cron job to make api call