How do I get associated bugs for a task?

How do I get associated bugs for a task?

I use the API to get all tasks, but I want to know which bug is associated to a task? How can I get this information? 
Shouldn't they be returned like the comments on a task?