bet4goals

FREE
By yannisptol
Updated 4 months ago
Sports
0.8/10
Popularity Score
121ms
Latency
-
Success Rate

bet4goals API Documentation

test api

View API Details
GET/bet
GET/bet

Test bet

Authorization:

test

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationBASIC
REQUIREDtest
Bet4GoalsNUMBER
OPTIONALtest
Code Snippet
unirest.get("https://yannisptol-bet4goals-v1.p.rapidapi.com/bet")
.header("X-RapidAPI-Host", "yannisptol-bet4goals-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Bet4Goals", "1")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://yannisptol-bet4goals-v1.p.rapidapi.com/bet
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://yannisptol-bet4goals-v1.p.rapidapi.com/bet")
.header("X-RapidAPI-Host", "yannisptol-bet4goals-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Bet4Goals", "1")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication