You shouldn't lose anything during the upgrade. What do you mean by 'edits to the API' - is this just extension code that calls the CRM API.
The main consideration is that if any extension code was written for CRM 4, then it will need to be rewritten
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk