Discover/olx.ba API
live

olx.ba APIolx.ba

Access OLX.ba listings via API. Search by keyword or category, filter apartments, and retrieve detailed attributes like area, floor, address, and condition.

Endpoints
3
Updated
3mo ago
Try it
Page number for pagination.
Search keywords (e.g. 'monitor', 'laptop').
Category ID to filter results (e.g. 23 for apartments, 163 for monitors).
api.parse.bot/scraper/c958fce0-a5f4-482f-8ab9-cc49cf848a74/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/c958fce0-a5f4-482f-8ab9-cc49cf848a74/search_listings?page=1&query=monitor' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Search for listings on olx.ba. Returns listing name, price, category_id, and URL with pagination metadata.

Input
ParamTypeDescription
pageintegerPage number for pagination.
querystringSearch keywords (e.g. 'monitor', 'laptop').
category_idintegerCategory ID to filter results (e.g. 23 for apartments, 163 for monitors).
Response
{
  "type": "object",
  "fields": {
    "meta": "object with pagination info: total, last_page, current_page, per_page, selected_category",
    "listings": "array of listing objects with id, title, price, category_id, url"
  },
  "sample": {
    "data": {
      "meta": {
        "total": 29960,
        "per_page": 20,
        "last_page": 1498,
        "current_page": 1,
        "selected_category": 0
      },
      "listings": [
        {
          "id": 68103279,
          "url": "https://olx.ba/artikal/68103279",
          "price": "289 KM",
          "title": "Gaming monitor 25 240Hz 24.5'' AOC 25G3ZM/BK FHD 0.5ms",
          "category_id": 163
        }
      ]
    },
    "status": "success"
  }
}

About the olx.ba API

The OLX.ba API provides 3 endpoints for searching and retrieving listing data from Bosnia's OLX marketplace. The search_listings endpoint returns paginated results across all categories with ID, title, price, and URL fields. get_listing_details drills into a single listing to expose property-specific fields like area, floor number, address, and condition. A dedicated search_apartments endpoint returns pre-fetched detail objects for the first five results per page.

Endpoints and Data Coverage

The search_listings endpoint accepts an optional query string, a category_id integer, and a page number. Results include a meta object covering total, last_page, current_page, and per_page counts alongside a selected_category value. Each listing object in the listings array contains id, title, price, category_id, and url. Category IDs are consistent — for example, 23 targets apartments and 163 targets monitors — making it straightforward to scope searches programmatically.

Listing Details

get_listing_details takes a listing_id string and returns a single object with up to ten fields. Core fields (id, url, title, price, location, category_id) are always present. Property-specific fields — area (in m²), address, condition, and floor_number — are returned when the listing carries that data, and null otherwise. This makes the endpoint useful for both real estate and general merchandise listings, though the nullable fields are most relevant for apartment and property categories.

Apartment-Specific Search

search_apartments is scoped to category 23 and accepts query and page parameters. It combines the search and detail steps: for the first five results on the requested page, it returns complete apartment objects including area, floor_number, address, and condition alongside the standard id, title, price, location, url, and category_id fields. The meta object follows the same pagination shape as search_listings. This endpoint is suited for pipelines that need enriched data without making a separate detail call per listing.

Common use cases
  • Aggregate apartment listings in Sarajevo by querying search_apartments with a city-name keyword and extracting area, price, and floor_number for comparison.
  • Build a price tracker for electronics by polling search_listings with a category_id and storing the price field from each result over time.
  • Populate a real estate database by iterating paginated search_listings results and enriching each with get_listing_details for address and condition data.
  • Filter listings by location by combining query with city names in search_listings and reading the location field from detail responses.
  • Monitor new listings in a specific category by checking meta.total across paginated search_listings calls and flagging increases.
  • Cross-reference apartment floor counts and areas from search_apartments to estimate per-m² pricing across different neighborhoods.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does OLX.ba offer an official developer API?+
OLX.ba does not publish a documented public developer API or API portal for third-party access to its listing data.
What does `search_apartments` return that `search_listings` does not?+
search_apartments returns fully detailed apartment objects — including area, floor_number, address, and condition — for the first five results on each page, without requiring a separate get_listing_details call. search_listings returns only id, title, price, category_id, and url per result, for all categories.
How many apartment results per page does `search_apartments` enrich with full details?+
Only the first five results on each page receive the full detail treatment including area, floor_number, address, and condition. The meta object still reflects the total count across all pages, but enriched detail objects are capped at five per page.
Does the API return seller contact information or phone numbers for listings?+
No — the current endpoints do not expose seller profiles, contact details, or phone numbers. The API covers listing attributes (title, price, area, address, condition, floor) and pagination metadata. You can fork this API on Parse and revise it to add an endpoint that retrieves seller or contact information if it becomes accessible.
Can I retrieve listings from OLX.ba regions outside Bosnia, or from other OLX country domains?+
The API is scoped to olx.ba and returns listings from that domain only. Coverage of other regional OLX platforms (such as olx.rs or olx.pl) is not included. You can fork this API on Parse and revise it to point at a different OLX country domain if needed.
Page content last updated . Spec covers 3 endpoints from olx.ba.
Related APIs in MarketplaceSee all →
lowes.com API
Search and browse products from Lowe's, including product listings by category, detailed product information, and pricing. Retrieve comprehensive details on specific items to compare options and make informed purchasing decisions.
bigbasket.com API
Browse and search BigBasket's online grocery catalog. Retrieve product details, pricing, stock availability, category trees, search suggestions, homepage promotions, and delivery coverage — all in one API.
jula.fi API
Search and browse products from Jula.fi to find hardware items with detailed information including prices (with and without VAT), stock availability, brand details, and product SKUs. Explore products by category or search for specific items to compare pricing and check real-time stock status.
carsforsale.com API
Search vehicle listings and browse detailed car inventory by make, model, and trim to find the perfect vehicle on CarsForSale.com. Access comprehensive listing details including pricing, specifications, and availability all in one place.
zapimoveis.com.br API
Search and filter real estate listings across Brazil on ZAP Imóveis — the country's largest property portal. Retrieve listings for sale or rent with detailed attributes including price, location, size, bedrooms, bathrooms, parking, and amenities. Supports location autocomplete, property type discovery, and full listing detail retrieval.
leroymerlin.fr API
Search and browse Leroy Merlin France's complete product catalog to find items by category, view pricing, product details, and compare offerings from Leroy Merlin and their online partners. Access real-time product information including names, IDs, URLs, and seller details to help you discover and evaluate home improvement and DIY products.
industrynet.com API
Find industrial suppliers and browse product categories across a comprehensive marketplace directory. Connect directly with suppliers by viewing detailed listings and submitting contact inquiries programmatically.
bilbasen.dk API
Search Denmark's largest car marketplace to find vehicles by make and model, then access detailed pricing and technical specifications including emissions, weight, MSRP, battery size, and equipment details. Get comprehensive car listings and full specs to compare vehicles on Bilbasen.dk.
OLX.ba API – Search Listings & Property Details · Parse