Most of the time, the credit is given in the video’s description box. The format of providing credit usually differs according to the platform. One of the standard practices is to write the name of the artist and cite the source.
Make sure that you go through the terms and conditions of the platform before using their soundtracks.