npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@immo24/metadata

v0.2.1

Published

Extract structured metadata from ImmoScout24 window.IS24 object

Readme

@immo24/metadata

npm version Tests License

Extracts structured metadata from ImmoScout24 listing pages into a fully typed ExposeMetadata object containing price, location, contact, property details, gallery, and descriptions.

Installation

npm install @immo24/metadata

Usage

In a browser extension or userscript

Call parseIS24FromScripts with the current page document. It reads the page and returns the parsed IS24 data, which you then pass to extractMetadata:

import { parseIS24FromScripts, extractMetadata } from '@immo24/metadata';

const is24 = parseIS24FromScripts(document);
const metadata = extractMetadata(is24);

console.log(metadata.exposeId);           // "166173168"
console.log(metadata.title);             // "4-ZI / Wohntraum in Marienburg"
console.log(metadata.publishedAt);       // "08.03.2026"
console.log(metadata.lastModifiedAt);    // "25.03.2026"
console.log(metadata.price.amount);      // 829000
console.log(metadata.location.city);     // "Köln"
console.log(metadata.contact.lastName);  // "Busch"

From the IS24 object directly

If your execution context has direct access to window.IS24 (e.g. a page script rather than an isolated content script), you can skip the parser:

import { extractMetadata } from '@immo24/metadata';

const metadata = extractMetadata(window.IS24);

API

parseIS24FromScripts(doc: Document): unknown

Reads the page document and returns the parsed IS24 data object. Returns null if no IS24 data is found.

extractMetadata(is24: unknown): ExposeMetadata

Extracts a fully typed ExposeMetadata object from the parsed IS24 data. All fields are null-safe — missing data results in null values rather than thrown errors.

formatDate(iso: string | null): string | null

Formats an ISO 8601 date string to DD.MM.YYYY. Returns null for invalid or missing input.

Types

ExposeMetadata

interface ExposeMetadata {
  exposeId: string | null;
  title: string | null;
  publishedAt: string | null;           // DD.MM.YYYY
  lastModifiedAt: string | null;        // DD.MM.YYYY
  realEstateType: string | null;        // e.g. "APARTMENT_BUY", "HOUSE_BUY", "APARTMENT_RENT"
  commercializationType: string | null; // "BUY" | "RENT"
  onTopProduct: string | null;          // IS24 listing tier: "GOLD" | "PLUS" | "XXL" | null
  price: PriceInfo;
  location: LocationAddress;
  contact: ContactPerson;
  property: PropertyDetails;
  gallery: Gallery;
  descriptions: Descriptions;
}

PriceInfo

interface PriceInfo {
  amount: number | null;
  type: 'buy' | 'rent' | null;
  pricePerSqm: number | null;
  currency: string;                 // always "EUR"
}

LocationAddress

isFullAddress indicates whether the full street address (including house number) is publicly visible on the listing, as opposed to only a rough area.

interface LocationAddress {
  street: string | null;
  houseNumber: string | null;
  zip: string | null;
  city: string | null;
  quarter: string | null;           // neighbourhood/district within the city
  region: string | null;            // federal state, e.g. "Nordrhein-Westfalen"
  isFullAddress: boolean;           // true if exact street + house number are disclosed
  geo: GeoLocation | null;
}

interface GeoLocation {
  latitude: number;
  longitude: number;
}

ContactPerson

interface ContactPerson {
  salutation: string | null;
  firstName: string | null;
  lastName: string | null;
  company: string | null;
  phone: string | null;
  cellPhone: string | null;
  isCommercial: boolean;            // true if listed by a real estate agency
  isVerified: boolean;              // true if the realtor is IS24-verified
}

PropertyDetails

interface PropertyDetails {
  squareMeters: number | null;
  numberOfRooms: number | null;
  floor: string | null;             // e.g. "2" (floor number as string)
  constructionYear: number | null;
  features: string[];               // e.g. ["balcony", "cellar", "guestToilet"]
}

Gallery

interface Gallery {
  images: GalleryImage[];
  documents: GalleryDocument[];
  imageCount: number;               // total count including images not in the images array
  hasFloorplan: boolean;
}

interface GalleryImage {
  id: string;
  caption: string;
  fullSizeUrl: string;
  thumbnailUrl: string;
}

interface GalleryDocument {
  title: string;
  url: string;
}

Descriptions

Text content fields from the listing as a plain key-value map. Only keys present on the listing are included — always check for existence before accessing.

type Descriptions = Record<string, string>;

Common keys: objectDescription, locationDescription, furnishingDescription, otherDescription, aiSummary.

Requirements

Node.js >= 16

License

CC-BY-NC-SA-4.0 — see LICENSE for details.