How to call WordPress API Internally

How to call WordPress API Internally

tech