Sticker Search
The Sticker Search API let's users search for stickers with search tags. The search tags can be in any form, including emotion, situation, character, and more. The search results automatically adjust to your app category/subcategory and user locale information (language and country). This is so that your users get the perfect sticker results they need.
We recommend you follow the Best Practices listed below for best use of the APIs. After integrating the API, you can visit Stipop Dashboard to view sticker related analytics and configure sticker filter if you'd like to customize sticker listings for your app and service.
Request URL
GET
https://messenger.stipop.io/v1/search
Best Practices
- Use the language and country parameters (strongly recommended) to provide user locale information for best use. Stipop automatically tunes the sticker results so that they match your users' language preferences, cultures, and local trends. The default values for language and country are en and US.
- When a user sends sticker on any chat interface, you should Register Sticker Send. This is strongly recommended so that Stipop can analyze sticker send data to show most opt sticker pack list in the future.
- Use other search related endpoints like Trending Search Terms, and Recent Search. You can also see the tutorial for Optimizing Sticker Search for more specific guides.
- For the userId parameter, please don't use identical userId for multiple users. This is thoroughly monitored and in case of any misuse, the API key can be blocked from usage. The userId can be in any string format.
- Use the limit and pageNumber parameters to control optimal sticker loading. For example, set limit to '30' and use pageNumber 1,2,3... to show 30 sticker packs per page.
- You can add dimension (d) to sticker image url to optimize image size for specific UIs. For example, d=100x100 or d=300x300 (in pixels). The recommended default size is 300px and maximum is 700px.
Parameters
Required | Type | Description |
---|---|---|
apikey | string | Stipop API Key for your app. Visit developer dashboard for new API Key. |
Required | Type | Description |
---|---|---|
q | string | Search tag term or phrase. Supports 40+ languages. Example: Hello, Excited, Merry Christmas |
userId | string | Unique value for every user to distinguish unique users. The userId can be in any string format. Important: Using same userId for multiple users is not allowed. |
Strongly Recommended | Type | Description |
lang | string | Specify default language for regional stickers. Use a 2-letter ISO 639-1 language code. Default Value: en |
countryCode | string | Specify default country for local stickers. Use a 2-letter ISO 3166-1 country code. Default Value: US |
Optional | Type | Description |
limit | int | The maximum number of stickers per page. Use pageNumber accordingly for optimized sticker view. Default Value: 20 (max: 50) |
pageNumber | int | Specify pageNumber to show limit number of stickers per page. |
Example Request
Sample Call: Sticker Search
cURL
1
curl --location --request GET "https://messenger.stipop.io/v1/search?userId=9937&q=cute&lang=en&pageNumber=1&limit=10" --header "apikey:xxxxxxxxx"
Success Response
Success Response code 200
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
{
"header": {
"code": "0000",
"status": "success",
"message": "success"
},
"body": {
"stickerList": [
{
"stickerId": 51229,
"keyword": "cute",
"stickerImg": "https://img....70AAeHBn4N.png"
},
{
"stickerId": 50899,
"keyword": "cute",
"stickerImg": "https://img....70AAeHBn4N.png"
},
{
"stickerId": 50898,
"keyword": "cute",
"stickerImg": "https://img....70AAeHBn4N.png"
},
................
],
"pageMap": {
"pageNumber": 1,
"onePageCountRow": 10,
"totalCount": 80,
"pageCount": 8,
"groupCount": 1,
"groupNumber": 0,
"pageGroupCount": 10,
"startPage": 1,
"endPage": 8,
"startRow": 0,
"endRow": 10,
"modNum": 10,
"listStartNumber": 80
}
}
}
Response Format
Name | Type | Description |
---|---|---|
stickerId | int | Sticker ID |
keyword | string | Search tag |
packageName | string | Sticker package name |
stickerImg | string | Sticker image url |
Error Response
Error | Code | Description |
---|---|---|
Description | 9000 | The API key used does not exist |
server error | 1000 | Unable to receive data from the server |
Was this page helpful?
We’re here to help. Contact us.