Discover/olx.ro API
live

olx.ro APIolx.ro

Access OLX.ro listings via API. Search ads by keyword, city, and category. Get full ad details and retrieve seller phone numbers programmatically.

Endpoints
3
Updated
3mo ago
Try it
Number of results to return per page.
Search keyword to filter ads by title and description.
Pagination offset for retrieving subsequent pages of results.
City ID for location filtering (e.g., 39939 for Iasi, 1 for Bucuresti).
Category ID for filtering (e.g., 1211 for goods, 2529 for electronics, 1657 for automotive
api.parse.bot/scraper/5995040b-e07e-4598-ad31-7a3d97b425b7/<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/5995040b-e07e-4598-ad31-7a3d97b425b7/search_ads?limit=3&query=laptop&offset=0' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Search for ads on OLX.ro with optional filters for category and city. Returns a paginated list of ads including their IDs, titles, seller info, URLs, prices, and locations.

Input
ParamTypeDescription
limitintegerNumber of results to return per page.
querystringSearch keyword to filter ads by title and description.
offsetintegerPagination offset for retrieving subsequent pages of results.
city_idintegerCity ID for location filtering (e.g., 39939 for Iasi, 1 for Bucuresti).
category_idintegerCategory ID for filtering (e.g., 1211 for goods, 2529 for electronics, 1657 for automotive).
Response
{
  "type": "object",
  "fields": {
    "data": "array of ad objects containing id, url, title, description, params (price, state), user info, location, photos, and category",
    "links": "object with self, next, and first pagination URLs",
    "metadata": "object with total_elements, visible_total_count, promoted list, and search_id"
  },
  "sample": {
    "data": {
      "data": [
        {
          "id": 290998172,
          "url": "https://www.olx.ro/d/oferta/plita-aragaz-mini-4-ochiuri-arzator-gaz-bucatarie-livrat-gratuit-is-IDjGZUU.html",
          "user": {
            "id": 285,
            "name": "Ionut"
          },
          "title": "Plita Aragaz Mini 4 Ochiuri Arzator Gaz Bucatarie Livrat Gratuit IS",
          "params": [
            {
              "key": "price",
              "name": "Pret",
              "type": "price",
              "value": {
                "label": "220 lei",
                "value": 220,
                "currency": "RON"
              }
            }
          ],
          "category": {
            "id": 2529,
            "type": "electronics"
          },
          "location": {
            "city": {
              "id": 39939,
              "name": "Iasi"
            },
            "region": {
              "id": 10,
              "name": "Iasi"
            }
          }
        }
      ],
      "links": {
        "next": {
          "href": "https://www.olx.ro/api/v1/offers?offset=3&limit=3&q=laptop"
        },
        "self": {
          "href": "https://www.olx.ro/api/v1/offers?offset=0&limit=3&q=laptop"
        }
      },
      "metadata": {
        "total_elements": 1000,
        "visible_total_count": 3911320
      }
    },
    "status": "success"
  }
}

About the olx.ro API

The OLX.ro API provides 3 endpoints to search listings, retrieve full ad details, and fetch seller phone numbers from Romania's largest classifieds platform. The search_ads endpoint returns paginated results including ad IDs, titles, prices, locations, and seller info, while get_ad_details exposes the complete ad object — photos, delivery options, parameters, and category data — for any given ad ID.

Search and Filter Listings

The search_ads endpoint accepts a query string alongside optional filters: category_id (e.g., 1211 for general goods, 2529 for electronics, 1657 for automotive), city_id (e.g., 1 for Bucharest, 39939 for Iași), limit, and offset for pagination. Each ad object in the data array includes an id, url, title, description, structured params (price, condition), user info, location, photos, and category. The metadata field returns total_elements, visible_total_count, a promoted list, and a search_id for tracking result sets. The links object provides self, next, and first URLs for cursor-free pagination.

Full Ad Details

get_ad_details accepts a single required ad_id (obtainable from search_ads results) and returns the complete ad record. This includes all fields from search plus delivery options and contact info embedded in the response. This is the right endpoint when you need the full description text, all photo URLs, or the ad's structured attribute list (e.g., mileage for vehicles, room count for real estate).

Seller Phone Retrieval

get_seller_phone takes an ad_id and an optional ad_url, and returns a phones array containing the seller's phone number strings. This works for most private and business ads. Ads where the seller has enabled protect_phone may not return a phone number. The ad_url parameter is optional but can improve resolution for ads that require referral context.

Common use cases
  • Aggregate automotive listings from OLX.ro filtered by category_id 1657 to build a used-car price tracker
  • Monitor real estate ads in Bucharest (city_id 1) by querying search_ads with apartment-related keywords
  • Build a lead-generation tool that collects seller phone numbers via get_seller_phone for B2B outreach
  • Track price changes on electronics listings (category_id 2529) by diffing get_ad_details responses over time
  • Populate a classifieds aggregator with OLX.ro listings including photos, descriptions, and location data
  • Paginate through all ads matching a keyword using offset and total_elements to build a full dataset
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.ro have an official developer API?+
OLX Group does maintain developer documentation for select markets at https://developer.olx.ro, but programmatic access is not publicly available for all endpoints or regions. This Parse API covers the OLX.ro Romania platform specifically.
What does search_ads return and how does pagination work?+
Each page returns an array of ad objects under data, each containing id, url, title, description, params (price and condition), user info, location, photos, and category. The metadata object includes total_elements so you can calculate how many pages exist. Use the offset parameter to step through results, or follow the links.next URL returned in each response.
Are there ads where get_seller_phone won't return a number?+
Yes. Sellers on OLX.ro can enable a protect_phone option that masks their number from direct retrieval. For those ads, the phones array will be empty. The majority of private and business ads without this setting enabled do return a phone number.
Does the API cover OLX platforms in other countries besides Romania?+
Not currently. The API is scoped to OLX.ro (Romania) — city IDs, category IDs, and listing data all correspond to that market. You can fork this API on Parse and revise it to point at another OLX country domain and adjust the relevant parameters.
Can I filter search_ads by both city and category at the same time?+
Yes. Both city_id and category_id are independent optional parameters and can be combined in a single request along with a query string. For example, you can search for 'apartament' in Bucharest (city_id 1) within a specific category simultaneously.
Page content last updated . Spec covers 3 endpoints from olx.ro.
Related APIs in MarketplaceSee all →
mouser.com API
mouser.com API
lazada.co.th API
Search for products and browse categories on Lazada Thailand to find detailed information like prices, descriptions, and availability. Discover items by keyword or category to compare specifications and make informed purchasing decisions.
woocommerce.com API
Browse and search thousands of WooCommerce extensions, themes, and business services from the official marketplace while accessing detailed product information, user reviews, and ratings. Integrate marketplace data, blog content, and documentation directly into your applications to help users discover and learn about WooCommerce solutions.
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.
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.
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.
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.
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.