-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi-vinted.json
More file actions
505 lines (505 loc) · 20.1 KB
/
Copy pathopenapi-vinted.json
File metadata and controls
505 lines (505 loc) · 20.1 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
{
"openapi": "3.1.0",
"info": {
"title": "ScrapeBadger Vinted API",
"version": "1.0.0",
"description": "Vinted marketplace scraping API for searching items, fetching details, user profiles, and reference data."
},
"servers": [
{
"url": "https://scrapebadger.com",
"description": "Production"
}
],
"security": [
{
"apiKeyAuth": []
}
],
"paths": {
"/v1/vinted/search": {
"get": {
"operationId": "searchVintedItems",
"summary": "Search Items",
"description": "Search Vinted catalog items with filters.",
"parameters": [
{
"name": "query",
"in": "query",
"required": true,
"schema": { "type": "string" },
"description": "Search query string. Matches against item titles and descriptions."
},
{
"name": "market",
"in": "query",
"schema": { "type": "string", "default": "fr" },
"description": "Vinted market to search (e.g. fr, de, uk, it, es, pl, us)."
},
{
"name": "page",
"in": "query",
"schema": { "type": "integer", "default": 1, "minimum": 1 },
"description": "Page number for paginated results."
},
{
"name": "per_page",
"in": "query",
"schema": { "type": "integer", "default": 24, "minimum": 1, "maximum": 96 },
"description": "Number of items per page."
},
{
"name": "price_from",
"in": "query",
"schema": { "type": "number" },
"description": "Minimum price filter in the market's local currency."
},
{
"name": "price_to",
"in": "query",
"schema": { "type": "number" },
"description": "Maximum price filter in the market's local currency."
},
{
"name": "brand_ids",
"in": "query",
"schema": { "type": "string" },
"description": "Comma-separated list of brand IDs to filter by."
},
{
"name": "color_ids",
"in": "query",
"schema": { "type": "string" },
"description": "Comma-separated list of color IDs to filter by."
},
{
"name": "status_ids",
"in": "query",
"schema": { "type": "string" },
"description": "Comma-separated list of condition status IDs to filter by."
},
{
"name": "order",
"in": "query",
"schema": {
"type": "string",
"default": "relevance",
"enum": ["relevance", "price_low_to_high", "price_high_to_low", "newest_first"]
},
"description": "Sort order for results."
},
{
"name": "seller_country",
"in": "query",
"schema": { "type": "string" },
"description": "Comma-separated ISO 3166-1 alpha-2 country codes (case-insensitive) to keep only items whose seller is physically located in one of those countries (e.g. \"fr\" or \"fr,be\"). Vinted markets federate cross-border listings; this filters on the seller's real location, which is a different axis from `market`. Note: pagination totals stay unfiltered, so a page may return fewer than `per_page` items after filtering. Billing: 1 base credit + 1 credit per uncached seller looked up (seller country cached 7 days; cache hits are free)."
}
],
"responses": {
"200": {
"description": "Successful search",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": { "$ref": "#/components/schemas/VintedItemSummary" }
},
"total_entries": { "type": "integer", "description": "Total number of matching items across all pages. Reflects Vinted's unfiltered totals even when seller_country filtering is applied." },
"current_page": { "type": "integer", "description": "Current page number." },
"per_page": { "type": "integer", "description": "Number of items per page." },
"seller_country": { "type": "string", "nullable": true, "description": "Echo of the normalized seller_country filter that was applied (uppercase, comma-separated ISO-2 codes, e.g. \"FR,BE\"), or null when no filter was requested." }
}
}
}
}
}
}
}
},
"/v1/vinted/items/{item_id}": {
"get": {
"operationId": "getVintedItemDetail",
"summary": "Get Item Details",
"description": "Get detailed information about a Vinted item.",
"parameters": [
{
"name": "item_id",
"in": "path",
"required": true,
"schema": { "type": "integer" },
"description": "The unique Vinted item ID."
},
{
"name": "market",
"in": "query",
"schema": { "type": "string", "default": "fr" },
"description": "Vinted market where the item is listed (e.g. fr, de, uk)."
}
],
"responses": {
"200": {
"description": "Item details",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": { "type": "integer", "description": "Item ID." },
"title": { "type": "string", "description": "Item title." },
"description": { "type": "string", "nullable": true, "description": "Full item description text." },
"price": { "type": "string", "description": "Price in local currency." },
"currency": { "type": "string", "description": "ISO 4217 currency code." },
"brand_title": { "type": "string", "nullable": true, "description": "Brand name." },
"size_title": { "type": "string", "nullable": true, "description": "Size label." },
"status": { "type": "string", "nullable": true, "description": "Item condition (e.g. \"New with tags\", \"Good\")." },
"color1": { "type": "string", "nullable": true, "description": "Primary color." },
"color2": { "type": "string", "nullable": true, "description": "Secondary color." },
"photos": {
"type": "array",
"items": { "$ref": "#/components/schemas/VintedPhoto" },
"description": "Array of photo objects."
},
"url": { "type": "string", "description": "Full URL to the Vinted listing." },
"view_count": { "type": "integer", "description": "Number of views." },
"favourite_count": { "type": "integer", "description": "Number of favourites." },
"created_at": { "type": "string", "nullable": true, "description": "ISO 8601 timestamp when the item was listed." },
"updated_at": { "type": "string", "nullable": true, "description": "ISO 8601 timestamp of the last update." },
"user": { "$ref": "#/components/schemas/VintedUserSummary", "description": "Seller information." }
}
}
}
}
}
}
}
},
"/v1/vinted/users/{user_id}": {
"get": {
"operationId": "getVintedUserProfile",
"summary": "Get User Profile",
"description": "Get detailed profile information for a Vinted user.",
"parameters": [
{
"name": "user_id",
"in": "path",
"required": true,
"schema": { "type": "integer" },
"description": "The unique Vinted user ID."
},
{
"name": "market",
"in": "query",
"schema": { "type": "string", "default": "fr" },
"description": "Vinted market where the user is registered (e.g. fr, de, uk)."
}
],
"responses": {
"200": {
"description": "User profile",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": { "type": "integer", "description": "User ID." },
"login": { "type": "string", "description": "Username." },
"photo": {
"type": "object",
"nullable": true,
"properties": {
"url": { "type": "string" },
"width": { "type": "integer" },
"height": { "type": "integer" }
},
"description": "Profile photo."
},
"given_item_count": { "type": "integer", "description": "Number of items the user has sold." },
"item_count": { "type": "integer", "description": "Number of items currently listed." },
"followers_count": { "type": "integer", "description": "Number of followers." },
"following_count": { "type": "integer", "description": "Number of users followed." },
"feedback_reputation": { "type": "number", "description": "Reputation score between 0 and 1." },
"feedback_count": { "type": "integer", "description": "Total number of feedback ratings received." },
"city": { "type": "string", "nullable": true, "description": "User's city (if public)." },
"country_title": { "type": "string", "nullable": true, "description": "User's country." },
"last_loged_on": { "type": "string", "nullable": true, "description": "ISO 8601 timestamp of last login." },
"created_at": { "type": "string", "nullable": true, "description": "ISO 8601 timestamp when the account was created." }
}
}
}
}
}
}
}
},
"/v1/vinted/users/{user_id}/items": {
"get": {
"operationId": "getVintedUserItems",
"summary": "Get User Items",
"description": "List all active items from a specific Vinted user.",
"parameters": [
{
"name": "user_id",
"in": "path",
"required": true,
"schema": { "type": "integer" },
"description": "The unique Vinted user ID."
},
{
"name": "market",
"in": "query",
"schema": { "type": "string", "default": "fr" },
"description": "Vinted market where the user is registered (e.g. fr, de, uk)."
},
{
"name": "page",
"in": "query",
"schema": { "type": "integer", "default": 1, "minimum": 1 },
"description": "Page number for paginated results."
},
{
"name": "per_page",
"in": "query",
"schema": { "type": "integer", "default": 24, "minimum": 1, "maximum": 96 },
"description": "Number of items per page."
}
],
"responses": {
"200": {
"description": "User items list",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": { "$ref": "#/components/schemas/VintedItemSummary" }
},
"total_entries": { "type": "integer", "description": "Total number of items listed by this user." },
"current_page": { "type": "integer", "description": "Current page number." },
"per_page": { "type": "integer", "description": "Number of items per page." }
}
}
}
}
}
}
}
},
"/v1/vinted/brands": {
"get": {
"operationId": "searchVintedBrands",
"summary": "Search Brands",
"description": "Search for Vinted brand IDs by name.",
"parameters": [
{
"name": "query",
"in": "query",
"required": true,
"schema": { "type": "string" },
"description": "Brand name to search for. Partial matches are supported."
},
{
"name": "market",
"in": "query",
"schema": { "type": "string", "default": "fr" },
"description": "Vinted market to search brands in."
}
],
"responses": {
"200": {
"description": "Brand search results",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"brands": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "integer", "description": "Brand ID." },
"title": { "type": "string", "description": "Brand name." },
"slug": { "type": "string", "description": "URL-friendly brand name." },
"favourite_count": { "type": "integer", "description": "Number of users following this brand." },
"item_count": { "type": "integer", "description": "Number of items listed under this brand." }
}
}
}
}
}
}
}
}
}
}
},
"/v1/vinted/colors": {
"get": {
"operationId": "listVintedColors",
"summary": "List Colors",
"description": "List all available color filters for Vinted search.",
"parameters": [
{
"name": "market",
"in": "query",
"schema": { "type": "string", "default": "fr" },
"description": "Vinted market. Color names are localized to the market language."
}
],
"responses": {
"200": {
"description": "Available colors",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"colors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "integer", "description": "Color ID." },
"title": { "type": "string", "description": "Localized color name." },
"hex": { "type": "string", "description": "Hex color code (e.g. \"#000000\")." }
}
}
}
}
}
}
}
}
}
}
},
"/v1/vinted/statuses": {
"get": {
"operationId": "listVintedStatuses",
"summary": "List Conditions",
"description": "List all available item condition statuses for Vinted search.",
"parameters": [
{
"name": "market",
"in": "query",
"schema": { "type": "string", "default": "fr" },
"description": "Vinted market. Status names are localized to the market language."
}
],
"responses": {
"200": {
"description": "Available item conditions",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"statuses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "integer", "description": "Status ID." },
"title": { "type": "string", "description": "Localized condition label." }
}
}
}
}
}
}
}
}
}
}
},
"/v1/vinted/markets": {
"get": {
"operationId": "listVintedMarkets",
"summary": "List Markets",
"description": "List all supported Vinted markets with their domains and country codes.",
"parameters": [],
"responses": {
"200": {
"description": "Supported markets",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"markets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": { "type": "string", "description": "Market code (e.g. \"fr\", \"de\")." },
"title": { "type": "string", "description": "Country name." },
"domain": { "type": "string", "description": "Vinted domain for this market." },
"currency": { "type": "string", "description": "ISO 4217 currency code." }
}
}
}
}
}
}
}
}
}
}
}
},
"components": {
"securitySchemes": {
"apiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "x-api-key"
}
},
"schemas": {
"VintedItemSummary": {
"type": "object",
"properties": {
"id": { "type": "integer", "description": "Item ID." },
"title": { "type": "string", "description": "Item title." },
"price": { "type": "string", "description": "Price in local currency (e.g. \"15.00\")." },
"currency": { "type": "string", "description": "ISO 4217 currency code (e.g. \"EUR\")." },
"brand_title": { "type": "string", "nullable": true, "description": "Brand name." },
"size_title": { "type": "string", "nullable": true, "description": "Size label." },
"photo": { "$ref": "#/components/schemas/VintedPhoto" },
"url": { "type": "string", "description": "Full URL to the Vinted listing." },
"user": { "$ref": "#/components/schemas/VintedUserSummary" },
"favourite_count": { "type": "integer", "description": "Number of users who favourited this item." },
"seller_country_code": { "type": "string", "nullable": true, "description": "ISO 3166-1 alpha-2 code of the seller's physical country (e.g. \"IT\"), or null if it could not be resolved." }
}
},
"VintedPhoto": {
"type": "object",
"properties": {
"url": { "type": "string", "description": "Photo URL." },
"width": { "type": "integer", "nullable": true, "description": "Width in pixels." },
"height": { "type": "integer", "nullable": true, "description": "Height in pixels." }
}
},
"VintedUserSummary": {
"type": "object",
"properties": {
"id": { "type": "integer", "description": "User ID." },
"login": { "type": "string", "description": "Username." },
"photo": {
"type": "object",
"nullable": true,
"properties": {
"url": { "type": "string" }
}
},
"feedback_reputation": { "type": "number", "nullable": true, "description": "Reputation score between 0 and 1." }
}
}
}
}
}