ckatzorke / howlongtobeat

A simple api for https://howlongtobeat.com/
Do What The F*ck You Want To Public License
338 stars 45 forks source link

Can't hit with postman #57

Open CrovettoFederico opened 1 year ago

CrovettoFederico commented 1 year ago

I'm using the Search Example to Hit it with post man as I want to do something like this Wrapper on C# (for now it's only for personal use as is not as elaborated as this one :P ) The thing is I'm not being able to hit

https://howlongtobeat.com/api/search

This are all the headers I tried, mixing them up in case its needed image

And this is the Body / Payload I'm using

{
    "searchType": "games",
    "searchTerms": ["monkey"],
    "searchPage": 1,
    "size": 20,
    "searchOptions": {
        "games": {
            "userId": 0,
            "platform": "",
            "sortCategory": "popular",
            "rangeCategory": "main",
            "rangeTime": {
                "min": 0,
                "max": 0
            },
            "gameplay": {
                "perspective": "",
                "flow": "",
                "genre": ""
            },
            "modifier": ""
        },
        "users": {
            "sortCategory": "postcount"
        },
        "filter": "",
        "sort": 0,
        "randomizer": 0
    }
}

What I'm doing wrong? Did the /Search/Api changed?