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
4mo 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:desc'.
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 →
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.
olx.ba API
Search and browse listings on OLX.ba across all categories. Retrieve listing names, prices, categories, and URLs, or drill into individual listings for detailed attributes such as location, address, area, floor, condition, and seller information. Includes dedicated support for apartment listings.
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.
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.
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.
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.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.