Api Rest Tnt And Fedex

I need to integrate the TNT and FEDEX shipping method in Cs-Cart and to calculate the rates online and always updated. Is there an Api Rest that I can connect to to obtain this data?.

I would create a javascript library that connects with that API and returns that information to me.