Authentication Last updated: 23.09.2024

The API uses API keys for authentication. Requests must include the API key in the request headers or as query parameters to access the endpoints. Additionally, requests must validate the originating URL and a superkey for enhanced security.

Request headers

To authenticate your requests, you need to include certain headers. These headers help verify your identity and ensure that the requests are coming from an authorized source.

  • API-Key: Your unique API key that authenticates your requests.
  • Superkey: A specific key used to validate requests. This is a secondary key for added security.
  • Origin: The URL of your website from which the request is made.
Code Example:
CURL Example
[
						  {
							"method": "curl",
							"headers": {
							  "API-Key": "YOUR_API_KEY",
							  "Superkey": "YOUR_SUPERKEY",
							  "Origin": "https://yourwebsite.com"
							},
							"url": "https://dat.slotsforfree.online/api.php",
							"params": {
							  "lang": "en",
							  "software": [1, 2],
							  "rtp": 96.5,
							  "volatility": "High"
							}
						  }
						]
						
PHP Example
[
						  {
							"language": "php",
							"variables": {
							  "apiKey": "YOUR_API_KEY",
							  "superkey": "YOUR_SUPERKEY",
							  "origin": "https://yourwebsite.com"
							},
							"context": {
							  "http": {
								"header": [
								  "API-Key: $apiKey",
								  "Superkey: $superkey",
								  "Origin: $origin"
								]
							  }
							},
							"url": "https://dat.slotsforfree.online/api.php?lang=en&software=D1,D2&rtp=96.5&volatility=High",
							"responseHandling": {
							  "errorCheck": "if ($response === FALSE)",
							  "echoResponse": "echo $response"
							}
						  }
						]
						
JavaScript Example
[
						  {
							"language": "javascript",
							"variables": {
							  "apiKey": "YOUR_API_KEY",
							  "superkey": "YOUR_SUPERKEY",
							  "origin": "https://yourwebsite.com"
							},
							"fetchCall": {
							  "method": "GET",
							  "url": "https://dat.slotsforfree.online/api.php?lang=en&software=D1,D2&rtp=96.5&volatility=High",
							  "headers": {
								"API-Key": "YOUR_API_KEY",
								"Superkey": "YOUR_SUPERKEY",
								"Origin": "https://yourwebsite.com"
							  }
							},
							"promiseHandling": {
							  "then": "response => response.json()",
							  "log": "data => console.log(data)",
							  "catchError": "error => console.error('Error:', error)"
							}
						  }
						]
						

Register API Last updated: 23.09.2024

This endpoint allows you to register or update an existing API key with your website's URL.

Method: POST

Parameters:

  • api_key (string):Your unique API key.
  • url (string): The website URL associated with your API key.
Code Example:
CURL Example
[
						  {
							"method": "POST",
							"url": "https://dat.slotsforfree.online/api_register.php",
							"data": {
							  "api_key": "YOUR_API_KEY",
							  "url": "https://yourwebsite.com"
							}
						  }
						]
						
PHP Example
[
						  {
							"language": "php",
							"variables": {
							  "apiKey": "YOUR_API_KEY",
							  "url": "https://yourwebsite.com"
							},
							"data": {
							  "api_key": "YOUR_API_KEY",
							  "url": "https://yourwebsite.com"
							},
							"options": {
							  "http": {
								"header": "Content-type: application/x-www-form-urlencoded",
								"method": "POST",
								"content": "http_build_query($data)"
							  }
							},
							"context": "stream_context_create($options)",
							"resultHandling": {
							  "errorCheck": "if ($result === FALSE)",
							  "echoResult": "echo $result"
							}
						  }
						]
						
JavaScript Example
[
						  {
							"language": "javascript",
							"variables": {
							  "apiKey": "YOUR_API_KEY",
							  "url": "https://yourwebsite.com"
							},
							"fetchCall": {
							  "method": "POST",
							  "url": "https://dat.slotsforfree.online/api_register.php",
							  "headers": {
								"Content-Type": "application/x-www-form-urlencoded"
							  },
							  "body": {
								"api_key": "YOUR_API_KEY",
								"url": "https://yourwebsite.com"
							  }
							},
							"promiseHandling": {
							  "then": "response => response.json()",
							  "log": "data => console.log(data)",
							  "catchError": "error => console.error('Error:', error)"
							}
						  }
						]
						

