
The Ultimate Practical Guide to the Duel.com API
What Is the Duel.com API and Who Needs It?
The Duel.com API is a set of web services that let developers pull real‑time data from the Duel.com platform – everything from live casino tables to sports betting odds. If you run an affiliate site, a betting comparison portal, or a mobile gambling app, the API is the shortcut that saves you from manual data entry.
Because the API returns JSON and XML, it fits easily into most modern stacks. You can display up‑to‑date RTP percentages, show the current welcome bonus, or even push instant payouts to your users without leaving the Duel.com ecosystem.
Core Functions at a Glance
- Bonus retrieval – get live bonus amounts, wagering requirements, and expiry dates.
- Game catalog – list casino games, live dealer streams, and sportsbook events.
- Payment gateway – check supported deposit methods and withdrawal speeds.
- Account verification – pull KYC status for compliance.
Getting Started: Registration and API Access
Before you can call the Duel.com API you must create a merchant account on the main website. The sign‑up process is similar to a regular casino registration: you fill in your business details, agree to the terms, and verify your email.
After the account is approved, you request API credentials – a client‑id and a secret key. These two strings are used for OAuth2 authentication, which protects your calls from being intercepted.
For a quick reference on how to request the credentials, see the duel com info page.
Step‑by‑step Registration
- Visit Duel.com and click “Partner Sign‑Up”.
- Enter company name, tax ID, and a contact email.
- Submit KYC documents – usually a business licence and proof of address.
- Wait 24‑48 hours for verification, then log in to the partner dashboard.
- Navigate to “API Settings” and generate your client‑id/secret.
Verification and KYC for API Users
Even though the API is meant for machines, the end‑users you serve still need to pass KYC when they sign up on your platform. The Duel.com API offers an endpoint that returns a user’s verification status, so you can block withdrawals until the KYC is complete.
Make sure you store the verification flag securely and display a friendly message if the player tries to withdraw before their documents are approved.
Integration Basics: Endpoints, Requests, and Responses
Understanding the endpoint structure is key to a smooth integration. All URLs start with https://api.duel.com/v1/ followed by a resource name – for example bonuses or games. Every request must include an Authorization header with the bearer token you receive after OAuth2 login.
Responses are usually JSON objects with a standard wrapper: { "status": "ok", "data": {...} }. Errors return a 4xx or 5xx HTTP code plus a message field that explains what went wrong.
Authentication Methods
- Client‑Credentials Grant – best for server‑to‑server communication.
- Authorization Code Grant – useful if you need user‑specific data like personal balances.
Common Data Formats
While JSON is the default, some legacy endpoints still support XML. If you request Accept: application/xml you’ll receive the same data wrapped in XML tags. For most modern apps JSON is faster and easier to parse.
Key Endpoints Overview
| Endpoint | Purpose | Typical Use |
|---|---|---|
| /bonuses | Retrieve current casino and sportsbook bonuses | Display welcome bonus on landing page |
| /games | List available casino games and live dealer streams | Populate game catalogue in mobile app |
| /payments/methods | Show supported deposit and withdrawal options | Guide users to fastest payout routes |
| /account/kyc | Check verification status of a player | Enforce responsible gambling limits |
Using the API for Casino Bonuses and Promotions
One of the most attractive features for affiliates is the ability to pull live bonus information. The Duel.com API returns the exact bonus amount, the required wagering, and the expiry date in a single call.
Because the data updates in real time, you can automatically hide expired offers, preventing frustrated players from trying to claim a no‑longer‑valid promotion.
Pulling Bonus Data
Call /bonuses and filter by type=casino to get only casino promotions. Each bonus object includes:
- title – the name of the bonus.
- amount – monetary value or percentage.
- wagering_requirements – how many times the bonus must be played.
- valid_until – ISO‑8601 timestamp.
Managing Wagering Requirements via API
If your platform tracks player progress, you can compare the amount wagered against the wagering_requirements field. When the requirement is met, you can trigger an automatic bonus release using the /bonuses/redeem endpoint.
This automation reduces support tickets and speeds up the user experience, especially for high‑roller players who expect instant credit.
Payments, Withdrawals, and Real‑Time Transaction Tracking
The Duel.com API gives you a full view of available deposit methods – from credit cards to e‑wallets – and the typical processing time for each. Knowing the speed of each method helps you advise players on the quickest way to get funds on the table.
Withdrawal endpoints also report estimated payout time. For instant payouts, the API flags the method as “instant”, which you can highlight in your UI to attract fast‑play gamblers.
Deposit Methods Supported
Common deposit options include:
- Visa/MasterCard – 2‑3 business days.
- PayPal – usually instant.
- Skrill – 1‑2 hours.
- Bank transfer – up to 5 days for large sums.
Withdrawal Speed and Instant Payouts
When a player requests a withdrawal, call /payments/withdraw. The response contains a status field that can be “pending”, “processing”, or “completed”. If the method is flagged as instant, the estimated_time will be less than 5 minutes.
Show this estimate on the confirmation page so the player knows exactly when to expect the money. Transparency like this boosts trust and reduces support queries.
Mobile and Live Casino Integration
Most of today’s gamblers use smartphones, so the Duel.com API includes mobile‑optimized endpoints. Data payloads are lightweight, and there are specific calls for live dealer streams that work well on small screens.
Embedding live casino video is as easy as requesting the /games/live list and then using the returned stream URLs in your mobile player.
Embedding Live Streams
Each live game object contains a stream_url (HLS format) and a dealer_name. Your app can switch between streams on the fly, providing a seamless experience similar to the native Duel.com mobile app.
Optimizing for Mobile Apps
To keep data usage low, request only the fields you need – use the fields= query parameter. Also, cache static data like game descriptions for up to 24 hours; this reduces API calls and speeds up load times.
Security, Licensing, and Responsible Gambling Controls
Security is non‑negotiable in gambling. All API traffic is forced over HTTPS, and each request must include a signed JWT token. Rate limits are in place – typically 60 calls per minute per client – to prevent abuse.
Duel.com holds a reputable gaming licence from the Malta Gaming Authority, which means the API complies with strict AML and responsible‑gambling regulations.
Encryption and Rate Limits
Every payload is encrypted in transit, and sensitive data like player balances is never returned in plain text. If you exceed the rate limit, the API returns a 429 status with a retry_after header.
Enforcing Responsible Play
The API provides a /account/limits endpoint where you can set daily loss limits or self‑exclusion flags. When a player hits the limit, the API will automatically block further betting until the period resets.
Troubleshooting, Support, and Best Practices
Even with a well‑documented API, you’ll run into occasional hiccups – expired tokens, mismatched field names, or unexpected downtime. The first step is always to check the response code and the error_message field.
If you can’t solve the problem yourself, Duel.com offers 24/7 support via live chat and email. They also maintain a developer portal with FAQs, example code snippets, and a sandbox environment for testing.
Common Errors and Fixes
- 401 Unauthorized – token expired or missing. Refresh the token using the OAuth endpoint.
- 400 Bad Request – wrong parameter name. Verify the API docs for exact field spelling.
- 503 Service Unavailable – maintenance window. Retry after the time indicated in the
Retry-Afterheader.
Getting Help from Duel.com Support
When contacting support, include the following details to speed up the process:
- Your client‑id and request timestamp.
- Full error response (status code and body).
- Steps to reproduce the issue.
Following these guidelines usually leads to a resolution within a few hours, keeping your players happy and your integration running smoothly.