# API: Get popular products

# getOtherPopularProducts

Get list of popular products from given category based on current products selection (can be used as "Other customers also bought" list)

# Required parameters

Parameter Description
product_ids Array with currently selected product ids

# Optional parameters

Parameter Description
client_id Client id who makes selection
limit Max number of products returned
exclude_cat Array with category ids to exclude from search

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getOtherPopularProducts&product_ids=PRODUCT_IDS

# PHP Samples

# Response

{
    "success": true,
    "offer": [
        {
            "id": "2",
            "name": ".net",
            "category_id": "1",
            "category_name": "Simple",
            "description": "",
            "popularity": "0",
            "rel": "Product",
            "paytype": "DomainRegular",
            "m_setup": "0.00",
            "q_setup": "0.00",
            "s_setup": "0.00",
            "a_setup": "0.00",
            "b_setup": "0.00",
            "t_setup": "0.00",
            "p4_setup": "0.00",
            "p5_setup": "0.00",
            "d_setup": "0.00",
            "w_setup": "0.00",
            "h_setup": "0.00",
            "m": "0.00",
            "q": "0.00",
            "s": "0.00",
            "a": "0.00",
            "b": "0.00",
            "t": "0.00",
            "p4": "0.00",
            "p5": "0.00",
            "d": "0.00",
            "w": "0.00",
            "h": "0.00"
        },
        {
            "id": "3",
            "name": ".org",
            "category_id": "1",
            "category_name": "Simple",
            "description": "",
            "popularity": "0",
            "rel": "Product",
            "paytype": "DomainRegular",
            "m_setup": "0.00",
            "q_setup": "0.00",
            "s_setup": "0.00",
            "a_setup": "0.00",
            "b_setup": "0.00",
            "t_setup": "0.00",
            "p4_setup": "0.00",
            "p5_setup": "0.00",
            "d_setup": "0.00",
            "w_setup": "0.00",
            "h_setup": "0.00",
            "m": "0.00",
            "q": "0.00",
            "s": "0.00",
            "a": "0.00",
            "b": "0.00",
            "t": "0.00",
            "p4": "0.00",
            "p5": "0.00",
            "d": "0.00",
            "w": "0.00",
            "h": "0.00"
        },
        {
            "id": "4",
            "name": ".me",
            "category_id": "1",
            "category_name": "Simple",
            "description": "",
            "popularity": "0",
            "rel": "Product",
            "paytype": "DomainRegular",
            "m_setup": "0.00",
            "q_setup": "0.00",
            "s_setup": "0.00",
            "a_setup": "0.00",
            "b_setup": "0.00",
            "t_setup": "0.00",
            "p4_setup": "0.00",
            "p5_setup": "0.00",
            "d_setup": "0.00",
            "w_setup": "0.00",
            "h_setup": "0.00",
            "m": "0.00",
            "q": "0.00",
            "s": "0.00",
            "a": "0.00",
            "b": "0.00",
            "t": "0.00",
            "p4": "0.00",
            "p5": "0.00",
            "d": "0.00",
            "w": "0.00",
            "h": "0.00"
        },
        {
            "id": "5",
            "name": ".mobi",
            "category_id": "1",
            "category_name": "Simple",
            "description": "",
            "popularity": "0",
            "rel": "Product",
            "paytype": "DomainRegular",
            "m_setup": "0.00",
            "q_setup": "0.00",
            "s_setup": "0.00",
            "a_setup": "0.00",
            "b_setup": "0.00",
            "t_setup": "0.00",
            "p4_setup": "0.00",
            "p5_setup": "0.00",
            "d_setup": "0.00",
            "w_setup": "0.00",
            "h_setup": "0.00",
            "m": "0.00",
            "q": "0.00",
            "s": "0.00",
            "a": "0.00",
            "b": "0.00",
            "t": "0.00",
            "p4": "0.00",
            "p5": "0.00",
            "d": "0.00",
            "w": "0.00",
            "h": "0.00"
        },
        {
            "id": "6",
            "name": ".us",
            "category_id": "1",
            "category_name": "Simple",
            "description": "",
            "popularity": "0",
            "rel": "Product",
            "paytype": "DomainRegular",
            "m_setup": "0.00",
            "q_setup": "0.00",
            "s_setup": "0.00",
            "a_setup": "0.00",
            "b_setup": "0.00",
            "t_setup": "0.00",
            "p4_setup": "0.00",
            "p5_setup": "0.00",
            "d_setup": "0.00",
            "w_setup": "0.00",
            "h_setup": "0.00",
            "m": "0.00",
            "q": "0.00",
            "s": "0.00",
            "a": "0.00",
            "b": "0.00",
            "t": "0.00",
            "p4": "0.00",
            "p5": "0.00",
            "d": "0.00",
            "w": "0.00",
            "h": "0.00"
        },
        {
            "id": "7",
            "name": ".co",
            "category_id": "1",
            "category_name": "Simple",
            "description": "",
            "popularity": "0",
            "rel": "Product",
            "paytype": "DomainRegular",
            "m_setup": "0.00",
            "q_setup": "0.00",
            "s_setup": "0.00",
            "a_setup": "0.00",
            "b_setup": "0.00",
            "t_setup": "0.00",
            "p4_setup": "0.00",
            "p5_setup": "0.00",
            "d_setup": "0.00",
            "w_setup": "0.00",
            "h_setup": "0.00",
            "m": "0.00",
            "q": "0.00",
            "s": "0.00",
            "a": "0.00",
            "b": "0.00",
            "t": "0.00",
            "p4": "0.00",
            "p5": "0.00",
            "d": "0.00",
            "w": "0.00",
            "h": "0.00"
        }
    ],
    "call": "getOtherPopularProducts",
    "server_time": 1670317233
}
Last Updated: 5/12/2023, 3:22:14 PM