Skip to content

Dataset

Firebase app data and crash record datasets for AI training

A Firebase dataset is an export of the backend of one mobile or web app: Cloud Firestore documents in their collections and subcollections or a Realtime Database tree, the security rules that govern them, Authentication user records, Cloud Storage objects, and Crashlytics crash events and Analytics events about the app's use. SourceX sources it to a buyer's spec from established businesses that run Firebase behind production apps. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
One app's Firebase project: Firestore documents or a Realtime Database tree with rules and indexes, Auth users, Storage objects, and crash and analytics events
Typical systems
Firebase with Cloud Firestore or Realtime Database, Authentication, Cloud Storage, Cloud Functions, Crashlytics, Google Analytics and Remote Config
Typical history
Specified by the buyer; documents are current state, and bulk crash and analytics history starts at or just before the BigQuery link
Modality
Schemaless documents with typed values, event rows with nested parameters, stack traces, rules and function source
Delivery formats
Agreed per order; documents as type-preserving JSONL, the managed export as written, BigQuery tables as Parquet or JSONL, rules and index files as text
Preparation
Auth identifiers re-keyed the same way in paths, fields and events; password hashes, tokens and download URLs removed; free text screened
Licensing
Rights reviewed per project against the app's own user terms and Google's terms; permitted use set in the license
Availability
Sourced to your spec by app type, collections and event history; supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
project_keystringThe Firebase project the record came from, re-keyed, with the app's platform.
record_typeenumfirestore_document, rtdb_node, auth_user, storage_object, crashlytics_event, analytics_event or remote_config_version.
document_pathstringThe Document's full path through each Collection and Subcollection, with document IDs re-keyed consistently.
collection_groupstringThe collection ID the Document sits under, shared by every Subcollection of that name.
dataobjectThe Document's fields, each value under its Firestore type: string, integer, double, boolean, timestamp, geopoint, reference, bytes, array, map or null.
document_timesobjectThe Document's create time and update time from Firestore's metadata, where the export path kept them.
missing_ancestorsbooleanTrue when a parent Document in the path does not exist, as happens when a parent was deleted and its Subcollections were left.
rules_matchobjectThe match block of the Security rule file that covers this path, with its allow conditions.
composite_indexesarrayIndex definitions for this collection group from firestore.indexes.json, which reflect the app's queries.
auth_userobjectThe Auth user the record belongs to: re-keyed uid, sign-in providers, creation and last sign-in times, with password hash and salt removed.
storage_objectsarrayStorage objects the Document points to: re-keyed path, content type and size, without download tokens.
crashobjectFor a Crashlytics event: issue_id, error_type, event_timestamp, application version, device, blame_frame, exceptions, threads, custom_keys, logs and breadcrumbs.
analytics_eventobjectFor an Analytics event: event_name, event_timestamp, event_params, user_pseudo_id and app_info version.
export_sourceenummanaged_export, admin_sdk_read, bigquery_export, auth_export, console_json or changelog_table.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "project_key": "proj_5d2e",
  "record_type": "firestore_document",
  "document_path": "users/u_81fa3c/bookings/b_0c77d1",
  "collection_group": "bookings",
  "data": {
    "status": {
      "stringValue": "confirmed"
    },
    "startsAt": {
      "timestampValue": "2024-05-18T09:30:00Z"
    },
    "partySize": {
      "integerValue": "4"
    },
    "venueRef": {
      "referenceValue": "venues/v_22b9"
    },
    "venueName": {
      "stringValue": "[VENUE]"
    },
    "notes": {
      "stringValue": "[FREE_TEXT]"
    }
  },
  "document_times": {
    "create_time": "2024-05-02T17:11:04Z",
    "update_time": "2024-05-17T08:02:51Z"
  },
  "missing_ancestors": false,
  "rules_match": {
    "path": "/users/{userId}/bookings/{bookingId}",
    "allow_read": "request.auth.uid == userId",
    "allow_write": "request.auth.uid == userId && request.resource.data.partySize is int"
  },
  "composite_indexes": [
    {
      "collectionGroup": "bookings",
      "queryScope": "COLLECTION_GROUP",
      "fields": [
        {
          "fieldPath": "venueRef",
          "order": "ASCENDING"
        },
        {
          "fieldPath": "startsAt",
          "order": "DESCENDING"
        }
      ]
    }
  ],
  "auth_user": {
    "uid": "u_81fa3c",
    "providers": [
      "password"
    ],
    "createdAt": "2023-11-20T12:40:09Z",
    "lastSignedInAt": "2024-05-17T08:01:13Z"
  },
  "storage_objects": [],
  "crash": null,
  "analytics_event": null,
  "export_source": "managed_export"
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train coding agents to model data in Firestore

Real collection trees with their rules and index files are worked examples of document design, copied fields and query planning.

Teach models to write and audit security rules

Rules files paired with the documents they protect give cases for writing match blocks and finding paths left open.

Evaluate crash triage

Given a Crashlytics event's frames, keys and logs, a model names the blamed frame and likely cause, with the issue grouping as reference.

Build migrations to relational schemas

Schemaless collections converted to tables can be checked against real documents, including fields that vary by document.

Model app behavior before a failure

Crashlytics breadcrumbs, or Analytics events joined by an app-set user ID, show the screens and actions before a crash.

Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Rules that validate fields

Security rules that check field names and types, not only who is signed in.

Index file under version control

A firestore.indexes.json that matches the deployed composite indexes.

Stable field naming

Documents in a collection sharing most field names and types across app versions.

BigQuery export linked early

Crashlytics and Analytics tables that begin before the period in scope.

Symbol files uploaded

dSYM and mapping files present for the builds in scope, so frames are readable.

One user ID across products

