Small updates act as game changer for calling API's!
Rune Bendix Wittchen
"data makes the world go round" //build.data||architecture\\
If you work with analytics or data engineering, you have likely encountered the issue of getting data for analytics out of an API (yes/no?) Sometimes calling an API can be a hassle. Issues usually arises through scheduling, authenticating, parsing, transforming or loading the data. You will likely need an external service to handle the call, and the runtime environment for it. Grieve no more!
Recently Snowflake announced a wealth of fresh features... Some of the smallest announcements made on that day, was SECRETS and EXTERNAL ACCESS INTEGRATION. I did not think much of them at first, but these act as GAME CHANGERS, when used in combination with USER DEFINED FUNCTIONS (UDF) for accessing API endpoints.
Previously UDF's acted mainly on objects within Snowflake data cloud, but in combination with the secrets and external access, a Snowflake UDF can now be allowed to access external endpoints with a key (e.g. a REST API).
Of course every API is a bit different, but I can now call an external public API and retrieve a auth token, and use the token to retrieve records back in a json object - all from within Snowflake, bypassing cloud functions, repositories, runtime environments, virtual network setup, key vaults from a cloud a provider.
This simplifies data load immensely for getting data out of API's, and maybe with a bit of tweaking, also direct database connections using UDF's.
The code for creating the objects getting a token from an API can be accessed here.
Data Architect
1 年Happy Birthday Rune Bendix Wittchen ????
Databaseansvarlig hos Boligforeningen AAB | Kvinder i Fodbold
1 年Smoooth m?de lige at fejre sin 40 ?rs p? LinkedIn?? ??
AI Partner @ Novo Nordisk | 4x Azure, 2x AWS Certified | Solutions Architect | Pre-Sales
1 年Happy birthday Rune! Indeed, calling API’s is definitely a way to celebrate ?? Jokes aside, whishing all the best!
Senior Manager - Data & Analytics Team
1 年Dét m? pr?ves! (Ogs? det med at blive 40)
Consultant @ Devoteam Data Driven
1 年Tillykke med f?dselsdagen Rune ????