Skip to main content

Using texts to generate product lists

In many cases the inspirational text is accompanied by a product list, where the products often run out of stock or are very old. This text search is completely dynamic and will always show the most relevant products for your topic.

Example

A text like:

Gör dig redo för projektsäsong! Hos oss hittar du allt du behöver för att göra dina arbeten och projekt så smidiga och effektiva som möjligt. Just nu har vi kampanj på allt från förvaringslösningar till mutterdragare för säsongens däckbyten. Passa på att fynda produkterna till garaget och verkstaden nu! Kampanjen gäller t.o.m. 4/4.

Could yield these product suggestions:

The query to produce the search results is simply to use the text as a query string like so:

https://api.theca.com/v1/search?q=Gör+dig+redo+[...]+gäller+t.o.m.+4%2F4.