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
4mo 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 →
olx.pt API
Search and monitor real estate listings and business advertisements from OLX Portugal with advanced filtering and pagination options. Get detailed information about specific listings including prices, descriptions, and seller details to find exactly what you're looking for.
olx.uz API
Search and browse product listings on OLX.uz across all categories, with full details including specifications, location, and pricing. Compare prices and product information to identify the best available deals.
olx.com.br API
Search and browse OLX Brazil real estate listings for properties available for sale or rent, with advanced filtering options to narrow down your search. Access comprehensive property details including descriptions, prices, locations, and other key information for each listing.
m.olx.pl API
Search and browse listings from OLX.pl across a wide range of categories including vehicles, electronics, real estate, fashion, and more. Access detailed offer information, price comparisons, seller details, and the latest postings — with support for keyword search and category filtering.
olx.in API
Search and browse OLX India listings across real estate and general products with powerful filtering by category and location. Get location suggestions, explore popular areas, and access detailed product information all in one place.
m.olx.ro API
Search and retrieve structured real estate listings from OLX Romania, including apartments, houses, land, and other properties with detailed information. Access category IDs and browse available properties by type to find what you're looking for on Romania's popular classifieds platform.
olx.ua API
Search and browse product listings on OLX.ua. Retrieve listings with pricing, descriptions, seller details, location information, and images across any category. Compare prices and explore current marketplace inventory with flexible keyword and category filters.
olx.ro API
Search OLX Romania listings and access detailed ad information including seller contact details. Get real-time access to product listings, pricing, and phone numbers for sellers across the platform.