Adding api support

We also dump data to the API