Skip to content

Latest commit

 

History

History
81 lines (46 loc) · 2.2 KB

File metadata and controls

81 lines (46 loc) · 2.2 KB

Recipes

Find restaurants like Balthazar in New York (location via query string)

Get a list of recommendations based on an entity and filtered to a particular location.

This example produces recommendations for restaurants in NYC similar to Balthazar.

In this Recipe

  1. Set up request options
  2. Send the request
  3. Handle the response

Open Recipe

const options = {
  method: 'GET',
  headers: {'X-Api-Key': '<<apiKey>>'}
};

fetch("https://api.qloo.com/v2/insights/?filter.type=urn:entity:place&signal.interests.entities=FCE8B172-4795-43E4-B222-3B550DC05FD9&filter.location.query=New%20York", requestOptions)
  .then((response) => response.json())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));

Find restaurants like Balthazar in New York (location via query string)

Get a list of recommendations based on an entity and filtered to a particular location.

This example produces recommendations for restaurants in NYC similar to Balthazar.

3 steps

Open Recipe

Find restaurants like BADMAASH in New York (location via lat/lon coordinates)

Get a list of restaurant recommendations similar to Balthazar, filtered to a specific latitude/longitude point in New York City.

3 steps

Open Recipe

Create a heatmap based on a WKT point for the brand MUJI in NYC

Generate heatmap data using a WKT Point.

This example shows the concentration of affinity for the brand Muji in NYC.

3 steps

Open Recipe

Find brunch restaurants in New York with vegan options and wheelchair access (location via query string, filter with tags)

Get a filtered list of recommendations based on a location.

This example retrieves location-based Insights for restaurants in NYC that are vegan, serve brunch, and have a wheelchair accessible entrance.

3 steps

Open Recipe

Find popular brands in central Paris (location via WKT polygon)

This example returns brands with a high affinity score in the Paris center, with the location based on the provided WKT shape.

3 steps

Open Recipe

Explore demographic data for audiences interested in Charlize Theron and action genres.

See the affinity score for demographic data related to an actor and a specific tag.

3 steps

Open Recipe