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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# API Documentation
|
| 2 |
+
|
| 3 |
+
This proxy server provides endpoints to access LINE Store API and CDN resources.
|
| 4 |
+
|
| 5 |
+
Base URL: `http://localhost:3000` (replace with your actual server URL)
|
| 6 |
+
|
| 7 |
+
## Root Endpoint
|
| 8 |
+
|
| 9 |
+
`GET /`
|
| 10 |
+
|
| 11 |
+
Returns information about the proxy server and example usage.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## Search Products
|
| 16 |
+
|
| 17 |
+
`GET /api/search`
|
| 18 |
+
|
| 19 |
+
Search for LINE products (stickers, emoji, etc.).
|
| 20 |
+
|
| 21 |
+
### Query Parameters
|
| 22 |
+
|
| 23 |
+
- `category`: string (required)
|
| 24 |
+
- Values: 'sticker', 'emoji', 'theme', 'family'
|
| 25 |
+
- `type`: string (required)
|
| 26 |
+
- Values: 'ALL', 'OFFICIAL', 'CREATORS', 'SUBSCRIPTION'
|
| 27 |
+
- `query`: string (required)
|
| 28 |
+
- Search query string
|
| 29 |
+
- `offset`: number (required)
|
| 30 |
+
- Pagination offset
|
| 31 |
+
- `limit`: number (required)
|
| 32 |
+
- Number of results to return
|
| 33 |
+
- `lang`: string (optional)
|
| 34 |
+
- Language code for search results (e.g., 'en', 'ja')
|
| 35 |
+
|
| 36 |
+
### Response
|
| 37 |
+
|
| 38 |
+
Returns the search results from LINE Store API in JSON format.
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
## Get Product Metadata
|
| 43 |
+
|
| 44 |
+
### Sticker Metadata
|
| 45 |
+
|
| 46 |
+
`GET /api/meta/sticker/:productId`
|
| 47 |
+
|
| 48 |
+
Get metadata for a sticker product.
|
| 49 |
+
|
| 50 |
+
#### Path Parameters
|
| 51 |
+
|
| 52 |
+
- `productId`: number (integer)
|
| 53 |
+
- Sticker product ID
|
| 54 |
+
|
| 55 |
+
#### Query Parameters
|
| 56 |
+
|
| 57 |
+
- `device_type`: string (optional, default: 'ios')
|
| 58 |
+
- Values: 'ios', 'android', 'pc'
|
| 59 |
+
|
| 60 |
+
### Emoji Metadata
|
| 61 |
+
|
| 62 |
+
`GET /api/meta/emoji/:productId`
|
| 63 |
+
|
| 64 |
+
Get metadata for an emoji product.
|
| 65 |
+
|
| 66 |
+
#### Path Parameters
|
| 67 |
+
|
| 68 |
+
- `productId`: string (hexadecimal)
|
| 69 |
+
- Emoji product ID
|
| 70 |
+
|
| 71 |
+
#### Query Parameters
|
| 72 |
+
|
| 73 |
+
- `device_type`: string (optional, default: 'ios')
|
| 74 |
+
- Values: 'ios', 'android'
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## Download Stickers
|
| 79 |
+
|
| 80 |
+
### Sticker Package ZIP
|
| 81 |
+
|
| 82 |
+
`GET /api/download/sticker/zip/:productId`
|
| 83 |
+
|
| 84 |
+
Download a ZIP file containing all stickers in a product.
|
| 85 |
+
|
| 86 |
+
#### Path Parameters
|
| 87 |
+
|
| 88 |
+
- `productId`: number (integer)
|
| 89 |
+
- Sticker product ID
|
| 90 |
+
|
| 91 |
+
#### Query Parameters
|
| 92 |
+
|
| 93 |
+
- `device_type`: string (optional, default: 'ios')
|
| 94 |
+
- Values: 'ios', 'android'
|
| 95 |
+
- `is_static`: boolean (optional, default: false)
|
| 96 |
+
- If true, downloads static stickers only
|
| 97 |
+
- `size`: number (optional, default: 2)
|
| 98 |
+
- Values: 1 (normal), 2 (high resolution)
|
| 99 |
+
|
| 100 |
+
### Individual Sticker
|
| 101 |
+
|
| 102 |
+
`GET /api/download/sticker/single/:stickerId`
|
| 103 |
+
|
| 104 |
+
Download a single sticker image.
|
| 105 |
+
|
| 106 |
+
#### Path Parameters
|
| 107 |
+
|
| 108 |
+
- `stickerId`: number (integer)
|
| 109 |
+
- Individual sticker ID
|
| 110 |
+
|
| 111 |
+
#### Query Parameters
|
| 112 |
+
|
| 113 |
+
- `device_type`: string (optional, default: 'ios')
|
| 114 |
+
- Values: 'ios', 'android'
|
| 115 |
+
- `is_static`: boolean (optional, default: false)
|
| 116 |
+
- If true, downloads static version
|
| 117 |
+
- `size`: number (optional, default: 2)
|
| 118 |
+
- Values: 1 (normal), 2 (high resolution)
|
| 119 |
+
- `gif`: boolean (optional, default: false)
|
| 120 |
+
- If true and the sticker is animated, converts to GIF format
|
| 121 |
+
|
| 122 |
+
### Sticker Thumbnail
|
| 123 |
+
|
| 124 |
+
`GET /api/download/sticker/thumb/:productId`
|
| 125 |
+
|
| 126 |
+
Download the thumbnail image for a sticker product.
|
| 127 |
+
|
| 128 |
+
#### Path Parameters
|
| 129 |
+
|
| 130 |
+
- `productId`: number (integer)
|
| 131 |
+
- Sticker product ID
|
| 132 |
+
|
| 133 |
+
#### Query Parameters
|
| 134 |
+
|
| 135 |
+
- `device_type`: string (optional, default: 'ios')
|
| 136 |
+
- Values: 'ios', 'android', 'pc'
|
| 137 |
+
|
| 138 |
+
### Individual Sticker Sound
|
| 139 |
+
|
| 140 |
+
`GET /api/download/sticker/sound/single/:stickerId`
|
| 141 |
+
|
| 142 |
+
Download the sound file for an individual sticker.
|
| 143 |
+
|
| 144 |
+
#### Path Parameters
|
| 145 |
+
|
| 146 |
+
- `stickerId`: number (integer)
|
| 147 |
+
- Individual sticker ID
|
| 148 |
+
|
| 149 |
+
#### Query Parameters
|
| 150 |
+
|
| 151 |
+
- `device_type`: string (optional, default: 'ios')
|
| 152 |
+
- Values: 'ios', 'android', 'pc'
|
| 153 |
+
|
| 154 |
+
### Product Sound Thumbnail
|
| 155 |
+
|
| 156 |
+
`GET /api/download/sticker/sound/thumb/:productId`
|
| 157 |
+
|
| 158 |
+
Download the main sound file for a sticker product.
|
| 159 |
+
|
| 160 |
+
#### Path Parameters
|
| 161 |
+
|
| 162 |
+
- `productId`: number (integer)
|
| 163 |
+
- Sticker product ID
|
| 164 |
+
|
| 165 |
+
#### Query Parameters
|
| 166 |
+
|
| 167 |
+
- `device_type`: string (optional, default: 'ios')
|
| 168 |
+
- Values: 'ios', 'android', 'pc'
|
| 169 |
+
|
| 170 |
+
---
|
| 171 |
+
|
| 172 |
+
## Download Emojis
|
| 173 |
+
|
| 174 |
+
### Emoji Package ZIP
|
| 175 |
+
|
| 176 |
+
`GET /api/download/emoji/zip/:productId`
|
| 177 |
+
|
| 178 |
+
Download a ZIP file containing all emojis in a product.
|
| 179 |
+
|
| 180 |
+
#### Path Parameters
|
| 181 |
+
|
| 182 |
+
- `productId`: string (hexadecimal)
|
| 183 |
+
- Emoji product ID
|
| 184 |
+
|
| 185 |
+
#### Query Parameters
|
| 186 |
+
|
| 187 |
+
- `device_type`: string (optional, default: 'ios')
|
| 188 |
+
- Values: 'ios', 'android'
|
| 189 |
+
- `is_static`: boolean (optional, default: false)
|
| 190 |
+
- If true, downloads static emojis only
|
| 191 |
+
|
| 192 |
+
### Individual Emoji
|
| 193 |
+
|
| 194 |
+
`GET /api/download/emoji/single/:productId/:iconIndex`
|
| 195 |
+
|
| 196 |
+
Download a single emoji image.
|
| 197 |
+
|
| 198 |
+
#### Path Parameters
|
| 199 |
+
|
| 200 |
+
- `productId`: string (hexadecimal)
|
| 201 |
+
- Emoji product ID
|
| 202 |
+
- `iconIndex`: number (integer)
|
| 203 |
+
- Emoji icon index
|
| 204 |
+
|
| 205 |
+
#### Query Parameters
|
| 206 |
+
|
| 207 |
+
- `device_type`: string (optional, default: 'ios')
|
| 208 |
+
- Values: 'ios', 'android'
|
| 209 |
+
- `is_static`: boolean (optional, default: false)
|
| 210 |
+
- If true, downloads static version
|
| 211 |
+
- `gif`: boolean (optional, default: false)
|
| 212 |
+
- If true and the emoji is animated, converts to GIF format
|
| 213 |
+
|
| 214 |
+
### Emoji Thumbnail
|
| 215 |
+
|
| 216 |
+
`GET /api/download/emoji/thumb/:productId`
|
| 217 |
+
|
| 218 |
+
Download the thumbnail image for an emoji product.
|
| 219 |
+
|
| 220 |
+
#### Path Parameters
|
| 221 |
+
|
| 222 |
+
- `productId`: string (hexadecimal)
|
| 223 |
+
- Emoji product ID
|
README.md
CHANGED
|
@@ -12,3 +12,7 @@ app_port: 3000
|
|
| 12 |
Proxy server for LINE store API and CDN.
|
| 13 |
|
| 14 |
For educational and research purposes only.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
Proxy server for LINE store API and CDN.
|
| 13 |
|
| 14 |
For educational and research purposes only.
|
| 15 |
+
|
| 16 |
+
## API Documentation
|
| 17 |
+
|
| 18 |
+
Please refer to [API.md](API.md).
|