Slots Data API Last updated: 23.09.2024

This endpoint allows you to retrieve slot game data based on various filters.

Method: GET

Parameters:

  • api_key (string):Your unique API key.
  • superkey (string):The superkey for additional security.
  • url (string):The originating URL of the request.
  • lang (string, optional):Language of the response. Supported values: en, es, cz, it, sv. Default is en.
  • software (string, optional):Filter by software/developer ID.
  • id (string, optional):Filter by slot ID.
  • rtp (string, optional):Filter by RTP (Return to Player) percentage.
  • volatility (string, optional):Filter by volatility.
  • paylines (string, optional):Filter by the number of paylines.
  • reels (string, optional):Filter by the number of reels.
  • theme (string, optional):Filter by theme.
  • type (string, optional):Filter by game type.

Code Example:
CURL Example
[
				  {
					"method": "GET",
					"url": "https://dat.slotsforfree.online/api.php",
					"headers": {
					  "API-Key": "YOUR_API_KEY",
					  "Superkey": "YOUR_SUPERKEY",
					  "Origin": "https://yourwebsite.com"
					},
					"params": {
					  "lang": "en",
					  "software": [1, 2],
					  "rtp": 96.5,
					  "volatility": "High"
					}
				  }
				]
				
PHP Example
[
				  {
					"language": "php",
					"variables": {
					  "apiKey": "YOUR_API_KEY",
					  "superkey": "YOUR_SUPERKEY",
					  "origin": "https://yourwebsite.com"
					},
					"context": {
					  "http": {
						"header": [
						  "API-Key: $apiKey",
						  "Superkey: $superkey",
						  "Origin: $origin"
						]
					  }
					},
					"url": "https://dat.slotsforfree.online/api.php?lang=en&software=D1,D2&rtp=96.5&volatility=High",
					"responseHandling": {
					  "errorCheck": "if ($response === FALSE)",
					  "echoResponse": "echo $response"
					}
				  }
				]
				
JavaScript Example
[
				  {
					"language": "javascript",
					"variables": {
					  "apiKey": "YOUR_API_KEY",
					  "superkey": "YOUR_SUPERKEY",
					  "origin": "https://yourwebsite.com"
					},
					"fetchCall": {
					  "method": "GET",
					  "url": "https://dat.slotsforfree.online/api.php?lang=en&software=D1,D2&rtp=96.5&volatility=High",
					  "headers": {
						"API-Key": "YOUR_API_KEY",
						"Superkey": "YOUR_SUPERKEY",
						"Origin": "https://yourwebsite.com"
					  }
					},
					"promiseHandling": {
					  "then": "response => response.json()",
					  "log": "data => console.log(data)",
					  "catchError": "error => console.error('Error:', error)"
					}
				  }
				]
				

Results
English (Default)
[{
"ID": "1",
"Slot_name": "Raging Storms",
"Developer": "IGT",
"ID_Developer": "D8",
"Image": "/slot-img/igt/raging-storms",
"RTP": "95%",
"Volatility": "Medium",
"Paylines": "25",
"Reels": "5",
"Theme": "Ancient",
"iFrame": "IFRAME",
"Type": "Slots"
}]
Swedish
[{
"ID": "1",
"Spelpautomat": "Raging Storms",
"Spel_utvecklare": "IGT",
"ID_utvecklare": "D8",
"Bild": "/slot-img/igt/raging-storms",
"RTP": "95%",
"Volatilitet": "Medium",
"Vinstlinjer": "25",
"Hjul": "5",
"Tema": "Forntida",
"iFrame": "Iframe",
"Typ": "Spelautomater"
}]
Czech
[{
"ID": "1",
"Nazev_automatu": "Raging Storms",
"Vyvojar": "IGT",
"ID_vyvojar": "D8",
"Obrazek": "/slot-img/igt/raging-storms",
"RTP": "95%",
"Volatilita": "Střední",
"Vyherni_linie": "25",
"Valce": "5",
"Tema": "Staroveký",
"Hra": "Iframe",
"Typ": "Automaty"
} ]
Italian
[ {
"ID": "1",
"Nome_automato": "Raging Storms",
"Produttore": "IGT",
"ID_produttore": "D8",
"Immagine": "/slot-img/igt/raging-storms",
"RTP": "95%",
"Volatilita": "Medio",
"Linee": "25",
"Rulli": "5",
"Temi": "Antico",
"Gioco": "Iframe",
"Tipo": "Slot machine"
} ]
Spanish
[ {
"ID": "1",
"Nombre_automata": "Raging Storms",
"Desarrollador": "IGT",
"ID_desarrollador": "D8",
"Imagen": "/slot-img/igt/raging-storms",
"RTP": "95%",
"Volatilidad": "Medio",
"Lineas_ganadoras": "25",
"Rodillos": "5",
"Tema": "Antiguo",
"Juego": "Iframe",
"Tipo": "Tragamonedas"
} ]

