StoreDev / StoreLib

Storelib is a DotNet library that provides APIs to interact with the various Microsoft Store endpoints.
Mozilla Public License 2.0
139 stars 47 forks source link

[API] Use explicit search endpoint instead of autosuggest #5

Open tuxuser opened 4 years ago

tuxuser commented 4 years ago

Autosuggest only returns maximum of 10 entries. The actual search endpoint returns everything it can find.

Currently search endpoint is defined here: https://github.com/StoreDev/StoreLib/blob/f372a22a7ab41c8bf12b976f0cceb8d9db2ca846/StoreLib/Models/Endpoint.cs#L37-L38

The search endpoint is:

/// productFamily: "Games" or "Apps" ... maybe comma separated is possible too?
var DisplayCatalogSearch = $"https://displaycatalog.mp.microsoft.com/v7.0/productFamilies/{productFamily}/products?query={searchQuery}&market=US&languages=en-US&fieldsTemplate=details&platformdependencyname=windows.xbox";

Old endpoint could be renamed to DisplayCatalogAutosuggest or something along those lines.

Any suggestions?