# IFC Parser & Quantity Takeoff (IFC to JSON, CSV, Excel) (`meltflexai/ifc-parser`) Actor

Turn IFC (BIM) files from Revit, ArchiCAD, Tekla or BlenderBIM into a clean table: one row per wall, slab, door or beam with storey, type, materials, property sets and quantities. IFC2X3, IFC4, IFC4X3, .ifczip.

- **URL**: https://apify.com/meltflexai/ifc-parser.md
- **Developed by:** [MeltFlex AI](https://apify.com/meltflexai) (community)
- **Categories:** Developer tools, Real estate, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## IFC Parser & Quantity Takeoff

Give it a link to an IFC file. You get back a table with one row per building element: walls, slabs, columns, beams, doors, windows, stairs, roofs, pipes and ducts. Each row carries the element's storey, type, materials, property sets and quantities. Download it as JSON, CSV, Excel or XML, or read it through the Apify API.

It reads IFC2X3, IFC4 and IFC4X3 files from Revit, ArchiCAD, Tekla, Allplan, Vectorworks, BlenderBIM/Bonsai and anything else that writes IFC, plus zipped `.ifczip` files. Parsing runs on [IfcOpenShell](https://ifcopenshell.org) 0.9, the open-source IFC toolkit.

**Input:** the 10-storey sample office from the prefilled input, `model.ifc` (IFC4, 2.8 MB), shown in our [free IFC viewer](https://aibimtool.com/ifc-viewer):

![Sample IFC model of a 10-storey curved office building, with its storeys and element classes listed beside it](https://aibimtool.com/apify/ifc-parser-sample-model.webp)

**Output:** the slabs of the same file, one row each, with storey, elevation and the quantities measured from the geometry. The run takes 7 seconds:

![Apify dataset table with one row per IFC slab: class, name, storey, elevation, volume in cubic metres, plan area in square metres and thickness](https://aibimtool.com/apify/ifc-parser-output.webp)

### What it is for

- **Quantity takeoff and cost estimating.** Count doors per storey, sum wall volumes, list slab areas, then paste the result into your estimate.
- **Model checking.** Find elements with no storey, no material or no `FireRating`. Find walls still exported as `IfcBuildingElementProxy`.
- **Feeding BIM data to other tools.** Push a model into a database, Power BI, Google Sheets, a data warehouse or an LLM without writing an IFC parser yourself.
- **Batch jobs.** Pass 50 file URLs and every element of every model lands in one dataset, with the source file on each row.

### Input

| Field | What it does |
|---|---|
| **IFC files** | Direct links to `.ifc` or `.ifczip` files, or upload a file in the form. Each link has to return the file itself: an S3 link, a GitHub raw link, your own server or a Dropbox `?dl=1` link. A page with a download button will not work. |
| **IFC classes to export** | Empty means every physical element (`IfcElement`). Or name classes, e.g. `IfcWall`, `IfcDoor`, `IfcSpace`. Subclasses come along with their parent, so `IfcWall` also returns `IfcWallStandardCase`. |
| **Include property sets** | `Pset_WallCommon`, `Pset_DoorCommon` and every custom property set, as nested JSON. |
| **Include quantity sets** | `Qto_…BaseQuantities` and `BaseQuantities`, as written by the authoring tool. |
| **Compute quantities from geometry** | Measures each element's 3D shape in metres: volume, plan (footprint) area, total surface area, bounding box and bottom elevation. Turn it on when the file has no quantity sets, which is the case for most Revit exports with default settings. It takes about 5 seconds per 1,000 elements. |
| **Max elements per file** | 0 means no limit. Set it to 20 for a quick test on a big model. |

```json
{
  "ifcUrls": [{ "url": "https://aibimtool.com/out/model.ifc" }],
  "ifcClasses": ["IfcWall", "IfcSlab", "IfcDoor", "IfcWindow"],
  "computeGeometry": true
}
```

### Output

One dataset row per element:

```json
{
  "globalId": "2$V9HIfA956fUApO9akNi8",
  "ifcClass": "IfcWall",
  "name": "Basic Wall:Exterior - 300mm Concrete:184212",
  "predefinedType": "STANDARD",
  "typeName": "Exterior - 300mm Concrete",
  "typeClass": "IfcWallType",
  "storey": "Level 1",
  "storeyElevation": 0.0,
  "materials": ["Concrete, Cast-in-Place", "Insulation"],
  "properties": {
    "Pset_WallCommon": { "IsExternal": true, "LoadBearing": true, "FireRating": "REI60" }
  },
  "quantities": {
    "Qto_WallBaseQuantities": { "Length": 5.0, "Height": 3.0, "NetVolume": 4.5 }
  },
  "geometry": { "volume": 4.5, "planArea": 1.5, "surfaceArea": 31.8, "length": 5.0, "width": 0.3, "height": 3.0, "bottomElevation": 0.0 },
  "sourceUrl": "https://example.com/house.ifc"
}
```

The **OUTPUT** record in the key-value store has a summary for each file: schema, project name, authoring application, units, storeys with elevations, and element counts by class and by storey. For the 10-storey sample model in the prefilled input it looks like this:

```json
{
  "schema": "IFC4",
  "storeys": [{ "name": "Parter", "elevation": 0.0 }, { "name": "1.NP", "elevation": 5.5 }],
  "elementCount": 103,
  "elementsByClass": { "IfcBuildingElementProxy": 28, "IfcSlab": 20, "IfcColumn": 18, "IfcMember": 13, "IfcCurtainWall": 12, "IfcWall": 10, "IfcRoof": 2 }
}
```

### Cost

The Actor itself is free. You pay only for Apify compute. The 103-element sample takes about 5 seconds with geometry turned on. Most models up to 50 MB finish within a minute at the default 2 GB of memory. Raise the memory for models over 200 MB.

### Limits

- One file can be up to 1 GB. Each file loads into memory whole, so very large federated models need 8 GB or more.
- Quantity sets appear only if the authoring tool exported them. In Revit that is the "Export base quantities" box in the IFC export settings. Otherwise turn on **Compute quantities from geometry**.
- `planArea` is the footprint seen from above, which is what slabs, roofs and floor finishes are priced by. `surfaceArea` counts every face, both sides of a slab plus its edges, so it is roughly twice the plan area for a slab.
- Geometry quantities come from the triangulated shape. Curved elements are slightly under-measured, and an element with an opening returns its net volume.
- Spaces, openings and grids are left out by default because they are not `IfcElement`. Name `IfcSpace` in **IFC classes to export** to get room data.

### Use it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/meltflexai~ifc-parser/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ifcUrls":[{"url":"https://aibimtool.com/out/model.ifc"}],"ifcClasses":["IfcWall"]}'
```

AI agents can call it through the [Apify MCP server](https://mcp.apify.com), so Claude, Cursor or ChatGPT can read an IFC model when you give them a link.

### Related

- For one file without an Apify account, the [IFC Quantity Takeoff](https://huggingface.co/spaces/meltflex/ifc-quantity-takeoff) Space on Hugging Face does the same takeoff in your browser, with model checks and an Excel export. On the same test files its numbers match this Actor's to three decimals.
- To look at the model before parsing it, the [free IFC viewer](https://aibimtool.com/ifc-viewer) opens IFC files in the browser without uploading them. There is also a [BCF viewer](https://aibimtool.com/bcf-viewer) for issue files.
- To create an IFC model from a written brief instead of parsing one, see [AIBIMTool](https://aibimtool.com), the team behind this Actor. Its AI architect builds IFC4 buildings with storeys, walls, slabs, openings and roofs that open in Revit and ArchiCAD.

Found a file it reads wrong? Open an issue on the Actor's Issues tab and attach the file or a link to it.

# Actor input Schema

## `ifcUrls` (type: `array`):

Direct links to .ifc or .ifczip files (Dropbox, Google Drive direct-download, S3, GitHub raw, your server), or upload a file here.

## `ifcClasses` (type: `array`):

Leave empty for every physical element (IfcElement: walls, slabs, columns, beams, doors, windows, stairs, roofs, MEP...). Or list classes, e.g. IfcWall, IfcDoor, IfcSpace.

## `includeProperties` (type: `boolean`):

Pset_WallCommon, Pset_DoorCommon and every custom property set, as nested JSON.

## `includeQuantities` (type: `boolean`):

Qto\_ and BaseQuantities sets written by the authoring tool (areas, volumes, lengths).

## `computeGeometry` (type: `boolean`):

Measure every element's 3D shape: volume, surface area, bounding box and bottom elevation, in metres. Use it when the file has no quantity sets (most exports). Slower: about 5 s per 1,000 elements.

## `maxElementsPerFile` (type: `integer`):

0 for no limit. Handy for a quick test on a big model.

## Actor input object example

```json
{
  "ifcUrls": [
    {
      "url": "https://aibimtool.com/out/model.ifc"
    }
  ],
  "ifcClasses": [],
  "includeProperties": true,
  "includeQuantities": true,
  "computeGeometry": false,
  "maxElementsPerFile": 0
}
```

# Actor output Schema

## `elements` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "ifcUrls": [
        {
            "url": "https://aibimtool.com/out/model.ifc"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("meltflexai/ifc-parser").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "ifcUrls": [{ "url": "https://aibimtool.com/out/model.ifc" }] }

# Run the Actor and wait for it to finish
run = client.actor("meltflexai/ifc-parser").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "ifcUrls": [
    {
      "url": "https://aibimtool.com/out/model.ifc"
    }
  ]
}' |
apify call meltflexai/ifc-parser --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,meltflexai/ifc-parser"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/r4eIi3LXsGlMVLXrR/builds/vxGyfGARl1gxTzzLd/openapi.json
