How to add duration in callback data?

The data in callback request does not contain duration, how to add duration in callback data?

The callback indeed doesn’t include duration. You can get the duration of your video by polling the API.