The same app-set user ID on Auth, Analytics and Crashlytics records.

Record timeline

Firebase dataset

This page covers firebase application data and crash records.Illustrative

The security rules file is often the only schema

Cloud Firestore stores documents in collections. A document holds typed fields and can own subcollections, and nothing declares which fields the documents of a collection must have. Two documents in one collection may share only the collection's name, because an older app version wrote one and a newer version the other. A field can be a string in one document and a map in the next. The shape of the data is a property of the population and has to be measured: which fields appear, in what share of documents, with which types.

The closest thing to a formal statement is the security rules file. Rules match document paths with wildcards, tie access to request.auth.uid, and can check the field names and types of an incoming write. Read beside the data, they say who owns each document and what a valid client write looked like. They have two limits. Rules apply to mobile and web clients, while server code using the Admin SDK, including Cloud Functions, bypasses them, so documents written by a backend can break the shape the rules describe. And a rule constrains writes made after it was deployed, not documents already stored. The composite index file is the second thing to ask for, since each composite index exists because a query needed it.

Relationships are conventions. Firestore has no joins, so an app nests children in subcollections under the parent's path, stores a reference or a bare ID string, or copies fields onto several documents and keeps them in step with Cloud Functions triggers, or does not. Deleting a document does not delete its subcollections, so children under a missing parent are normal. A Realtime Database is looser still: one JSON tree with no types beyond JSON, arrays held as keyed objects, and push IDs that sort by creation time.

A managed Firestore export writes a folder of output files and metadata files to a Cloud Storage bucket, in the LevelDB-based format it shares with Datastore exports. It is built to be imported into Firestore again or loaded into BigQuery, and BigQuery accepts only an export made for named collection IDs. Writes made while the operation runs may or may not be included. It contains no security rules, index definitions, Authentication users or Storage objects. Rules come from the project's repository or the console, indexes from the repository or the Firebase CLI, users from the CLI's auth export, with password hashes and salts that must be removed, and files from the bucket.

A data owner will often read documents through the Admin SDK instead, and two defects are common. The first is lost types. Firestore distinguishes integers from doubles, timestamps from strings and references from path strings, and a script that serializes documents to plain JSON flattens all of that. The second is missing nesting. Reading a collection does not return its documents' subcollections, so a walk from the top-level collections that never lists subcollections drops them, along with children whose parent document was deleted.

Crashlytics and Analytics history in bulk exists only where the project was linked to BigQuery, and a Crashlytics backfill reaches only a short recent period. Crashlytics then writes one row per event to a table per app, with issue_id, blame_frame, exceptions, threads, custom_keys and logs, and Analytics writes daily events tables with event_name and repeated event_params. Apple frames are symbolicated only for builds whose dSYM was uploaded, and obfuscated Android frames only with the build's mapping file. To test a sample, profile field presence and types per collection, resolve every reference and ID string, and measure the share of crash events with symbolicated frames.

What to check before licensing

  • Ask which path produced the documents (a managed export reimported, an Admin SDK read or a BigQuery load) and how subcollections and documents under deleted parents were collected.
  • Request the deployed firestore.rules or database.rules.json and firestore.indexes.json, and confirm a match block covers every collection in the sample.
  • Confirm with counsel that the app's own terms of service and privacy notice cover licensing end-user content, personal data and device identifiers, and ask how deleted accounts were handled.
  • Have the buyer and the data owner each check Google's terms for Firebase, Google Cloud and Google Analytics export data, and for API use, against the intended use.
  • Check that password hashes, salts, messaging registration tokens, advertising IDs, API keys and Storage download tokens are absent, including inside nested maps.
  • Ask when BigQuery export was linked for Crashlytics and for Analytics, whether table or partition expiration was set on those datasets, and compare the first table dates with the history you need.
  • Profile each collection for field names, the types each field takes and the share of documents carrying it, and ask the supplier to explain the outliers.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Can a Firestore export be delivered as JSON?

Yes, but not straight from the managed export. The managed export writes a LevelDB-based format meant for reimport or a BigQuery load. To deliver JSON, the supplier reads documents through the Admin SDK or converts a BigQuery load, and the encoding must keep Firestore's types, since timestamps, references, geopoints, bytes and the integer and double distinction do not survive plain JSON.

Is there a schema for the documents?

No, not one that Firestore enforces. Documents in a collection can carry different fields and types. The nearest substitutes are the security rules file, which may validate field names and types on client writes, the composite index file, which reflects the app's queries, and the app's own model classes. Ask for all three and a field profile per collection.

Does Firebase keep the history of changes to a document?

No. A write replaces the stored values and Firestore keeps current state, apart from a short point-in-time recovery window where that is enabled. History exists only where the app wrote audit or event documents by design, or where the company streamed document writes to BigQuery as a changelog. Ask which of those the supplier has and from what date.

How far back do Crashlytics and Analytics records go?

As far back as the project's BigQuery export, in practice. The Firebase console keeps crash and event detail for a limited period, and bulk rows exist only in the BigQuery datasets created when export was linked. Ask for each product's link date and earliest table, and whether crash frames for older builds were symbolicated with uploaded symbol files.

Can app data be linked to crash and analytics events for the same user?

Only where the app set a common identifier. Authentication assigns a uid, Analytics assigns a user_pseudo_id to each app instance and Crashlytics an installation_uuid, and these differ. If the app passed its own user ID to Analytics and to Crashlytics, the three can be joined after re-keying. If not, the link is limited to app version, time and the Analytics breadcrumbs Crashlytics stores with an event when both SDKs ran.

Is SourceX affiliated with Google?

Firebase is named to identify the system the records come from. That does not imply a partnership with or endorsement by Google. The records belong to the business that runs Firebase, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies