ThalosES / vinted-rs

A complete Vinted API-Wrapper in Rust
https://docs.rs/vinted-rs/latest/vinted_rs/
5 stars 0 forks source link

country ids filter #112

Open mymtw opened 6 days ago

mymtw commented 6 days ago

is it possible to filter by country and order=newest_first in same query

https://www.vinted.es/catalog?time=1727132656&catalog[]=1904&order=newest_first&search_text=&page=1&country_ids=7

as I can see it not filtering by country id

0xCAB0 commented 19 hours ago

We currently support both query parameters

https://github.com/ThalosES/vinted-rs/blob/dfd7ca2a35a87672f22c11577364f1ecb8e6275e/src/queries.rs#L645

https://github.com/ThalosES/vinted-rs/blob/dfd7ca2a35a87672f22c11577364f1ecb8e6275e/src/queries.rs#L683

Please, if clarify more the question for further detail. Thank you.

mymtw commented 19 hours ago

@0xCAB0 thx, for reply could you try this api query for vinted?

https://www.vinted.es/api/v2/catalog/items?catalog_ids=0&country_ids=7&order=newest_first

country_id = 7 - it's Spain

e.g. I opened 2nd ad:

image

https://www.vinted.es/items/5129184355-robe-courte

image

is api of vinted not filtering by country id? don't you know?