Browser User Agent Validation API - Onboarding Buddy

The Onboarding Buddy User Agent Validation API empowers developers to validate browser user agents, identifying device types, browsers, and potential fraud indicators. Perfect for secure onboarding, authentication, and compliance workflows, this API supports real-time and batch validation to enhance security and user trust.

Sign Up for User Agent Validation API

Why Use the Onboarding Buddy User Agent Validation API?

Validate browser user agents to detect suspicious activity, ensure device compatibility, and strengthen security in your applications. The Onboarding Buddy API analyzes user agent strings to provide insights into browsers, operating systems, and devices, making it ideal for fraud prevention, compliance, and personalized user experiences.

Key Features

  • Single User Agent Validation: Instantly verify a user agent string for browser, device, and OS details.
  • Batch Validation: Process multiple user agent strings efficiently in a single request.
  • Fraud Detection: Identify spoofed or anomalous user agents to prevent fraudulent activity.
  • Device and Browser Insights: Retrieve detailed metadata for compatibility and analytics.
  • Secure API Access: Use App Key, API Key, and API Secret for authenticated requests.

Relevant Endpoints

Endpoint Method Purpose
POST /validation-service/validation/user-agent POST Validates a single browser user agent and returns the validation response.
POST /validation-service/batch/user-agent POST Validates a batch of browser user agents and returns a batch validation response.
GET /validation-service/batch/poll/{batchId} GET Polls the status of a submitted batch validation request using the batch ID.
GET /validation-service/batch/user-agent/{batchId} GET Retrieves the validation results for a batch of browser user agents using the batch ID.

Code Samples

Validate a Single Browser User Agent

Use the POST /validation-service/validation/user-agent endpoint to validate a single user agent string. Include your API credentials in the headers for secure access.


curl -X POST https://api.onboardingbuddy.co/validation-service/validation/user-agent \
-H "ob-app-key: your-app-key" \
-H "ob-api-key: your-api-key" \
-H "ob-api-secret: your-api-secret" \
-H "Content-Type: application/json" \
-d '{"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"}'
    

Example Response:


{
  "isValid": true,
  "details": {
    "browser": "Chrome",
    "browserVersion": "91.0.4472.124",
    "os": "Windows",
    "osVersion": "10.0",
    "deviceType": "desktop",
    "isSuspicious": false
  }
}
    

Validate a Batch of Browser User Agents

Use the POST /validation-service/batch/user-agent endpoint to validate multiple user agent strings efficiently.


curl -X POST https://api.onboardingbuddy.co/validation-service/batch/user-agent \
-H "ob-app-key: your-app-key" \
-H "ob-api-key: your-api-key" \
-H "ob-api-secret: your-api-secret" \
-H "Content-Type: application/json" \
-d '{"userAgents": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36", "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)", "invalid-user-agent"]}'
    

Example Response:


{
  "batchId": "batch-45678",
  "status": "processing"
}
    

Poll Batch Validation Status

Check the status of a batch validation request using the GET /validation-service/batch/poll/{batchId} endpoint.


curl -X GET https://api.onboardingbuddy.co/validation-service/batch/poll/batch-45678 \
-H "ob-app-key: your-app-key" \
-H "ob-api-key: your-api-key" \
-H "ob-api-secret: your-api-secret"
    

Example Response:


{
  "batchId": "batch-45678",
  "status": "completed"
}
    

Retrieve Batch Validation Results

Retrieve the results of a completed batch validation using the GET /validation-service/batch/user-agent/{batchId} endpoint.


curl -X GET https://api.onboardingbuddy.co/validation-service/batch/user-agent/batch-45678 \
-H "ob-app-key: your-app-key" \
-H "ob-api-key: your-api-key" \
-H "ob-api-secret: your-api-secret"
    

Example Response:


{
  "batchId": "batch-45678",
  "results": [
    {
      "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
      "isValid": true,
      "details": {
        "browser": "Chrome",
        "browserVersion": "91.0.4472.124",
        "os": "Windows",
        "osVersion": "10.0",
        "deviceType": "desktop",
        "isSuspicious": false
      }
    },
    {
      "userAgent": "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",
      "isValid": true,
      "details": {
        "browser": "Googlebot",
        "browserVersion": "2.1",
        "os": "unknown",
        "deviceType": "bot",
        "isSuspicious": true
      }
    },
    {
      "userAgent": "invalid-user-agent",
      "isValid": false,
      "details": {
        "error": "Invalid user agent format"
      }
    }
  ]
}
    

Applications of Browser User Agent Validation

The Onboarding Buddy User Agent Validation API is ideal for:

  • Fraud Prevention: Detect spoofed or suspicious user agents to block malicious activity.
  • User Onboarding: Verify device and browser details for secure registration processes.
  • Personalization: Tailor user experiences based on device type and browser capabilities.
  • Compliance: Ensure accurate device data for KYC and regulatory workflows.

Next Steps

Get started with the Onboarding Buddy User Agent Validation API today. Sign up to obtain your API credentials, explore the full API documentation, or discover other use cases like email validation or sanctions screening. For technical details, view all API endpoints.

Start Validating User Agents Now



.....
Reload 🗙