How to get Reopened Incidents for last 6 months through JavaScript?

Hello Experts,

I have one requirement in my environment. I need to get all the incidents which were re-opened by end users. May I get some script through which I can achieve the same? Or is there any other way out for that?

Please give your valuable input regarding the same.

Thanks in advance!!