Bucket_id is always 0

Quoting from the docs:

Will only be populated when the task is accessed via a view with buckets. Can be used to move a task between buckets. In that case, the new bucket must be in the same view as the old one.

And similar for position:

The position of the task - any task project can be sorted as usual by this parameter. When accessing tasks via views with buckets, this is primarily used to sort them based on a range. Positions are always saved per view. They will automatically be set if you request the tasks through a view endpoint, otherwise they will always be 0. To update them, take a look at the Task Position endpoint.

That means when you access the task individually, both properties will always be empty. Only when you access all tasks through a view with buckets will the field contain the bucket id.