Git Product home page Git Product logo

bazos.cz-api's Introduction

To get access to the full API you'll have to do some debugging yourself (which is surprisingly easy) because I'm too lazy to write these down. Tutorial on how to do this is on the bottom of the page.

get ads - https://www.bazos.cz/api/v1/ads.php?offset={offset}&limit={limit}&section={section}&query={query}&price_from={from}&price_to={to}&sort={sort}
can also search by user (email={email}&phone={phone})
## offset - 0, by increments of 20 (up to 200 but anything else than 20 will likely result in ban)
## limit - 20, by increments of 20 (up to 200 but anything else than 20 will likely result in ban)
    sections:
        &section=XX:
            AU = Auto
            DE = Deti
            DU = Dum a Zahrada
            EL = Elektro
            FO = Foto
            HU = Hudba
            KN = Knihy
            MO = Mobily
            MT = Motorky
            NA = Nabytek
            OB = Obleceni
            PC = PC
            PR = Prace
            RE = Reality
            SL = Sluzby
            SP = Sport
            ST = Stroje
            VS = Vstupenky
            ZV = Zvirata
            OS = Ostatni
    sort types:
        date
        price_asc
        price_desc
        distance:
            must specify:
                &latitude=xx.xxxxxxx&longitude=xx.xxxxxxx

get ratings of user (may require token):
	https://www.bazos.cz/api/v1/ratings.php?offset={offset}&limit={limit}&phone={phone}&email={email}

ad detail:
	https://www.bazos.cz/api/v1/ad-detail-2.php?ad_id={id}&edit=false

to prevent illegal API usage detection:
-do not make fast and repetitive requests
-use these headers:
	user-agent: bazos/2.12.1 (cz.ackee.bazos; build:3582; android {random version}; model:{can be random, preferably android phone}) okhttp/4.8.1
	x-deviceid: {8 digits}
BEWARE OF THIS, YOUR IP MAY GET BLOCKED IF YOU DO NOT PROPERLY IMPLEMENT THESE. I AM NOT RESPONSIBLE IF YOU GET BLOCKED EVEN WHEN USING THESE


To further debug and understand the API:
	1) install the modified apk onto an android device/emulator
	2) download HTTP Toolkit on both your PC and the android device and connect the device to your PC (https://httptoolkit.tech/)
	3) debug

bazos.cz-api's People

Contributors

exzedik avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.