Skip to content
Scrappa Get API key
Morizon API 1 credit/request

Morizon Agency Profile API Documentation

GET https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house

Scrappa's GET /api/morizon/agency returns the public profile of one agency and a page of its listings.

Input

company_id is the id from the contact.company block of a search result or listing.

What you get

agency.company has the id, name, type, address, phones, websites and logo. agency.profile has what the agency page adds: licence number, description, number of listings and the names of its agents. The profile is best effort: when it is not available, meta.profile_available is false and the rest is still returned.

Listings

listings is one page of the agency's listings in the same shape as search. Use transaction, type, sort and page to choose which ones. The agency filter is applied by Morizon, and a listing of another company is never returned.

Agents

Agent profile pages are not available, so there is no agent endpoint. Private owners are never returned.

Morizon Agency Profile API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house
Auth header
x-api-key
Cost
1 credit/request
company_id = 15352
Response preview
200 OK
{
    "success": true,
    "agency": {
        "company_id": 15352,
        "company": {
            "id": 15352,
            "name": "Example Nieruchomo\u015bci",
            "type": "AGENCY",
            "address": [
                "Kapelanka 1A / 1",
                "30-347 Krak\u00f3w"
            ],
            "phones": [
                "12 311 01 88"
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

4 optional filters available.

company_id integer Required

Company id from the contact block of a listing.

Example value 15352
transaction string Optional

sale (default) or rent listings.

Example value sale
type string Optional

flat (default), house, plot, commercial, garage or room.

Example value house
sort string Optional

Same values as the search sort.

Example value relevance
page integer Optional

Listings page, 1-based.

Example value 1

Request Examples

PHP
<?php

$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => "https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => [
        "x-api-key: YOUR_API_KEY_HERE"
    ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
    echo "cURL Error #:" . $err;
} else {
    echo $response;
}
PHP
<?php

use Illuminate\Support\Facades\Http;

$response = Http::timeout(30)
    ->withHeaders(['x-api-key' => 'YOUR_API_KEY_HERE'])
    ->get('https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house');

if ($response->successful()) {
    echo $response->body();
} else {
    echo "Error: " . $response->status();
}
JavaScript
const options = {
    method: 'GET',
    headers: {
        'x-api-key': 'YOUR_API_KEY_HERE'
    }
};

fetch('https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house', options)
    .then(response => {
        if (!response.ok) {
            throw new Error(`HTTP error! status: ${response.status}`);
        }
        return response.text();
    })
    .then(data => console.log(data))
    .catch(error => console.error('Error:', error));
JavaScript
const axios = require('axios');

const options = {
    method: 'GET',
    url: 'https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house',
    headers: {
        x-api-key: 'YOUR_API_KEY_HERE',
    }
};

try {
    const response = await axios(options);
    console.log(response.data);
} catch (error) {
    console.error('Error:', error.message);
}
Ruby
require 'net/http'
require 'uri'

uri = URI.parse("https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == 'https'

request = Net::HTTP::Get.new(uri.request_uri)
request['x-api-key'] = 'YOUR_API_KEY_HERE'

begin
    response = http.request(request)
    puts response.body
rescue => e
    puts "Error: #{e.message}"
end
Python
import http.client
import json

conn = http.client.HTTPSConnection("scrappa.co")

headers = {
    'x-api-key': 'YOUR_API_KEY_HERE',
}

try:
    conn.request("GET", "/api/morizon/agency?company_id=15352&transaction=sale&type=house", headers=headers)
    res = conn.getresponse()
    data = res.read()
    print(data.decode("utf-8"))
except Exception as e:
    print(f"Error: {e}")
finally:
    conn.close()
Python
import requests

headers = {
    'x-api-key': 'YOUR_API_KEY_HERE',
}

try:
    response = requests.get('https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house', headers=headers)
    response.raise_for_status()
    print(response.text)
except requests.exceptions.RequestException as e:
    print(f"Error: {e}")
Java
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import java.io.IOException;

public class ApiExample {
    public static void main(String[] args) {
        OkHttpClient client = new OkHttpClient();

        Request request = new Request.Builder()
            .url("https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house")
        .addHeader("x-api-key", "YOUR_API_KEY_HERE")
            .build();

        try (Response response = client.newCall(request).execute()) {
            if (response.isSuccessful()) {
                System.out.println(response.body().string());
            } else {
                System.out.println("Error: " + response.code());
            }
        } catch (IOException e) {
            System.out.println("Error: " + e.getMessage());
        }
    }
}
Go
package main

import (
    "fmt"
    "net/http"
    "io/ioutil"
)

func main() {
    client := &http.Client{}
    req, err := http.NewRequest("GET", "https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house", nil)
    if err != nil {
        fmt.Println("Error creating request:", err)
        return
    }
    req.Header.Set("x-api-key", "YOUR_API_KEY_HERE")

    resp, err := client.Do(req)
    if err != nil {
        fmt.Println("Error making request:", err)
        return
    }
    defer resp.Body.Close()

    body, err := ioutil.ReadAll(resp.Body)
    if err != nil {
        fmt.Println("Error reading response:", err)
        return
    }

    fmt.Println(string(body))
}
Terminal
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house"
C#
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program
{
    static async Task Main()
    {
        using var client = new HttpClient();
        client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY_HERE");

        try
        {
            var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house"));
            var content = await response.Content.ReadAsStringAsync();
            Console.WriteLine(content);
        }
        catch (Exception ex)
        {
            Console.WriteLine($"Error: {ex.Message}");
        }
    }
}
TypeScript
import axios from 'axios';

async function run(): Promise<void> {
    try {
        const response = await axios({
            method: 'GET',
            url: 'https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house',
            headers: {
        'x-api-key': 'YOUR_API_KEY_HERE',
            },
        });

        console.log(response.data);
    } catch (error) {
        console.error('Error:', error);
    }
}

void run();
RUST
use reqwest::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new();

    let response = client
        .get("https://scrappa.co/api/morizon/agency?company_id=15352&transaction=sale&type=house")
        .header("x-api-key", "YOUR_API_KEY_HERE")
        .send()
        .await?;

    println!("{}", response.text().await?);

    Ok(())
}

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

success agency total returned pagination applied_filters listings meta

Common listings fields

id numeric_id url full_url
JSON Response
200 OK
{
    "success": true,
    "agency": {
        "company_id": 15352,
        "company": {
            "id": 15352,
            "name": "Example Nieruchomo\u015bci",
            "type": "AGENCY",
            "address": [
                "Kapelanka 1A / 1",
                "30-347 Krak\u00f3w"
            ],
            "phones": [
                "12 311 01 88"
            ],
            "websites": [
                "http://www.example.pl"
            ],
            "logo": null
        },
        "profile": {
            "name": "Example Nieruchomo\u015bci",
            "profile_url": "https://www.morizon.pl/biuro-nieruchomosci/example-nieruchomosci-15352",
            "address": [
                "Kapelanka 1A / 1",
                "30-347 Krak\u00f3w"
            ],
            "description_html": "<p>Biuro nieruchomo\u015bci ...</p>",
            "description_text": "Biuro nieruchomo\u015bci ...",
            "license_number": "803",
            "listings_count": 2388,
            "agents": [
                "Anna Example"
            ]
        }
    },
    "total": 1270,
    "returned": 1,
    "pagination": {
        "page": 1,
        "limit": 35,
        "pages_count": 37,
        "has_next_page": true,
        "has_previous_page": false
    },
    "applied_filters": {
        "transaction": "sale",
        "type": "house",
        "agency_id": 15352,
        "sort": "default"
    },
    "listings": [
        {
            "id": "mzn2045462366",
            "numeric_id": 1540411861,
            "url": "/oferta/sprzedaz-mieszkanie-krakow-podgorze-duchackie-bialoruska-69-46m2-mzn2045462366",
            "full_url": "https://www.morizon.pl/oferta/sprzedaz-mieszkanie-krakow-podgorze-duchackie-bialoruska-69-46m2-mzn2045462366",
            "title": "mieszkanie na sprzeda\u017c",
            "description": "Najwa\u017cniejsze atuty: szybki dojazd do centrum i autostrady A4 ...",
            "price": {
                "amount": 764796,
                "currency": "PLN",
                "formatted": "764 796 z\u0142"
            },
            "price_per_m2": {
                "amount": 16300,
                "currency": "PLN",
                "formatted": "16 300 z\u0142/m\u00b2"
            },
            "omnibus": {
                "previous_sale_price": null,
                "previous_lowest_price": null
            },
            "area_m2": 46.92,
            "rooms": {
                "count": 2,
                "text": "2 pokoje"
            },
            "floor": {
                "number": 3,
                "text": "pi\u0119tro 3"
            },
            "address": {
                "country_code": null,
                "parts": [
                    "Krak\u00f3w",
                    "Podg\u00f3rze Duchackie"
                ],
                "street": "Bia\u0142oruska 69",
                "number": null,
                "county": null,
                "commune": null
            },
            "latitude": 50.0207,
            "longitude": 19.963,
            "added_at": "2025-04-10",
            "refreshed_at": null,
            "development": "Osiedle przy Malborskiej",
            "flags": {
                "top_promoted": false,
                "highlighted": false,
                "recommended": false,
                "has_3d_view": false,
                "has_video": false
            },
            "photos_count": 8,
            "photos": [
                {
                    "url": "https://media.domy.pl/img/zdjecia/example/1/example_1.jpg",
                    "alt": "Mieszkanie na sprzeda\u017c 46m2 Krak\u00f3w - zdj\u0119cie 1",
                    "name": "mieszkanie-na-sprzedaz-krakow"
                }
            ],
            "plans": [],
            "contact": {
                "private_owner": false,
                "company": {
                    "id": 15352,
                    "name": "Example Nieruchomo\u015bci",
                    "type": "AGENCY",
                    "address": [
                        "Kapelanka 1A / 1",
                        "30-347 Krak\u00f3w"
                    ],
                    "phones": [
                        "12 311 01 88"
                    ],
                    "websites": [
                        "http://www.example.pl"
                    ],
                    "logo": null
                },
                "person": {
                    "name": "Anna Example",
                    "type": "AGENT",
                    "phones": [
                        "+48 500 000 000"
                    ],
                    "profile_path": null,
                    "photo": null
                },
                "comment": []
            }
        }
    ],
    "meta": {
        "endpoint_family": "agency",
        "billable": true,
        "attempts": 3,
        "profile_available": true
    }
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

404

Not Found

Nothing exists with that identifier on Morizon, for example a removed listing (`not_found`). Non-billable.

{
    "meta": {
        "attempts": 1,
        "billable": false,
        "retryable": false,
        "endpoint_family": "agency"
    },
    "error": {
        "code": "not_found",
        "message": "No Morizon record exists with that identifier."
    },
    "success": false
}
422

Validation Error

A query parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable.

{
    "errors": {
        "type": [
            "The selected type is invalid."
        ]
    },
    "message": "The selected type is invalid."
}
503

Upstream Unavailable

Morizon could not be reached after retries, answered with an error, or returned an unexpected answer (`upstream_unavailable`, `upstream_blocked`, `parser_drift`). Retryable and never billed. Clients are never rate limited.

{
    "meta": {
        "attempts": 3,
        "billable": false,
        "retryable": true,
        "endpoint_family": "agency"
    },
    "error": {
        "code": "upstream_unavailable",
        "message": "Morizon is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.