Is there any way to get firefox Api so that i can access them programatially
There any other method other than XPCom
No.
(Well, maybe this, but it's out of date.)