ff14-advanced-market-search/saddlebag-with-pockets

wow and ffxiv item search by name

Closed this issue · 1 comments

We should add a search bar at the top of the page that let you search for items by name and let you toggle between wow or ffxiv.

image

For FFXIV we could just have it direct to the item-data page. For wow we could have it hit this new api I made that

wow listings

This will get the listings info on a single item, it wont have data for the priceTimeData or quantityTimeData if not doing a commodity. The listingData is the current listings available.

http://api.saddlebagexchange.com/api/wow/listings

For a single item the

input

 {
    "homeRealmId": 3678,
    "region": "NA",
    "itemID": 204124
}

output

{
    "data": [
        {
            "avgQuantity": -1,
            "currentMarketValue": 5394,
            "currentQuantity": 539,
            "currentVsAvgQuantityPercent": 100,
            "historicMarketValue": 11462,
            "historicPrice": 1273.57,
            "itemID": 204124,
            "itemName": "Obsidian Combatant's Draconium Helm",
            "listingData": [
                {
                    "price": 599.44,
                    "quantity": 3
                },
                {
                    "price": 599.45,
                    "quantity": 8
                },
                {
                    "price": 599.46,
                    "quantity": 1
                },
                {
                    "price": 599.54,
                    "quantity": 5
                },
                {
                    "price": 599,
                    "quantity": 3
                },
                {
                    "price": 999.99,
                    "quantity": 7
                },
                {
                    "price": 1049,
                    "quantity": 12
                },
                {
                    "price": 9900.32,
                    "quantity": 4
                }
            ],
            "minPrice": 599.44,
            "percentChange": -52.93,
            "priceTimeData": [],
            "quantityState": "stable",
            "quantityTimeData": [],
            "salesPerDay": 9,
            "state": "decreasing"
        }
    ]
}

input

 {
    "homeRealmId": 3678,
    "region": "NA",
    "itemID": 190320
}

For commodities this will show the listing quantity and price over time and we should basically display the same charts as the ones seen on https://undermine.exchange/#us-thrall/190320

{
    "data": {
        "avgQuantity": 6054,
        "currentMarketValue": 114291450,
        "currentQuantity": 12834,
        "currentVsAvgQuantityPercent": 211.99,
        "historicMarketValue": 114546993,
        "historicPrice": 1954.36,
        "itemID": 201325,
        "itemName": "Draconic Augment Rune",
        "listingData": [
            {
                "price": 1950.0,
                "quantity": 77
            },
            {
                "price": 1958.01,
                "quantity": 28
            },
            {
                "price": 1959.01,
                "quantity": 47
            },
            {
                "price": 1979.01,
                "quantity": 199
            },
            {
                "price": 1980.99,
                "quantity": 65
            },
            {
                "price": 1990.01,
                "quantity": 50
            },
            {
                "price": 1990.85,
                "quantity": 21
            },
            {
                "price": 1994.85,
                "quantity": 3
            },
            {
                "price": 1994.99,
                "quantity": 32
            },
            .....
        ],
        "minPrice": 1950.0,
        "percentChange": -0.22,
        "priceTimeData": [
            2989.99,
            2800.99,
            3030.98,
            3095.08,
            3079.07,
            3179.0,
            3449.98,
            3449.97,
            3799.99,
            3799.9,
            .......
        ],
        "quantityState": "crashing",
        "quantityTimeData": [
            3058,
            2886,
            3295,
            3239,
            3410,
            2946,
            2477,
            2770,
            2484,
            1769,
            1973,
            .......
        ],
        "salesPerDay": 58611,
        "state": "stable"
    }
}

For pet item data it will be the combination of 2 new searches similar to ffxiv.

This one goes up top with all the statistics and highest priced servers:

This one goes below with all the lowest priced listings in order: