Discover/olx.pt API
live

olx.pt APIolx.pt

Access OLX.pt listings via API. Search by keyword, price, region, and category. Get full listing details including price, photos, seller info, and location.

Endpoints
3
Updated
3mo ago
Try it
Maximum number of results to return per page.
Search keyword (e.g. 'apartamento', 'iphone'). Omitting returns all listings.
Pagination offset (number of results to skip).
City ID for location filtering.
Sorting order. Accepted values: 'created_at:desc', 'created_at:asc', 'price:asc', 'price:d
Maximum price filter in EUR.
Minimum price filter in EUR.
Region ID for location filtering (e.g. '13' for Porto, '1' for Lisbon).
Category ID for filtering. Use get_categories to discover valid IDs.
api.parse.bot/scraper/c81a1506-5f37-453f-b82b-552abb8ca36e/<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/c81a1506-5f37-453f-b82b-552abb8ca36e/search_listings?limit=5&query=apartamento' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Search for listings on OLX.pt with various filters. Returns paginated results sorted by the specified order. When called without a query or filters, returns the most recent listings across all categories.

Input
ParamTypeDescription
limitintegerMaximum number of results to return per page.
querystringSearch keyword (e.g. 'apartamento', 'iphone'). Omitting returns all listings.
offsetintegerPagination offset (number of results to skip).
city_idstringCity ID for location filtering.
sort_bystringSorting order. Accepted values: 'created_at:desc', 'created_at:asc', 'price:asc', 'price:desc'.
price_maxstringMaximum price filter in EUR.
price_minstringMinimum price filter in EUR.
region_idstringRegion ID for location filtering (e.g. '13' for Porto, '1' for Lisbon).
category_idstringCategory ID for filtering. Use get_categories to discover valid IDs.
Response
{
  "type": "object",
  "fields": {
    "data": "array of listing objects, each containing id, url, title, description, params (including price), location, photos, user, category, and timestamps",
    "metadata": "object with total_elements, visible_total_count, promoted indices, and search_id"
  },
  "sample": {
    "data": {
      "data": [
        {
          "id": 670434436,
          "url": "https://www.olx.pt/d/anuncio/audi-a1-1-4tdi-2016-IDJn4CE.html",
          "title": "Audi A1 1.4TDI 2016",
          "params": [
            {
              "key": "price",
              "name": "Preço",
              "type": "price",
              "value": {
                "label": "8.750 €",
                "value": 8750,
                "currency": "EUR"
              }
            }
          ],
          "category": {
            "id": 751,
            "type": "automotive"
          },
          "location": {
            "city": {
              "id": 13635592,
              "name": "Rio Tinto"
            },
            "region": {
              "id": 13,
              "name": "Porto"
            }
          },
          "created_time": "2026-05-04T15:06:56+01:00"
        }
      ],
      "metadata": {
        "promoted": [
          0,
          1,
          2
        ],
        "search_id": "62DD0963084CD289525A189A2666293C",
        "total_elements": 1000,
        "visible_total_count": 3753177
      }
    },
    "status": "success"
  }
}

About the olx.pt API

The OLX Portugal API provides 3 endpoints to search, retrieve, and categorize listings from olx.pt. The search_listings endpoint accepts filters for keyword, price range, region, city, and sort order, returning paginated arrays of listing objects with fields including id, url, title, description, params (price), location, photos, user, and category. Whether you need broad market sweeps or deep detail on a single ad, the API covers the full retrieval workflow.

Endpoints and Data Coverage

The API exposes three endpoints. search_listings is the primary entry point, accepting optional inputs like query, region_id, city_id, price_min, price_max, sort_by, limit, and offset. Region IDs are numeric strings — for example, '13' for Porto and '1' for Lisbon. Sorting supports four modes: created_at:desc, created_at:asc, price:asc, and price:desc. Called without any filters, it returns the most recently posted listings across all categories, which is useful for feed-style monitoring.

Listing Response Shape

Each listing object returned by search_listings contains id, url, title, description, params (which holds price and any structured attributes), location, photos, user, and category. The metadata field alongside the array includes total_elements, visible_total_count, promoted indices, and a search_id useful for paginating large result sets via the offset parameter.

Detailed Listing and Category Discovery

get_listing_details accepts a listing_id (the numeric ID from search_listings results) and returns the full listing record, including extended params such as year, model, and other attribute fields that vary by category. get_categories takes no inputs and returns an array of integer category IDs currently enabled on olx.pt — these IDs can be passed as category_id in search_listings to scope searches to a specific vertical like real estate, vehicles, or electronics.

Common use cases
  • Monitor newly posted real estate listings in Lisbon or Porto by polling search_listings sorted by created_at:desc with the appropriate region_id.
  • Build a price-comparison tool for a specific product category by filtering search_listings with query, price_min, and price_max.
  • Track seller activity by extracting the user field from listing objects returned across multiple searches.
  • Aggregate market pricing data for a given category by iterating paginated results using limit and offset.
  • Enrich a listing dataset with full attribute details (year, model, extended params) by calling get_listing_details on IDs gathered from search.
  • Discover all active category IDs on olx.pt using get_categories before building a category-scoped crawl pipeline.
  • Alert on vehicle listings below a price threshold by combining sort_by: price:asc with price_max in search_listings.
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 Portugal have an official developer API?+
OLX does not publish a public developer API for olx.pt. There is no official endpoint documentation or API key program available to third-party developers for the Portuguese marketplace.
How does pagination work in `search_listings`?+
Use the limit parameter to set results per page and offset to skip results. The metadata object in the response includes total_elements and visible_total_count, which tell you the full result set size so you can calculate how many pages to request.
Does the API return seller contact details such as phone numbers?+
The user field in listing objects contains seller profile information, but phone numbers and other contact details that OLX gates behind a login or click-to-reveal action are not exposed. The API covers publicly visible listing and seller profile data. You can fork this API on Parse and revise it to add an endpoint targeting contact-reveal responses if that data becomes accessible in your use case.
Is there a way to filter searches by category?+
Yes. Call get_categories first to retrieve the array of enabled integer category IDs on olx.pt, then pass the desired ID as category_id in search_listings. This scopes results to a single vertical, such as real estate or vehicles.
Does the API support saved searches, user watchlists, or listing history?+
Not currently. The API covers listing search, individual listing detail retrieval, and category discovery. User-account features like saved searches and watchlists are not exposed. You can fork this API on Parse and revise it to add endpoints for those account-level features.
Page content last updated . Spec covers 3 endpoints from olx.pt.
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.