parse metadata and add it to the API