No logo available for Procore to DuckDB connector icon

Load Procore data to DuckDB

Build a Procore to DuckDB pipeline with your coding agent. One prompt scaffolds it with the dltHub AI harness, plus the Procore API base URL, auth, endpoints, and incremental loading.

SourceProcoreProcore API DocumentationDestinationDuckDBIn-process analytical database. The default local destination for dlt pipelines.

Procore is a construction management software platform providing REST APIs to access project, company, and financial data. Everything needed to build a working Procore → DuckDB pipeline is on this page: the API's base URL, authentication, endpoints, pagination and incremental field — plus a prompt that hands the whole job to your coding agent.


Build your Procore to DuckDB pipeline

Paste this prompt into Claude, Codex, or Cursor. The agent does the rest.

Prompt
Run uvx dlthub-init@latest to build a pipeline from Procore to DuckDB and run it on dltHub

That scaffolds a dltHub workspace and installs the dltHub AI harness — the project rules, the secrets-management skill, and the dlt MCP server your agent needs to work safely. From there it reads the Procore API, proposes the endpoints to load, then writes, runs and validates the pipeline while you review rather than type. Credentials are inspected through MCP tools, so your agent never reads secrets.toml itself. How the LLM-native workflow works →

Prefer to write it yourself? Every fact the agent uses is below.


Procore API at a glance

Base URLhttps://api.procore.com/rest/v1.0
Example endpointGET rest/v1.1/projects
Records found atdata
Authenticationall requests require a Bearer token in the Authorization header — sent in the Authorization header, prefixed Bearer
Also requiredProcore-Company-Id
PaginationPage-number page size via per_page
Incremental fieldfilters[updated_at]
API referencehttps://developers.procore.com/reference/rest/authentication

These values come from the Procore API reference — the authoritative source if anything here looks out of date.


How do I authenticate with the Procore API?

Procore uses OAuth 2.0. API requests must include an 'Authorization' header with a 'Bearer' token obtained via the '/oauth/token' endpoint.

1. Get your credentials

  1. Register for an account on the Procore Developer Portal (developers.procore.com). 2. Once logged in, navigate to the Manage Apps section. 3. Create a new application to generate your OAuth credentials. 4. In the OAuth Credentials section of your app's dashboard, you can view your Client ID and Client Secret for your development sandbox. For production, you must first promote your application manifest; the Client Secret will only be visible once upon promotion.

2. Add them to .dlt/secrets.toml

[sources.procore_source] client_id = "your_client_id_here" client_secret = "your_client_secret_here" grant_type = "client_credentials"

dlt reads this file automatically at runtime. With the harness, the setup-secrets skill prompts you for the values and never handles the raw credential in chat. For production, see setting up credentials with dlt.


What Procore data can I load into DuckDB?

These are the Procore endpoints dlt can load into DuckDB:

ResourceEndpointMethodData selectorDescription
projects/rest/v1.1/projectsGETList projects
companies/rest/v1.0/companiesGETList companies
users/rest/v1.0/companies/{company_id}/usersGETList company users
vendors/rest/v1.0/vendorsGETList vendors
change_events/rest/v1.1/change_eventsGETList change events

How do I load only new Procore records?

Procore exposes filters[updated_at] on rest/v1.1/projects, so dlt can request only the records that changed since the last run. Set it as the cursor_path and dlt tracks the high-water mark for you between runs.

{"name": "projects", "endpoint": { "path": "rest/v1.1/projects", "data_selector": "data", "incremental": {"cursor_path": "filters[updated_at]", "initial_value": "2024-01-01T00:00:00Z"}, }}

On the first run dlt loads everything from initial_value; on every run after that it requests only what changed and appends with write_disposition="merge" if you set a primary key. See incremental loading.


What does the generated Procore pipeline look like?

A standard dlt REST API pipeline — the same code you would write by hand, loading /oauth/authorize and /oauth/token from the Procore API into DuckDB:

import dlt from dlt.sources.rest_api import RESTAPIConfig, rest_api_resources @dlt.source def procore_source(access_token=dlt.secrets.value): config: RESTAPIConfig = { "client": { "base_url": "https://api.procore.com/rest/v1.0", "auth": {"type": "bearer", "token": access_token}, }, "resources": [ {"name": "projects", "endpoint": {"path": "rest/v1.1/projects", "data_selector": "data"}}, {"name": "change_events", "endpoint": {"path": "rest/v1.1/change_events", "data_selector": "data"}} ], } yield from rest_api_resources(config) def load_procore_to_duckdb() -> None: pipeline = dlt.pipeline( pipeline_name="procore_pipeline", destination="duckdb", dataset_name="procore_data", ) load_info = pipeline.run(procore_source()) print(load_info) if __name__ == "__main__": load_procore_to_duckdb()

Run it with python procore_pipeline.py. The agent iterates on this until it loads cleanly — you review and approve, rather than write it from scratch.


How do I query Procore data in DuckDB?

dlt creates one table per resource. Query the loaded data with Python or SQL — or ask your agent to, through the MCP server's execute_sql_query tool.

Python (pandas DataFrame):

import dlt data = dlt.pipeline("procore_pipeline").dataset() df = data.change_events.df() print(df.head())

SQL:

SELECT * FROM procore_data.change_events LIMIT 10;

See querying your data with dataset and exploring it in marimo notebooks.


How do I deploy the Procore to DuckDB pipeline in production?

The pipeline runs locally, which is ideal for prototyping and one-off analysis. When you need it on a schedule, monitored on every load, and shared with your team, deploy the same dlt code on the dltHub platform — no infrastructure to maintain. The prompt above already ends with "run it on dltHub", so your agent can take it there directly.

  • Deploy & schedule — run the pipeline as a managed job with automatic retries.
  • Monitor — observable job queues, alerting, and load metrics for every run.
  • Transform — promote raw Procore loads into governed, documented models.
  • Visualize & share — explore data in notebooks and publish live dashboards instead of static screenshots.

Book a demo →


What other destinations can I load Procore data to?

dlt loads into any of these — only the destination argument changes:

DestinationExample value
PostgreSQL"postgres"
BigQuery"bigquery"
Snowflake"snowflake"
Redshift"redshift"
Databricks"databricks"
Filesystem (S3, GCS, Azure)"filesystem"

Set dlt.pipeline(destination="snowflake") and add credentials in .dlt/secrets.toml. On the dltHub platform the same pipeline runs against a managed Iceberg lakehouse. See the full destinations list.


Next steps

Was this page helpful?

Community Hub

Need more dlt context for Procore to DuckDB?

Request dlt skills, commands, AGENT.md files, and AI-native context.