About this endpoint
The Top Clicked endpoint will return the most clicked products
GET
https://api.empathybroker.com/search/v1/query/{instance_id}/topclicked?{Input_Parameters}
Input Parameters
Parameter | Data Type |
---|---|
lang | String |
Created by Iago Fernández · last update December 10, 2019
The Top Clicked endpoint will return the most clicked products
GET
https://api.empathybroker.com/search/v1/query/{instance_id}/topclicked?{Input_Parameters}
Input Parameters
Parameter | Data Type |
---|---|
lang | String |
Here is an example of a simple implementation in Java to consume the service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Client client;
WebTarget target;
public void init(){
client = ClientBuilder.newClient();
target = client.target("https://api.empathybroker.com/search/v1/query/{instance_id}/topclicked")
}
public JSON getResponse(String lang){
return target.queryParam("lang",lang).request(MediaType.APPLICATION_JSON).get(JSON.class)
}
The Query Signals will return the most clicked terms in Json format.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
topclicked: {
docs: [
{
id: "ARTICLE_ID",
name: "ARTICLE_NAME",
url: "ARTICLE_URL",
image: "IMAGE_NAME",
*other_fields*: "FIELD_NAME"*
},
...
]
}
}