API Usage Logs Last updated: 23.09.2024

This endpoint provides information about the API usage for a given API key.

Method: GET or POST

Parameters:

  • api_key (string):Your unique API key.
Code Example:
CURL Example (GET)
[
				  {
					"method": "GET",
					"url": "https://dat.slotsforfree.online/api_log_endpoint.php",
					"headers": {
					  "API-Key": "YOUR_API_KEY",
					  "Superkey": "YOUR_SUPERKEY",
					  "Origin": "https://yourwebsite.com"
					},
					"params": {
					  "api_key": "YOUR_API_KEY"
					}
				  }
				]
				
PHP Example (GET)
[
				  {
					"language": "php",
					"variables": {
					  "apiKey": "YOUR_API_KEY",
					  "superkey": "YOUR_SUPERKEY",
					  "origin": "https://yourwebsite.com"
					},
					"context": {
					  "http": {
						"header": [
						  "API-Key: $apiKey",
						  "Superkey: $superkey",
						  "Origin: $origin"
						]
					  }
					},
					"url": "https://dat.slotsforfree.online/api_log_endpoint.php?api_key=$apiKey",
					"responseHandling": {
					  "errorCheck": "if ($response === FALSE)",
					  "echoResponse": "echo $response"
					}
				  }
				]
				
JavaScript Example (GET)
[
				  {
					"language": "javascript",
					"variables": {
					  "apiKey": "YOUR_API_KEY",
					  "superkey": "YOUR_SUPERKEY",
					  "origin": "https://yourwebsite.com"
					},
					"fetchCall": {
					  "method": "GET",
					  "url": "https://dat.slotsforfree.online/api_log_endpoint.php?api_key=${apiKey}",
					  "headers": {
						"API-Key": "YOUR_API_KEY",
						"Superkey": "YOUR_SUPERKEY",
						"Origin": "https://yourwebsite.com"
					  }
					},
					"promiseHandling": {
					  "then": "response => response.json()",
					  "log": "data => console.log(data)",
					  "catchError": "error => console.error('Error:', error)"
					}
				  }
				]
				

Get Developers List Last updated: 23.09.2024

This endpoint allows you to retrieve a list of all developers along with their IDs and logos. The request must include a valid API key, and only active API keys are allowed to access the data.

Method: GET or POST

Parameters:

  • api_key (string):Your unique API key.
Code Example:
CURL Example (GET)
[
				  {
					"method": "GET",
					"url": "https://dat.slotsforfree.online/developers.php",
					"headers": {
					  "API-Key": "YOUR_API_KEY",
					  "Superkey": "YOUR_SUPERKEY",
					  "Origin": "https://yourwebsite.com"
					}
				  }
				]
				
CURL Example (POST)
[
				  {
					"method": "POST",
					"url": "https://dat.slotsforfree.online/developers.php",
					"headers": {
					  "API-Key": "YOUR_API_KEY",
					  "Superkey": "YOUR_SUPERKEY",
					  "Origin": "https://yourwebsite.com",
					  "Content-Type": "application/x-www-form-urlencoded"
					},
					"body": {
					  "api_key": "YOUR_API_KEY"
					}
				  }
				]
				
