Share of Search

This API returns the search details of the given brand, merchant and date.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Sample Response

{
    "success": true,
    "message": "",
    "errorCode": "",
    "result": {
        "data": [
            {
                "brand": "anmum",
                "merchant": "shopee",
                "keyword": "maternal milk",
                "channel": "web",
                "share": "20.00",
                "tags": [
                    "category"
                ],
                "searchDetails": [
                    {
                        "productTitle": "Enfamama A+ Maternal & Lactating Milk Formula (600g)",
                        "productCode": "",
                        "merchantProductId": "3727586799",
                        "productUrl": "",
                        "brand": "enfamama",
                        "skuIds": [
                            "60073857227"
                        ],
                        "type": "organic",
                        "rank": 1
                    },
                    {
                        "productTitle": "Enfamama A+ Maternal & Lactating Formula 50g",
                        "productCode": "",
                        "merchantProductId": "2162170523",
                        "productUrl": "",
                        "brand": "enfamama",
                        "skuIds": [
                            "4693710249",
                            "4693710250"
                        ],
                        "type": "organic",
                        "rank": 2
                    },
                    {
                        "productTitle": "Promama Maternal Nutrition 600g",
                        "productCode": "",
                        "merchantProductId": "961318537",
                        "productUrl": "",
                        "brand": "wyeth",
                        "skuIds": [
                            "961318537"
                        ],
                        "type": "organic",
                        "rank": 3
                    },
                    {
                        "productTitle": "Enfamama A+ Chocolate - 900g",
                        "productCode": "",
                        "merchantProductId": "7780243155",
                        "productUrl": "",
                        "brand": "enfamama",
                        "skuIds": [],
                        "type": "organic",
                        "rank": 4
                    },
                    {
                        "productTitle": "Anmum Materna (650g)",
                        "productCode": "",
                        "merchantProductId": "1839109288",
                        "productUrl": "",
                        "brand": "anmum",
                        "skuIds": [
                            "3152335775"
                        ],
                        "type": "organic",
                        "rank": 5
                    }
                ]
            }
        ],
        "total": 1,
        "totalSearchResults": 5,
        "type": "shareOfSearch",
        "date": "2021-05-02"
    }
}

Response Fields

FieldDescriptionData Type
successIndicates if API response is success or not.bool
messageResponse message. Typically populated in error scenarios.string
errorCodeError code.string
brandBrand name.string
merchantMerchant name.string
keywordSearch keyword.string
shareBrand share percentage in the search results.number
tagsKeyword group tag.list
channelWeb or App.string
searchDetailsSearch results.list
totalTotal number of keywords.number
totalSearchResultsTotal number of search results.number
dateDate.string

Exceptions and Error Conditions

The Share of Search API will look for matching data based on the filters applied. However, there are a few scenarios where the API may not be able to return a valid response. For example

  • Data request for a future date.
  • Data requested for invalid merchant/brand combination.
  • Data request for the invalid channel.
  • Invalid API key.

In all the above scenarios, the Share of Search API would return with an error response.
Example:

{
  "success": false,
  "message": "You can not request for future date",
  "errorCode": "INVALID_DATE",
  "result": ""
}
Query Params
string
required

Country code (e.g. us (USA), in (India), my (Malaysia)).

string
required
Defaults to shopee

Merchant name.

string
required
Defaults to anmum

Brand name.

string

Competitor brand name.

number

The threshold will be the number of results per keyword. Default and maximum permissible value is 20.

string

Channel type(web or app). Default value is web.

string

Search type(sponsored, organic, all). Default value is organic.

date
required
Defaults to 2021-05-02

Date in yyyy-mm-dd format.

Headers
string
required
Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!