Updated media API adapter