# Capture console logs from a webpage

**Use case:** 

Load a URL in a headless browser and export JavaScript console messages. Debug front-end errors, track warnings, and audit third-party script behavior.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "maxItems": 100,
  "waitUntil": "load",
  "waitForMillis": 3000,
  "includeNetworkErrors": true,
  "includeConsoleMessages": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "url": {
    "label": "Input URL",
    "format": "string"
  },
  "finalUrl": {
    "label": "Final URL",
    "format": "string"
  },
  "type": {
    "label": "Type",
    "format": "string"
  },
  "level": {
    "label": "Level",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "message": {
    "label": "Message",
    "format": "string"
  },
  "location": {
    "label": "Location",
    "format": "object"
  },
  "timestamp": {
    "label": "Timestamp",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [URL Console Logs Inspector](https://apify.com/rainminer/url-console-logs-inspector) with a specific input configuration. Visit the [Actor detail page](https://apify.com/rainminer/url-console-logs-inspector) to learn more, explore other use cases, and run it yourself.