How can I get all the jokes of the character?

How to get all character jokes from world of warcraft? Is there such an API or just a data file?

no there is no api for this data you would have to check a 3rd party site like wowhead they may have them listed
or look here