Skip to main content
AI agents are now live in Website Scanner! Enter your URL and fix website issues 3x faster with AI. Explore now!
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Create scan API in Website Scanner

Use this API to create a one-time or recurring accessibility website scan.

create scan

POST /api/v1/scanner/create

For geo-restricted data, use the following endpoints:
https://accessibility-eu.browserstack.com/api/website-scanner/v1/scans (European Union)
https://accessibility.browserstack.com/api/website-scanner/v1/scans (United States)
https://accessibility-in.browserstack.com/api/website-scanner/v1/scans (India)

Request parameters

Request

curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
     -X POST "https://api-accessibility.browserstack.com/api/website-scanner/v1/scans" \
     -H "Content-Type: application/json" \
     -d '{
       "name": "My Website Scan",
       "recurring": true,
       "urlList": [
         "https://example.com",
         "https://example.com/about"
       ],
       "schedulingOptions": {
         "frequency": "Weekly",
         "recurrenceTime": "14:00",
         "recurrenceDay": "Monday",
         "recurrenceDate": 15,
         "scheduleStart": "2024-02-01",
         "scheduleEnd": "2024-12-31"
       },
       "scanSettings": {
         "advancedRules": true,
         "bestPractices": false,
         "needsReview": true,
         "wcagVersion": "wcag21aa"
       },
       "localTestingInfo": {
         "localIdentifier": "my-local-id",
         "localEnabled": false
       },
       "authConfigId": 123456
     }'

  • name* String

    Name of the scan configuration (for example, www.example.com).

  • recurring Boolean

    Whether to schedule the scan to run on a recurring basis. Default is true.

  • instantRun Boolean

    Set to true to trigger a scan immediately after creating the configuration.

  • scheduleStart String

    Start date for the scheduled scan in YYYY-MM-DD format (for example, 2024-12-29).

  • scheduleEnd String

    End date for the scheduled scan in YYYY-MM-DD format. Pass null for no end date.

  • scanData* Object

    Configuration data for the scan, including URLs and accessibility settings.

    â–¶ SHOW VALUES
  • authConfigId Integer

    ID of the authentication configuration to use for pages that require login.

  • localTestingInfo Object

    Local testing configuration for scanning pages accessible only through BrowserStack Local.

    â–¶ SHOW VALUES

Response Attributes 200 OK JSON

Response

{
    "success": true,
    "data": {
        "id": 123,
        "scanRunId": 1234,
        "urlCount": 20
    },
    "error": {
        "invalidUrls": ["ww.gogle.con"]
    }
}
  • success Boolean

    Indicates whether the request was successful.

  • data Object

    Contains the IDs of the newly created scan project and initial scan run report.

    â–¶ SHOW VALUES

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Download Copy Check Circle