LogRocket · Schema

LogRocket Data Export Record

Represents a line in the JSON Lines file produced by the LogRocket data export. Each line contains a session event with metadata, user information, and event-specific data.

Session ReplayProduct AnalyticsFrontend MonitoringLoggingErrors

Properties

Name Type Description
eventType string The type of event recorded, such as lr.Metadata, network request, console log, or DOM mutation.
timestamp integer Unix timestamp in milliseconds when the event occurred.
sessionId string Unique identifier for the session this event belongs to.
metadata object
user object
network object
console object
error object
View JSON Schema on GitHub

JSON Schema

logrocket-data-export-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://logrocket.com/schemas/logrocket/data-export.json",
  "title": "LogRocket Data Export Record",
  "description": "Represents a line in the JSON Lines file produced by the LogRocket data export. Each line contains a session event with metadata, user information, and event-specific data.",
  "type": "object",
  "required": ["eventType", "timestamp"],
  "properties": {
    "eventType": {
      "type": "string",
      "description": "The type of event recorded, such as lr.Metadata, network request, console log, or DOM mutation."
    },
    "timestamp": {
      "type": "integer",
      "format": "int64",
      "description": "Unix timestamp in milliseconds when the event occurred."
    },
    "sessionId": {
      "type": "string",
      "description": "Unique identifier for the session this event belongs to."
    },
    "metadata": {
      "$ref": "#/$defs/SessionMetadata"
    },
    "user": {
      "$ref": "#/$defs/UserInfo"
    },
    "network": {
      "$ref": "#/$defs/NetworkEvent"
    },
    "console": {
      "$ref": "#/$defs/ConsoleEvent"
    },
    "error": {
      "$ref": "#/$defs/ErrorEvent"
    }
  },
  "$defs": {
    "SessionMetadata": {
      "type": "object",
      "description": "Metadata about the session including browser, device, location, and SDK information.",
      "properties": {
        "release": {
          "type": "string",
          "description": "The application release version."
        },
        "sdkVersion": {
          "type": "string",
          "description": "The LogRocket SDK version that captured this session."
        },
        "country": {
          "type": "string",
          "description": "The country from which the session originated."
        },
        "region": {
          "type": "string",
          "description": "The region or state from which the session originated."
        },
        "city": {
          "type": "string",
          "description": "The city from which the session originated."
        },
        "browser": {
          "type": "string",
          "description": "The browser name and version."
        },
        "browserVersion": {
          "type": "string",
          "description": "The browser version string."
        },
        "deviceType": {
          "type": "string",
          "description": "The type of device."
        }
      }
    },
    "UserInfo": {
      "type": "object",
      "description": "User identification data from LogRocket.identify() calls or anonymous session identifiers.",
      "properties": {
        "userId": {
          "type": "string",
          "description": "The identified user ID or auto-generated anonymous identifier."
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "The email address of the identified user."
        },
        "name": {
          "type": "string",
          "description": "The display name of the identified user."
        },
        "traits": {
          "type": "object",
          "description": "Custom user traits.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "NetworkEvent": {
      "type": "object",
      "description": "A network request or response event.",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The URL of the network request."
        },
        "method": {
          "type": "string",
          "description": "The HTTP method."
        },
        "statusCode": {
          "type": "integer",
          "description": "The HTTP response status code."
        },
        "duration": {
          "type": "integer",
          "minimum": 0,
          "description": "Request duration in milliseconds."
        }
      }
    },
    "ConsoleEvent": {
      "type": "object",
      "description": "A console log event.",
      "properties": {
        "level": {
          "type": "string",
          "description": "The console log level.",
          "enum": ["log", "info", "warn", "error", "debug"]
        },
        "message": {
          "type": "string",
          "description": "The console log message content."
        }
      }
    },
    "ErrorEvent": {
      "type": "object",
      "description": "A JavaScript error event.",
      "properties": {
        "message": {
          "type": "string",
          "description": "The error message."
        },
        "stack": {
          "type": "string",
          "description": "The error stack trace."
        },
        "source": {
          "type": "string",
          "description": "The source file where the error originated."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/logrocket-data-export"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.