I think that taking him to the vet is a great idea. At least he ate something, I am sorry that he is not feeling well.

Is he drinking anything? If he is not on his own try to out some water on your finger and let him lick it off. That's what I would do anyway.