Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Spoonacular Recipe API

spoonacular_recipe_api.livemd

Spoonacular Recipe API

Mix.install([
  {:kino, github: "livebook-dev/kino", override: true},
  {:kino_lab, "~> 0.1.0-dev", github: "jonatanklosko/kino_lab"},
  {:vega_lite, "~> 0.1.4"},
  {:kino_vega_lite, "~> 0.1.1"},
  {:benchee, "~> 0.1"},
  {:ecto, "~> 3.7"},
  {:math, "~> 0.7.0"},
  {:faker, "~> 0.17.0"},
  {:utils, path: "#{__DIR__}/../utils"},
  {:httpoison, "~> 1.8"},
  {:poison, "~> 5.0"},
  {:tested_cell, git: "https://github.com/BrooklinJazz/tested_cell"}
])

Navigation

Return Home Report An Issue

Spoonacular Recipe API

Spoonacular is a popular food API.

Create a free Spoonacular to get your API key. You can view your API key in the Spoonacular Console.

Browser Request

Use your API to visit the https://api.spoonacular.com/recipes/complexSearch?apiKey=API_KEY URL where API_KEY should be your API key from the console.

HTTPoison Request

Use HTTPoison to retrieve the same JSON data from the https://api.spoonacular.com/recipes/complexSearch?apiKey=API_KEY URL you visited in the browser. Then use Poison to decode the JSON response into an Elixir data structure.

Commit Your Progress

Run the following in your command line from the project folder to track and save your progress in a Git commit.

$ git add .
$ git commit -m "finish spoonacular recipe api exercise"