Skip to content

Export

Five endpoints push data out of Umbraco and into the machine-owned tabs of the NRI data spreadsheet. They are snapshots, not a source of truth: nothing reads them back. See Overview for the shared configuration and status codes.

Every export bolds its header row and writes values as plain text (RAW), so dates and true/false arrive as text, not typed Sheets values.

Signed-in administrators (the Administrators or nriAdmin group) get a Google Sheets exports button in the backoffice header. Its modal lists every export with its own run button, plus one that runs them all in turn. Calling an endpoint directly needs a back-office bearer token.

In Production, a daily job also runs all five, in this order: tags, media, content, members, search results. It is on only when GoogleSheets:DailyExport:Enabled is true, first runs StartupDelayMinutes after startup (default 2), then every IntervalHours (default 24). One failed export is logged and the rest still run; search the log for [DailyExports]. No other environment registers the job.

POST /umbraco/management/api/v1/exports/media

POST only, unlike the others.

Writes every media item that holds a file to Umbraco: Media, clearing A:K first, ordered by internal ID. Folders and other items without an umbracoFile or uploadFile property are left out.

Column Contents
key The media item’s GUID.
id Its internal ID.
name Media item name.
content_type_alias Media type alias — Image, File, and so on.
url Absolute address of the file.
extension File extension, lowercase, without the dot.
size_bytes File size.
width, height Image dimensions. Blank for non-images.
tags mediaTags, comma-separated, de-duplicated and sorted.
referenced_by_content_count How many distinct content pages use the file.

The last column is the useful one for cleanup work: it counts distinct parent documents in Umbraco’s related-media relations, so a 0 means no content page points at that file.

Response is JSON:

{
"worksheet": "Umbraco: Media",
"mediaRead": 1240,
"rowsWritten": 1241,
"writeBatchSize": 1000,
"writeBatches": 2
}

mediaRead counts the items exported. rowsWritten is one higher because it includes the header row. Rows go up in batches of 1000, which is why a large library produces several writeBatches.

GET /umbraco/management/api/v1/exports/members
POST /umbraco/management/api/v1/exports/members

Writes every member to Umbraco: Members, clearing A:M first, ordered by internal ID. Thirteen columns, in the same order and with the same names as the people-owned Members tab that the import reads — which makes the two easy to diff side by side, even though the export never feeds the import.

Column Contents
id The member’s GUID. Members import matches on this.
name Member name.
email Login email.
member_groups All roles the member belongs to, ; separated, sorted.
address State only, pulled out of the address map value.
member_type Member type alias.
workplace_phone workplacePhone.
first_name firstName.
last_name lastName.
workplace workplace.
workplace_address The full address string from the workplaceAddress map value.
workplace_position workplacePosition.
linked_in linkedIn.

The two address columns are deliberately asymmetric, and it matches how the data is used: a member’s own address exists to place them on a state map, so only the state comes out. The workplaceAddress is a real street address, so the full formatted address comes out. Both are stored in Umbraco as JSON map values; the export unpacks them. If the address value has no state it uses the full address, and if it cannot read the value at all it falls back to the raw stored text.

If reading a member’s groups fails, the export logs the error, leaves that one cell blank, and carries on rather than aborting the run.

Response is the same shape as media, with membersRead in place of mediaRead.

GET /umbraco/management/api/v1/exports/tags
POST /umbraco/management/api/v1/exports/tags

Writes every tag in the site to Umbraco: Tags, clearing A:ZZ first.

This one is shaped differently from the others. It is not one row per record — it is one column per tag group:

  • Row 1 holds the tag group names, sorted alphabetically. Tags with no group are collected under default.
  • Each column below its group name lists that group’s tags, de-duplicated case-insensitively and sorted. Short columns are padded with blanks.

So the tab is as wide as there are tag groups and as tall as the largest group. It is a reference list, useful for checking that the tags values you are about to put in the Imports tab match tags that already exist.

Response:

{
"worksheet": "Umbraco: Tags",
"groupsRead": 4,
"tagsRead": 187,
"rowsWritten": 61,
"writeBatchSize": 1000,
"writeBatches": 1
}

rowsWritten is the height of the tab, not the tag count — one header row plus the size of the largest group.

GET /umbraco/management/api/v1/exports/content
POST /umbraco/management/api/v1/exports/content

Writes one row per page to Umbraco: Content, clearing A:Q first, ordered by internal ID. Only pages whose type has a tags property are included, even if the property is empty; pages in the recycle bin are left out. In Production the daily job overwrites this tab.

Column Contents
key The page’s GUID. The content tag import matches on it.
content_type_alias The page’s document type.
name Page name.
path Ancestor names joined with /.
url Absolute public address. Blank when the page is not published.
published true or false.
publicationDate, publicationYear, publicationYearEnd The date as yyyy-MM-dd, the years as numbers. Blank when the type lacks the property or it is empty.
archived The In the Archive checkbox: true or false, blank when the type lacks it.
tags The page’s tags, comma-separated, de-duplicated and sorted.
exclude_from_search, seo_title, seo_description, include_in_sitemap, robots Search and SEO settings, for reference.
related_urls Absolute addresses of the media files the page uses, one per line. Files in the recycle bin are left out.

Response: worksheet, contentRead, rowsWritten, writeBatchSize, writeBatches.

Treat the tab as read-only. To change pages, copy rows into Imports and run the import.

GET /umbraco/management/api/v1/exports/search-results
POST /umbraco/management/api/v1/exports/search-results

Writes one row per search term visitors used to Umbraco: Search Results, clearing A:I first. Terms are trimmed and lowercased, and blank terms are dropped. Rows are sorted by times_queried, highest first, then by last_queried_utc, newest first.

Column Contents
term The search term.
times_queried How many times it was searched.
first_queried_utc, last_queried_utc First and last search, yyyy-MM-dd HH:mm in UTC.
days_since_last_query Days since the last search.
distinct_members How many different signed-in members searched it.
member_queries, anonymous_queries Searches by signed-in members and by visitors.
last_member_name The last member who searched it.

Response: worksheet, queriesRead, termsRead, rowsWritten, writeBatchSize, writeBatches.