{
    "openapi": "3.1.0",
    "info": {
        "title": "Post free ads - Laybech — Public Classifieds Read-Only API",
        "version": "1.0.0",
        "description": "Laybech offers free local classified ads in India. Laybech is the next generation of free online classifieds. Laybech is a free classified ads website for cars, jobs, real estate, and everything else. Find what you're looking for or create your own ad for free! Unlike many other classified ads websites, Laybech is 100% free to use. Free to post an ad, free to browse listings, free to contact sellers."
    },
    "servers": [
        {
            "url": "https://laybach.in"
        }
    ],
    "paths": {
        "/api/v1/listings.json": {
            "get": {
                "operationId": "getListings",
                "summary": "Get active public classifieds listings",
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Keyword search in title and description"
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        },
                        "description": "Filter by category ID"
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Filter by city name"
                    },
                    {
                        "name": "region",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Filter by region or state name"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 500
                        },
                        "description": "Maximum number of listings to return"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "JSON list of active listings without personal contact data",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/v1/categories.json": {
            "get": {
                "operationId": "getCategories",
                "summary": "Get category hierarchy with active listing counts",
                "responses": {
                    "200": {
                        "description": "Category tree JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/v1/locations.json": {
            "get": {
                "operationId": "getLocations",
                "summary": "Get countries, regions, and cities with active listings",
                "responses": {
                    "200": {
                        "description": "Active locations JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}