import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

//RapidAPI header  https://rapidapi.com/msilverman/api/nutritionix-nutrition-database/
HttpRequest request = HttpRequest.newBuilder()
		.uri(URI.create("https://burgers1.p.rapidapi.com/burgers"))
		.header("X-RapidAPI-Key", "befd3aa94cmsh6c15f9448db64f3p194824jsn7727f7079e12")
		.header("X-RapidAPI-Host", "burgers1.p.rapidapi.com")
		.method("GET", HttpRequest.BodyPublishers.noBody())
		.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
[
  {
    "id": 0,
    "name": "Tribute Burger",
    "restaurant": "Honest Burgers",
    "web": "www.honestburgers.co.uk",
    "description": "A mouth-watering honest beef burger",
    "ingredients": [
      "beef",
      "american cheese",
      "burger sauce",
      "french mustard",
      "pickes",
      "onion",
      "lettuce"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "75",
        "line1": "Venn Street",
        "line2": "Clapham",
        "postcode": "SW4 0BD",
        "country": "United Kingdom"
      }
    ]
  },
  {
    "id": 1,
    "name": "Pulled Mooshie",
    "restaurant": "Mooshies",
    "web": "www.veganburger.org",
    "description": "Spicy vegan burger with jackfruit",
    "ingredients": [
      "jackfruit",
      "coleslaw",
      "gluten free bun"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "104",
        "line1": "Brick Lane",
        "line2": "Shoreditch",
        "postcode": "E1 6RL",
        "country": "United Kingdom"
      }
    ]
  },
  {
    "id": 2,
    "name": "Krabby Patty",
    "restaurant": "Krusty Krab",
    "web": "https://twitter.com/SpongeBob",
    "description": "The only people who don't like a Krabby Patty have never tasted one.",
    "ingredients": [
      "bun",
      "patty",
      "ketchup",
      "mustard",
      "pickles",
      "onions",
      "lettuce",
      "cheese",
      "tomato",
      "bun"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "831",
        "line1": "Bottom Feeder Lane",
        "line2": "",
        "postcode": "",
        "country": "Bikini Bottom, Pacific Ocean"
      }
    ]
  },
  {
    "id": 3,
    "name": "The Good Burger",
    "restaurant": "Good Burger",
    "web": "https://en.wikipedia.org/wiki/Good_Burger",
    "description": "Welcome to Good Burger, home of the Good Burger, can I take your order?",
    "ingredients": [
      "bun",
      "tomato",
      "Ed's secret sauce",
      "lettuce",
      "onions",
      "cheese"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "000",
        "line1": "Good Burger",
        "line2": "437 Glendora Ave.",
        "postcode": "CA",
        "country": "United States"
      }
    ]
  },
  {
    "id": 4,
    "name": "Crunchy Nacho Burger",
    "restaurant": "Max Burgers",
    "web": "https://www.max.se/maten/meny/burgare/crunchy-nacho-burger/",
    "description": "The best combination of crunchiness and softness, all in one single burger",
    "ingredients": [
      "sesame bun",
      "salsa",
      "cheddar",
      "nachos",
      "beef",
      "tomato",
      "pickled onion",
      "lettuce",
      "jalapeño mayonnaise"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "48D",
        "line1": "Skeppsbrogatan",
        "line2": "Luleå",
        "postcode": "971 25",
        "country": "Sweden"
      }
    ]
  },
  {
    "id": 5,
    "name": "Barbie Burger",
    "restaurant": "Flower Burger",
    "web": "https://www.flowerburger.it/",
    "description": "From a pink explosion was born Barbie Burger, a special edition in partnership with Mattel",
    "ingredients": [
      "pink bun",
      "lentil and beetroot burger",
      "tomatoes",
      "gentilina salad",
      "barbie hummus",
      "barbie mayo"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "12",
        "line1": "Porta Genova",
        "line2": "Via Tortona",
        "postcode": "20144",
        "country": "Italy"
      }
    ]
  },
  {
    "id": 6,
    "name": "Curry On My Wayward Bun",
    "restaurant": "Bob's Burgers",
    "web": "https://bobs-burgers.fandom.com/wiki/Burger_of_the_Day",
    "description": "N/A",
    "ingredients": [
      "beef",
      "curry",
      "bun"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "0",
        "line1": "Ocean Avenue",
        "line2": "NJ",
        "postcode": "08260",
        "country": "United States"
      }
    ]
  },
  {
    "id": 7,
    "name": "MEISTER ALLER KLASSEN",
    "restaurant": "Burgermeister",
    "web": "https://burger-meister.de",
    "description": "Fast food joint located in a public toilet? Why on earth?!",
    "ingredients": [
      "2 x meat",
      "2 x cheese",
      "bacon",
      "barbequesauce",
      "jalapenos"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "1",
        "line1": "Potsdamer Platz",
        "line2": "Berlin",
        "postcode": "10785",
        "country": "Germany"
      },
      {
        "addressId": 1,
        "number": "45",
        "line1": "Eberswalder, Schönhauser Allee",
        "line2": "Berlin",
        "postcode": "10435",
        "country": "Germany"
      }
    ]
  },
  {
    "id": 8,
    "name": "Vegetarian Burger (Indian Style)",
    "restaurant": "Indian Burgers",
    "web": "https://www.cookwithmanali.com/vegetarian-burger-indian-style/",
    "description": "With summer around the corner, I had to share a vegetarian burger recipe with you guys. Actually I plan to share more in the next month but I thought I will start with this Indian style Vegetarian Burger aka Masala Burger!",
    "ingredients": [
      "american cheese",
      "burger sauce",
      "french mustard",
      "pickes",
      "onion",
      "Veggies"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "007",
        "line1": "Line1",
        "line2": "Line2",
        "postcode": "",
        "country": "India"
      }
    ]
  },
  {
    "id": 9,
    "name": "Fat Santa",
    "restaurant": "Sky City Hamilton",
    "web": "https://skycityhamilton.co.nz/eat-drink/eat-burger/",
    "description": "A Christmas themed burger",
    "ingredients": [
      "chicken thigh",
      "champagne ham",
      "sage and onion stuffing",
      "gravy mash",
      "lettuce",
      "tomato",
      "cranberry sauce"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "348",
        "line1": "Victoria street",
        "line2": "Hamilton Central, Hamilton",
        "postcode": "3204",
        "country": "New Zealand"
      }
    ]
  },
  {
    "id": 10,
    "name": "Blondie",
    "restaurant": "Yankys",
    "web": "http://yankyslambton.co.za/menu/",
    "description": "Delicious steak burger",
    "ingredients": [
      "steak",
      "BBQ sauce",
      "bacon",
      "egg",
      "cheese",
      "lettuce",
      "tomato",
      "onion",
      "gerkins"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "114",
        "line1": "Webber Road",
        "line2": "Lambton, Germiston",
        "postcode": "1414",
        "country": "South Africa"
      }
    ]
  },
  {
    "id": 11,
    "name": "Monster Burger",
    "restaurant": "Yankys",
    "web": "http://yankyslambton.co.za/menu/",
    "description": "Massive meaty burger - the size of a dinner plate",
    "ingredients": [
      "250g patty",
      "bacon",
      "cheese",
      "2 eggs",
      "steak",
      "BBQ sauce",
      "lettuce",
      "tomato",
      "onion",
      "gerkins"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "114",
        "line1": "Webber Road",
        "line2": "Lambton, Germiston",
        "postcode": "1414",
        "country": "South Africa"
      }
    ]
  },
  {
    "id": 12,
    "name": "Buffalo chicken burger",
    "restaurant": "Meat Mission",
    "web": "http://meatliquor.com/",
    "description": "Large, messy, super tasty buffalo chicken burger",
    "ingredients": [
      "Fried chicken breast",
      "House-made buffalo sauce",
      "Lettuce",
      "Red onions",
      "Blue cheese sauce"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "15",
        "line1": "Hoxton Market,",
        "line2": "Hackney, London",
        "postcode": "N1 6HG",
        "country": "United Kingdom"
      }
    ]
  },
  {
    "id": 13,
    "name": "Cheatday Burger",
    "restaurant": "Burgeramt",
    "web": "https://www.burgeramt.com/",
    "description": "Perfect when you need a day off from your workout routine",
    "ingredients": [
      "double beef",
      "chilli-cheese sauce",
      "2 slices cheddar cheese",
      "crispy bacon stripes",
      "nachos",
      "mayonnaise",
      "mustard"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "21 - 22",
        "line1": "Krossener Straße",
        "line2": "Berlin",
        "postcode": "10245",
        "country": "Germany"
      }
    ]
  },
  {
    "id": 14,
    "name": "The Truffler (vegan)",
    "restaurant": "Byron Burgers",
    "web": "https://www.byron.co.uk/",
    "description": "Beyond Meat patty, crispy onions, mushrooms, pickled red onions, lettuce American mustard, truffle ‘cheese’ fondue, truffle ‘mayo’",
    "ingredients": [
      "1/4 Beyond Meat patty",
      "crispy onions",
      "sauteed mushrooms",
      "pickled red onions",
      "lettuce",
      "American mustard",
      "truffle vegan cheese fondue",
      "truffle vegan mayo"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "41-45",
        "line1": "The Cut",
        "line2": "London",
        "postcode": "SE1 8LF",
        "country": "United Kingdom"
      },
      {
        "addressId": 1,
        "number": "The Loft",
        "line1": "Westfield Shopping Centre",
        "line2": "London",
        "postcode": "W12 7GF",
        "country": "United Kingdom"
      }
    ]
  },
  {
    "id": 15,
    "name": "Aloette Buger",
    "restaurant": "Aloette",
    "web": "https://aloetterestaurant.com/",
    "description": "Haute cuisine meets cravings for cheeseburgers.",
    "ingredients": [
      "6oz beef patty, served medium",
      "griddled beaufort cheese",
      "cheddar mayo",
      "shredded lettuce",
      "potato roll"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "163",
        "line1": "Spadina Ave",
        "line2": "Toronto",
        "postcode": "M5V 2A5",
        "country": "Canada"
      }
    ]
  },
  {
    "id": 16,
    "name": "BBQ Burger",
    "restaurant": "Fresh Plant Powered",
    "web": "https://freshplantpowered.com/",
    "description": "Vegan burger made from whole, natural ingredients.",
    "ingredients": [
      "house-made grain burger",
      "bbq sauce",
      "quinoa onion rings",
      "vegan garlic mayo",
      "napa cabbage",
      "banana chillies",
      "tomato",
      "lettuce"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "147",
        "line1": "Spadina Ave",
        "line2": "Toronto",
        "postcode": "M5V 2L7",
        "country": "Canada"
      },
      {
        "addressId": 1,
        "number": "326",
        "line1": "Bloor Street West",
        "line2": "Toronto",
        "postcode": "M5S 1W5",
        "country": "Canada"
      },
      {
        "addressId": 2,
        "number": "894",
        "line1": "Queen Street West",
        "line2": "Toronto",
        "postcode": "M6J 1G3",
        "country": "Canada"
      },
      {
        "addressId": 3,
        "number": "90",
        "line1": "Eglinton Avenue East",
        "line2": "Toronto",
        "postcode": "M4P 2Y3",
        "country": "Canada"
      },
      {
        "addressId": 4,
        "number": "47",
        "line1": "Front Street East",
        "line2": "Toronto",
        "postcode": "M5E 1B3",
        "country": "Canada"
      },
      {
        "addressId": 5,
        "number": "95",
        "line1": "Queen Elizabeth Blvd",
        "line2": "Etobicoke",
        "postcode": "M8Z 1P3",
        "country": "Canada"
      },
      {
        "addressId": 6,
        "number": "8768",
        "line1": "Sunset Blvd",
        "line2": "Los Angeles",
        "postcode": "90069",
        "country": "United States"
      }
    ]
  },
  {
    "id": 17,
    "name": "Carroll's Cheese Burger",
    "restaurant": "Carroll's Pub Worms",
    "web": "https://www.carrolls-pub-worms.de/",
    "description": "Tasty black angus beef burger.",
    "ingredients": [
      "Irish black angus beef",
      "tomato",
      "lettuce",
      "caramelized onions",
      "pickles",
      "cheddar cheese",
      "tomato relish"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "54",
        "line1": "Rheinstraße",
        "line2": "Worms",
        "postcode": "67547",
        "country": "Germany"
      }
    ]
  },
  {
    "id": 18,
    "name": "Mojitto Burger",
    "restaurant": "Burger King India",
    "web": "www.mojitto.com",
    "description": "Burger a day keeps the fat away",
    "ingredients": [
      "bread",
      "maida",
      "chick",
      "patty"
    ],
    "addresses": [
      {
        "addressID": 0,
        "number": "8A",
        "line1": "Kaythye millath street",
        "postcode": "620020",
        "country": "India"
      }
    ]
  },
  {
    "id": 19,
    "name": "Double Slab Burger",
    "restaurant": "Slab Burgers",
    "web": "www.slabburgers.com",
    "description": "taste of hormone-free running cows",
    "ingredients": [
      "beef",
      "caramelized onions",
      "slab sauce",
      "pickles",
      "mushrooms",
      "tomato",
      "lettuce"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "47",
        "line1": "Charles Street West",
        "line2": "Toronto, Ontario",
        "postcode": "M4Y 2R4",
        "country": "Canada"
      }
    ]
  },
  {
    "id": 20,
    "name": "Du Brown",
    "restaurant": "Du Brown Burger Café",
    "web": "https://www.dubrown.com/",
    "description": "Home of the no bullshit burger",
    "ingredients": [
      "beef",
      "bacon",
      "caramelized onions",
      "cheddar cheese",
      "barbecue sauce",
      "onion rings",
      "jalepeños",
      "tomato",
      "lettuce",
      "chipote mayonaise"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "12",
        "line1": "rue St Léonard",
        "line2": "Nantes",
        "postcode": "44000",
        "country": "France"
      }
    ]
  },
  {
    "id": 21,
    "name": "Melting Potes",
    "restaurant": "Melting Potes Nantes",
    "web": "https://www.meltingpotesnantes.com/",
    "description": "Home of the no bullshit burger",
    "ingredients": [
      "beef",
      "poutine",
      "raclette cheese",
      "honey mustard sauce",
      "goats cheese",
      "crispy onions"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "12",
        "line1": "boulevard de la Prairie au Duc",
        "line2": "Ile de Nantes, Nantes",
        "postcode": "44000",
        "country": "France"
      }
    ]
  },
  {
    "id": 22,
    "name": "Big Fernand",
    "restaurant": "Big Fernand",
    "web": "https://bigfernand.com/",
    "description": "L'atelier du Hamburgé - The burger workshop",
    "ingredients": [
      "beef",
      "sundried tomates",
      "tatar sauce",
      "confit onions",
      "blue cheese",
      "smokey bacon"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "7",
        "line1": "rue des Halles",
        "line2": "Nantes",
        "postcode": "44000",
        "country": "France"
      },
      {
        "addressId": 1,
        "number": "3",
        "line1": "Place de Béthune",
        "line2": "Lille",
        "postcode": "59000",
        "country": "France"
      },
      {
        "addressId": 2,
        "number": "6",
        "line1": "place Jean Jaurès",
        "line2": "Montpellier",
        "postcode": "34000",
        "country": "France"
      },
      {
        "addressId": 3,
        "number": "86",
        "line1": "Boulevard du Montparnasse",
        "line2": "Paris",
        "postcode": "75014",
        "country": "France"
      },
      {
        "addressId": 4,
        "number": "55",
        "line1": "rue de Faubourg Poissonnière",
        "line2": "Paris",
        "postcode": "75009",
        "country": "France"
      },
      {
        "addressId": 5,
        "number": "4",
        "line1": "rue du Parchemin",
        "line2": "Strasbourg",
        "postcode": "67000",
        "country": "France"
      }
    ]
  },
  {
    "id": 23,
    "name": "PNY Burger",
    "restaurant": "PNY Burger",
    "web": "https://pnyburger.com/",
    "description": "Home of the no bullshit burger",
    "ingredients": [
      "beef",
      "poutine",
      "raclette cheese",
      "honey mustard sauce",
      "goats cheese",
      "crispy onions"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "50",
        "line1": "rue de Cautartin",
        "line2": "Paris",
        "postcode": "75009",
        "country": "France"
      },
      {
        "addressId": 1,
        "number": "120",
        "line1": "rue du Faubourg St Antoine",
        "line2": "Paris",
        "postcode": "75012",
        "country": "France"
      },
      {
        "addressId": 2,
        "number": "1",
        "line1": "rue Perrée",
        "line2": "Paris",
        "postcode": "75003",
        "country": "France"
      },
      {
        "addressId": 3,
        "number": "96",
        "line1": "rue Oberkampf",
        "line2": "Paris",
        "postcode": "75011",
        "country": "France"
      },
      {
        "addressId": 4,
        "number": "24",
        "line1": "rue Pierre Fontaine",
        "line2": "Paris",
        "postcode": "75009",
        "country": "France"
      }
    ]
  },
  {
    "id": 24,
    "name": "231 East",
    "restaurant": "231 East Street",
    "web": "https://www.231-east.fr/",
    "description": "True New York style burger in France",
    "ingredients": [
      "beef",
      "smoked bacon",
      "chicken",
      "veggie burgers",
      "brioche bun",
      "honey mustard sauce",
      "onion chutney",
      "pepper sauce",
      "avacado"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "7",
        "line1": "rue de la Couronne",
        "line2": "Aix-en-Provence",
        "postcode": "13100",
        "country": "France"
      },
      {
        "addressId": 1,
        "number": "9",
        "line1": "faubourg Sainte-Claire",
        "line2": "Annecy",
        "postcode": "7400",
        "country": "France"
      },
      {
        "addressId": 2,
        "number": "10",
        "line1": "Grande rue",
        "line2": "Grenoble",
        "postcode": "38000",
        "country": "France"
      },
      {
        "addressId": 3,
        "number": "2",
        "line1": "rue de la Pépinière",
        "line2": "Paris",
        "postcode": "75008",
        "country": "France"
      },
      {
        "addressId": 4,
        "number": "",
        "line1": "boulevard Géneral de Gaulle",
        "line2": "Nantes",
        "postcode": "44000",
        "country": "France"
      }
    ]
  },
  {
    "id": 25,
    "name": "Cajun Black Bean Burger",
    "restaurant": "The Chicago Diner",
    "web": "www.veggiediner.com",
    "description": "a hearty veggie burger with a kick that goes great with sweet potato fries",
    "ingredients": [
      "spicy black bean veggie patty",
      "sautéed onions",
      "mushrooms",
      "spinach",
      "tomato",
      "fried jalapeño",
      "cheddar sauce",
      "creole mustard"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "3411",
        "line1": "N Halsted St",
        "line2": "Chicago, Illinois",
        "postcode": "60657",
        "country": "USA"
      },
      {
        "addressId": 1,
        "number": "2333",
        "line1": "N Milwaukee Ave",
        "line2": "Chicago, Illinois",
        "postcode": "60647",
        "country": "USA"
      }
    ]
  },
  {
    "id": 26,
    "name": "Hatch Green Chile Bacon Burger",
    "restaurant": "Whataburger",
    "web": "www.whataburger.com",
    "description": "burger with hatch green chiles, bacon and cheese",
    "ingredients": [
      "beef",
      "cheese",
      "bacon",
      "hatch green chiles",
      "mayonnaise"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "984",
        "line1": "388 E Stacy Rd",
        "line2": "Allen, TX",
        "postcode": "75002",
        "country": "USA"
      }
    ]
  },
  {
    "id": 27,
    "name": "The Street Burgers and Coctail Bar Prague 1",
    "restaurant": "The Street",
    "web": "www.thestreet.cz",
    "description": "American, Bar, International, European, Vegetarian Friendly",
    "ingredients": [
      "beef",
      "cheddar cheese",
      "blue cheese",
      "onion",
      "mozzarella",
      "bacon",
      "lettuce"
    ],
    "addresses": [
      {
        "addressId": 0,
        "number": "11",
        "line1": "Konviktska",
        "line2": "Prague",
        "postcode": "110 00",
        "country": "The Czech Republic"
      }
    ]
  }
]
  • The benefits of using an api are that we are able to use and pull from a large library of data that other people update. It also allows communication over the internet where we can pull from the internet and not have to bring the library onto our computer
  • Backend development allows faster development speed