Jump to content

Filtering data


  • Please log in to reply
2 replies to this topic

ElJonez #1 Posted 06 August 2020 - 08:33 AM


  • Player
  • 15317 battles
  • 3
  • [22OTC] 22OTC
  • Member since:

Hi guys,

I'm struggling to figure out how filters work for the tankopedia list of achievements(medals). I just want to get a few medals back, not all of them.

I've tried using this to filter the response but it doesn't work, any ideas on how I can fix this?


Below is an example where I'd just like the crucial shot medal returned:



this is the response I get back:

    "status": "error",
    "error": {
        "field": "fields",
        "message": "INVALID_FIELDS",
        "code": 407,
        "value": "data.crucialShotMedal"


Is it possible to filter like this? 


I've also tried referencing the fields individually but I get the same error response: https://api.worldoft...licatyionIdHere*&fields=data.crucialShotMedal.name



Heres a typical response from the api call without me trying to filter:

  "status": "ok",
    "meta": {
        "count": 310
    "data": {
        "crucialShotMedal": {
            "name": "crucialShotMedal",
            "outdated": false,
            "section": "special",
            "section_order": 1,
            "image_big": "http://api.worldofta...alShotMedal.png",
            "options": null,
            "hero_info": null,
            "name_i18n": "Crucial Shot",
            "order": 105,
            "type": "repeatable",
            "image": "http://api.worldofta...alShotMedal.png",
            "condition": "• Win the battle.\n• Newly received awards are added together.\n• Can be obtained in Team Battles only.",
            "description": "In 20 battles, destroy the last enemy vehicle."
        "NY20A1": {
            "name": "NY20A1",
            "outdated": true,
            "section": "action",
            "section_order": 6,
            "image_big": "http://api.worldofta.../big/NY20A1.png",
            "options": null,
            "hero_info": null,
            "name_i18n": "Sleighed It, Class I",
            "order": 1443,
            "type": "single",
            "image": "http://api.worldofta...ment/NY20A1.png",
            "condition": "• You can increase the Festive Atmosphere by placing more decorations on the objects in your Garage.\n• Awarded to all players who fulfilled the respective condition during the 2019–2020 New Year special.",
            "description": "Reach Festive Atmosphere Level X by participating in the New Year special."


lgfrbcsgo #2 Posted 06 August 2020 - 01:10 PM

    Second Lieutenant

  • Player
  • 42609 battles
  • 1,109
  • Member since:
You can't filter the achievements. The filter applies to the fields of each achievement. E.g. "name_i18n, description" would be a valid filter.

ElJonez #3 Posted 06 August 2020 - 03:12 PM


  • Player
  • 15317 battles
  • 3
  • [22OTC] 22OTC
  • Member since:
Ahh ok, thanks for your help!

Also tagged with Filters

1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users