API path should contain the location of api.php on your wiki. You can find it by going to Special:Version, then going to 'Entry point URLs'. /w/api.php or /api.php is usually what this value is set to.