PHP Example (GET)
[
				  {
					"language": "php",
					"variables": {
					  "apiKey": "YOUR_API_KEY",
					  "superkey": "YOUR_SUPERKEY",
					  "origin": "https://yourwebsite.com"
					},
					"context": {
					  "http": {
						"header": [
						  "API-Key: $apiKey",
						  "Superkey: $superkey",
						  "Origin: $origin"
						]
					  }
					},
					"url": "https://dat.slotsforfree.online/developers.php?api_key=$apiKey",
					"responseHandling": {
					  "errorCheck": "if ($response === FALSE)",
					  "echoResponse": "echo $response"
					}
				  }
				]
				
PHP Example (POST)
[
				  {
					"language": "php",
					"variables": {
					  "apiKey": "YOUR_API_KEY",
					  "superkey": "YOUR_SUPERKEY",
					  "origin": "https://yourwebsite.com"
					},
					"data": {
					  "api_key": "YOUR_API_KEY"
					},
					"options": {
					  "http": {
						"header": [
						  "API-Key: $apiKey",
						  "Superkey: $superkey",
						  "Origin: $origin",
						  "Content-Type: application/x-www-form-urlencoded"
						],
						"method": "POST",
						"content": "http_build_query($data)"
					  }
					},
					"context": "stream_context_create($options)",
					"responseHandling": {
					  "errorCheck": "if ($response === FALSE)",
					  "echoResponse": "echo $response"
					}
				  }
				]
				
JavaScript Example (GET)
[
				  {
					"language": "javascript",
					"variables": {
					  "apiKey": "YOUR_API_KEY",
					  "superkey": "YOUR_SUPERKEY",
					  "origin": "https://yourwebsite.com"
					},
					"fetchCall": {
					  "method": "GET",
					  "url": "https://dat.slotsforfree.online/developers.php?api_key=${apiKey}",
					  "headers": {
						"API-Key": "YOUR_API_KEY",
						"Superkey": "YOUR_SUPERKEY",
						"Origin": "https://yourwebsite.com"
					  }
					},
					"promiseHandling": {
					  "then": "response => response.json()",
					  "log": "data => console.log(data)",
					  "catchError": "error => console.error('Error:', error)"
					}
				  }
				]
				
JavaScript Example (POST)
[
				  {
					"language": "javascript",
					"variables": {
					  "apiKey": "YOUR_API_KEY",
					  "superkey": "YOUR_SUPERKEY",
					  "origin": "https://yourwebsite.com"
					},
					"fetchCall": {
					  "method": "POST",
					  "url": "https://dat.slotsforfree.online/developers.php",
					  "headers": {
						"API-Key": "YOUR_API_KEY",
						"Superkey": "YOUR_SUPERKEY",
						"Origin": "https://yourwebsite.com",
						"Content-Type": "application/x-www-form-urlencoded"
					  },
					  "body": {
						"api_key": "YOUR_API_KEY"
					  }
					},
					"promiseHandling": {
					  "then": "response => response.json()",
					  "log": "data => console.log(data)",
					  "catchError": "error => console.error('Error:', error)"
					}
				  }
				]
				

Get Latest News Last updated: 23.09.2024

This endpoint allows you to retrieve the latest news updates related to the Slots Demo Play API. The response is provided in XML format according to the RSS 2.0 specification.

Method: GET

Response Format: RSS 2.0 (XML)

Code Example:
CURL Example
[
				  {
					"method": "GET",
					"url": "https://dat.slotsforfree.online/news.php"
				  }
				]
				
PHP Example
[
				  {
					"language": "php",
					"responseHandling": {
					  "url": "https://dat.slotsforfree.online/news.php",
					  "errorCheck": "if ($response === FALSE)",
					  "header": "header('Content-Type: application/xml')",
					  "echoResponse": "echo $response"
					}
				  }
				]
				
JavaScript Example
[
				  {
					"language": "javascript",
					"fetchCall": {
					  "url": "https://dat.slotsforfree.online/news.php",
					  "method": "GET"
					},
					"promiseHandling": {
					  "then": "response => response.text()",
					  "parseXML": "const parser = new DOMParser();",
					  "xmlDocument": "const xmlDoc = parser.parseFromString(data, 'text/xml');",
					  "log": "console.log(xmlDoc)",
					  "catchError": "error => console.error('Error:', error)"
					}
				  }
				]