|
1 | | ---- |
2 | | -name: Get map info (multiple) |
3 | | - |
4 | | -url: https://prod.trackmania.core.nadeo.online |
5 | | -method: GET |
6 | | -route: /maps/?mapIdList={mapIdList}&mapUidList={mapUidList} |
7 | | - |
8 | | -audience: NadeoServices |
9 | | - |
10 | | -parameters: |
11 | | - query: |
12 | | - - name: mapIdList |
13 | | - type: string |
14 | | - description: A comma-separated list of map IDs |
15 | | - required: true |
16 | | - - name: mapUidList |
17 | | - type: string |
18 | | - description: A comma-separated list of map UIDs |
19 | | - required: true |
20 | | ---- |
21 | | - |
22 | | -Gets information about multiple maps via their IDs/UIDs. |
23 | | - |
24 | | ---- |
25 | | - |
26 | | -**Remarks**: |
27 | | - |
28 | | -- The two parameters work the same way, but you can only use one of them at a time. |
29 | | -- This endpoint has no intrinsic limit on the number of map IDs requested, but it will return a `414` error if the request URI length is 8220 characters or more (corresponding to just over 200 map IDs or almost 300 map UIDs, depending on how you encode the URI). |
30 | | - |
31 | | ---- |
32 | | - |
33 | | -**Example request**: |
34 | | - |
35 | | -```plain |
36 | | -GET https://prod.trackmania.core.nadeo.online/maps/?mapUidList=k45jQI6Y7XrPfe1T0hZhj4pKzY2,cmJJhEUYqesM6Tqpeds0lQudvOb |
37 | | -``` |
38 | | - |
39 | | -**Example response**: |
40 | | - |
41 | | -```json |
42 | | -[ |
43 | | - { |
44 | | - "author": "73eba009-a074-4439-916f-d25d7fa7bc1c", |
45 | | - "authorScore": 102399, |
46 | | - "bronzeScore": 154000, |
47 | | - "collectionName": "Stadium", |
48 | | - "createdWithGamepadEditor": false, |
49 | | - "createdWithSimpleEditor": false, |
50 | | - "filename": "Laserhawk_-_Megacity_Race.Map.Gbx", |
51 | | - "goldScore": 109000, |
52 | | - "isPlayable": true, |
53 | | - "mapId": "a74716be-d124-4de1-87c2-834304ccef5b", |
54 | | - "mapStyle": "", |
55 | | - "mapType": "TrackMania\\TM_Race", |
56 | | - "mapUid": "cmJJhEUYqesM6Tqpeds0lQudvOb", |
57 | | - "name": "$i$a1bLaserhawk $fff- Megacity Race", |
58 | | - "silverScore": 123000, |
59 | | - "submitter": "7ad33388-641e-4497-b063-c88e75552645", |
60 | | - "timestamp": "2023-10-23T17:05:25+00:00", |
61 | | - "fileUrl": "https://core.trackmania.nadeo.live/storageObjects/6d67fafb-1be8-451a-91ca-661e019a9087", |
62 | | - "thumbnailUrl": "https://core.trackmania.nadeo.live/storageObjects/70e82469-68b6-454a-a105-2af7c3279a4c.jpg" |
63 | | - }, |
64 | | - { |
65 | | - "author": "7cd60a75-609a-4e64-b286-16f329878249", |
66 | | - "authorScore": 26972, |
67 | | - "bronzeScore": 41000, |
68 | | - "collectionName": "Stadium", |
69 | | - "createdWithGamepadEditor": false, |
70 | | - "createdWithSimpleEditor": false, |
71 | | - "filename": "SnowIsBack.Map.Gbx", |
72 | | - "goldScore": 29000, |
73 | | - "isPlayable": true, |
74 | | - "mapId": "5546883f-b1ed-49e0-9397-55fc46f1d00c", |
75 | | - "mapStyle": "", |
76 | | - "mapType": "TrackMania\\TM_Race", |
77 | | - "mapUid": "k45jQI6Y7XrPfe1T0hZhj4pKzY2", |
78 | | - "name": "SnowIsBack", |
79 | | - "silverScore": 33000, |
80 | | - "submitter": "7cd60a75-609a-4e64-b286-16f329878249", |
81 | | - "timestamp": "2023-11-21T16:50:01+00:00", |
82 | | - "fileUrl": "https://core.trackmania.nadeo.live/storageObjects/5b244c36-da6d-45f2-bbd3-c97ed4b5efc0", |
83 | | - "thumbnailUrl": "https://core.trackmania.nadeo.live/storageObjects/647ea926-6959-439e-a6e2-e7a78caa9529.jpg" |
84 | | - } |
85 | | -] |
86 | | -``` |
87 | | - |
88 | | -If a `mapId` is invalid, the response will contain an error message: |
89 | | - |
90 | | -```json |
91 | | -{ |
92 | | - "code": "C-AA-00-03", |
93 | | - "correlation_id": "10d26dadac018cccf1c9bcf138e3fb1c", |
94 | | - "message": "There was a validation error.", |
95 | | - "info": { |
96 | | - "mapIdList": "Invalid uuid." |
97 | | - } |
98 | | -} |
99 | | -``` |
100 | | - |
101 | | -If a `mapUid` is invalid, that map will not be returned in the response. |
| 1 | +--- |
| 2 | +name: Get map info (multiple) |
| 3 | + |
| 4 | +url: https://prod.trackmania.core.nadeo.online |
| 5 | +method: GET |
| 6 | +route: /maps/?mapIdList={mapIdList}&mapUidList={mapUidList} |
| 7 | + |
| 8 | +audience: NadeoServices |
| 9 | + |
| 10 | +parameters: |
| 11 | + query: |
| 12 | + - name: mapIdList |
| 13 | + type: string |
| 14 | + description: A comma-separated list of map IDs |
| 15 | + required: true |
| 16 | + - name: mapUidList |
| 17 | + type: string |
| 18 | + description: A comma-separated list of map UIDs |
| 19 | + required: true |
| 20 | +--- |
| 21 | + |
| 22 | +<div class="notification is-warning"> |
| 23 | + |
| 24 | +This endpoint is deprecated and may be removed in the future. Use the [info (ID)](/core/maps/info-multiple-id) or [info (UID)](/core/maps/info-multiple-uid) endpoints instead. |
| 25 | + |
| 26 | +</div> |
| 27 | + |
| 28 | +Gets information about multiple maps via their IDs/UIDs. |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +**Remarks**: |
| 33 | + |
| 34 | +- The two parameters work the same way, but you can only use one of them at a time. |
| 35 | +- This endpoint has no intrinsic limit on the number of map IDs requested, but it will return a `414` error if the request URI length is 8220 characters or more (corresponding to just over 200 map IDs or almost 300 map UIDs, depending on how you encode the URI). |
| 36 | + |
| 37 | +--- |
| 38 | + |
| 39 | +**Example request**: |
| 40 | + |
| 41 | +```plain |
| 42 | +GET https://prod.trackmania.core.nadeo.online/maps/?mapUidList=k45jQI6Y7XrPfe1T0hZhj4pKzY2,cmJJhEUYqesM6Tqpeds0lQudvOb |
| 43 | +``` |
| 44 | + |
| 45 | +**Example response**: |
| 46 | + |
| 47 | +```json |
| 48 | +[ |
| 49 | + { |
| 50 | + "author": "73eba009-a074-4439-916f-d25d7fa7bc1c", |
| 51 | + "authorScore": 102399, |
| 52 | + "bronzeScore": 154000, |
| 53 | + "collectionName": "Stadium", |
| 54 | + "createdWithGamepadEditor": false, |
| 55 | + "createdWithSimpleEditor": false, |
| 56 | + "filename": "Laserhawk_-_Megacity_Race.Map.Gbx", |
| 57 | + "goldScore": 109000, |
| 58 | + "isPlayable": true, |
| 59 | + "mapId": "a74716be-d124-4de1-87c2-834304ccef5b", |
| 60 | + "mapStyle": "", |
| 61 | + "mapType": "TrackMania\\TM_Race", |
| 62 | + "mapUid": "cmJJhEUYqesM6Tqpeds0lQudvOb", |
| 63 | + "name": "$i$a1bLaserhawk $fff- Megacity Race", |
| 64 | + "silverScore": 123000, |
| 65 | + "submitter": "7ad33388-641e-4497-b063-c88e75552645", |
| 66 | + "timestamp": "2023-10-23T17:05:25+00:00", |
| 67 | + "fileUrl": "https://core.trackmania.nadeo.live/storageObjects/6d67fafb-1be8-451a-91ca-661e019a9087", |
| 68 | + "thumbnailUrl": "https://core.trackmania.nadeo.live/storageObjects/70e82469-68b6-454a-a105-2af7c3279a4c.jpg" |
| 69 | + }, |
| 70 | + { |
| 71 | + "author": "7cd60a75-609a-4e64-b286-16f329878249", |
| 72 | + "authorScore": 26972, |
| 73 | + "bronzeScore": 41000, |
| 74 | + "collectionName": "Stadium", |
| 75 | + "createdWithGamepadEditor": false, |
| 76 | + "createdWithSimpleEditor": false, |
| 77 | + "filename": "SnowIsBack.Map.Gbx", |
| 78 | + "goldScore": 29000, |
| 79 | + "isPlayable": true, |
| 80 | + "mapId": "5546883f-b1ed-49e0-9397-55fc46f1d00c", |
| 81 | + "mapStyle": "", |
| 82 | + "mapType": "TrackMania\\TM_Race", |
| 83 | + "mapUid": "k45jQI6Y7XrPfe1T0hZhj4pKzY2", |
| 84 | + "name": "SnowIsBack", |
| 85 | + "silverScore": 33000, |
| 86 | + "submitter": "7cd60a75-609a-4e64-b286-16f329878249", |
| 87 | + "timestamp": "2023-11-21T16:50:01+00:00", |
| 88 | + "fileUrl": "https://core.trackmania.nadeo.live/storageObjects/5b244c36-da6d-45f2-bbd3-c97ed4b5efc0", |
| 89 | + "thumbnailUrl": "https://core.trackmania.nadeo.live/storageObjects/647ea926-6959-439e-a6e2-e7a78caa9529.jpg" |
| 90 | + } |
| 91 | +] |
| 92 | +``` |
| 93 | + |
| 94 | +If a `mapId` is invalid, the response will contain an error message: |
| 95 | + |
| 96 | +```json |
| 97 | +{ |
| 98 | + "code": "C-AA-00-03", |
| 99 | + "correlation_id": "10d26dadac018cccf1c9bcf138e3fb1c", |
| 100 | + "message": "There was a validation error.", |
| 101 | + "info": { |
| 102 | + "mapIdList": "Invalid uuid." |
| 103 | + } |
| 104 | +} |
| 105 | +``` |
| 106 | + |
| 107 | +If a `mapUid` is invalid, that map will not be returned in the response. |
0 commit comments