Learn how to use the Houski API with practical examples.
Select the programming language you want to display the code examples in.
curl -X GET "https://api.houski.ca/auth?action=validate&api_key=YOUR_API_KEY"
const houski_recipe_data = async (): Promise<AuthResponse> => { // You must copy the AuthResponse type declarations from the // Houski API documentation to strongly type the response const url = new URL('https://api.houski.ca/auth'); url.searchParams.set('action', 'validate'); url.searchParams.set('api_key', 'YOUR_API_KEY'); const response = await fetch(url); const data = await response.json(); return data; } (async () => { let data: AuthResponse = await houski_recipe_data(); // Log the response console.log(data); })();
{ "api_key_authorized": true, "error": "", "time_ms": 0 }