get category id from article id

Hi,

I would like to check my busket item category. I would like to restrict them by category.

if there is a way to check like $sArticle->categories()?

or I need to do query?

thanks in advance