# Graph explore api for webshop case

**URL:** <https://discuss.elastic.co/t/graph-explore-api-for-webshop-case/99582>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-graph\
**Created:** [September 6, 2017, 12:38pm UTC](https://discuss.elastic.co/t/graph-explore-api-for-webshop-case/99582 "2017-09-06T12:38:59Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [October 3, 2017, 9:11am UTC](https://discuss.elastic.co/t/graph-explore-api-for-webshop-case/99582/7 "2017-10-03T09:11:19Z")

</div>

> [@Malthe](#):
>
> I get some very nice graphs, but I can't get anything useful from the API

Are you saying the calls to the API differ from what you gather using the UI? That should be a solvable problem because the UI uses the API.

Your model looks good. Let's look at a similar example using instacart data [1].

Nearly everyone buys milk, strawberries and bananas. These are the top products.

 ![instacartTop](https://us1.discourse-cdn.com/elastic/original/3X/3/c/3c68466fbc85cd55477bdad20d28148dbd4b247a.png)

So if you search for people who bought "pasta" and have significance turned _off_ you will recommend ..... milk, strawberries and bananas as an accompaniment:

 ![instacartpopular](https://us1.discourse-cdn.com/elastic/original/3X/4/d/4de9ce94c9a5e4d18fd7bd3c4b77df60ca12eeff.png)

However, if you have significant links turned on you get `italian sauce` and related:

 ![instacart signif](https://us1.discourse-cdn.com/elastic/original/3X/a/e/ae3cc1092febc2dd00cdc9b6ee5ccdc9ea81ec32.png)

So it can work on this shape of data but does depend on having a reasonable amount of it and there being some cohesion to the products (pasta and italian sauce tend to go together like Black Sabbath and Motorhead). Also I generally tend to use one shard if possible to keep the all the signal in one place.

[1] [3 Million Instacart Orders, Open Sourced | by Jeremy Stanley | tech-at-instacart](https://tech.instacart.com/3-million-instacart-orders-open-sourced-d40d29ead6f2)

---

_[View the full topic](https://discuss.elastic.co/t/graph-explore-api-for-webshop-case/99582)._
