normalize api to data first and example