API example with API key authentication