API football

Competitions

competitions

Returns list of supported competitions included in your current subscription plan


/get_leagues

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apifootball/get_leagues?APIkey=&country_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompetitionsApi;

import java.io.File;
import java.util.*;

public class CompetitionsApiExample {

    public static void main(String[] args) {
        
        CompetitionsApi apiInstance = new CompetitionsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal countryId = 8.14; // BigDecimal |  if set only leagues from specific country will be returned (Optional)
        try {
            array[inline_response_200_1] result = apiInstance.competitions(apiecoKey, aPIkey, countryId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionsApi#competitions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompetitionsApi;

public class CompetitionsApiExample {

    public static void main(String[] args) {
        CompetitionsApi apiInstance = new CompetitionsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal countryId = 8.14; // BigDecimal |  if set only leagues from specific country will be returned (Optional)
        try {
            array[inline_response_200_1] result = apiInstance.competitions(apiecoKey, aPIkey, countryId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionsApi#competitions");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
BigDecimal *countryId = 8.14; //  if set only leagues from specific country will be returned (Optional) (optional)

CompetitionsApi *apiInstance = [[CompetitionsApi alloc] init];

[apiInstance competitionsWith:apiecoKey
    aPIkey:aPIkey
    countryId:countryId
              completionHandler: ^(array[inline_response_200_1] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFootball = require('api_football');

var api = new ApiFootball.CompetitionsApi()

var apiecoKey = apiecoKey_example; // {String} 

var aPIkey = aPIkey_example; // {String} Don't Change This

var opts = { 
  'countryId': 8.14 // {BigDecimal}  if set only leagues from specific country will be returned (Optional)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.competitions(apiecoKey, aPIkey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class competitionsExample
    {
        public void main()
        {
            
            var apiInstance = new CompetitionsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aPIkey = aPIkey_example;  // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
            var countryId = 8.14;  // BigDecimal |  if set only leagues from specific country will be returned (Optional) (optional) 

            try
            {
                array[inline_response_200_1] result = apiInstance.competitions(apiecoKey, aPIkey, countryId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompetitionsApi.competitions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CompetitionsApi();
$apiecoKey = apiecoKey_example; // String | 
$aPIkey = aPIkey_example; // String | Don't Change This
$countryId = 8.14; // BigDecimal |  if set only leagues from specific country will be returned (Optional)

try {
    $result = $api_instance->competitions($apiecoKey, $aPIkey, $countryId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompetitionsApi->competitions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CompetitionsApi;

my $api_instance = WWW::SwaggerClient::CompetitionsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aPIkey = aPIkey_example; # String | Don't Change This
my $countryId = 8.14; # BigDecimal |  if set only leagues from specific country will be returned (Optional)

eval { 
    my $result = $api_instance->competitions(apiecoKey => $apiecoKey, aPIkey => $aPIkey, countryId => $countryId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CompetitionsApi->competitions: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CompetitionsApi()
apiecoKey = apiecoKey_example # String | 
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
countryId = 8.14 # BigDecimal |  if set only leagues from specific country will be returned (Optional) (optional)

try: 
    api_response = api_instance.competitions(apiecoKey, aPIkey, countryId=countryId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompetitionsApi->competitions: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
APIkey*
String
Don't Change This
Required
country_id
BigDecimal
if set only leagues from specific country will be returned (Optional)

Responses

Status: 200 - Successful


Countries

countries

Returns list of supported countries included in your current subscription plan


/get_countries

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apifootball/get_countries?APIkey="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CountriesApi;

import java.io.File;
import java.util.*;

public class CountriesApiExample {

    public static void main(String[] args) {
        
        CountriesApi apiInstance = new CountriesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        try {
            array[inline_response_200] result = apiInstance.countries(apiecoKey, aPIkey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CountriesApi#countries");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CountriesApi;

public class CountriesApiExample {

    public static void main(String[] args) {
        CountriesApi apiInstance = new CountriesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        try {
            array[inline_response_200] result = apiInstance.countries(apiecoKey, aPIkey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CountriesApi#countries");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)

CountriesApi *apiInstance = [[CountriesApi alloc] init];

[apiInstance countriesWith:apiecoKey
    aPIkey:aPIkey
              completionHandler: ^(array[inline_response_200] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFootball = require('api_football');

var api = new ApiFootball.CountriesApi()

var apiecoKey = apiecoKey_example; // {String} 

var aPIkey = aPIkey_example; // {String} Don't Change This


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countries(apiecoKey, aPIkey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countriesExample
    {
        public void main()
        {
            
            var apiInstance = new CountriesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aPIkey = aPIkey_example;  // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)

            try
            {
                array[inline_response_200] result = apiInstance.countries(apiecoKey, aPIkey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CountriesApi.countries: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CountriesApi();
$apiecoKey = apiecoKey_example; // String | 
$aPIkey = aPIkey_example; // String | Don't Change This

try {
    $result = $api_instance->countries($apiecoKey, $aPIkey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CountriesApi->countries: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CountriesApi;

my $api_instance = WWW::SwaggerClient::CountriesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aPIkey = aPIkey_example; # String | Don't Change This

eval { 
    my $result = $api_instance->countries(apiecoKey => $apiecoKey, aPIkey => $aPIkey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CountriesApi->countries: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CountriesApi()
apiecoKey = apiecoKey_example # String | 
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)

try: 
    api_response = api_instance.countries(apiecoKey, aPIkey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CountriesApi->countries: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
APIkey*
String
Don't Change This
Required

Responses

Status: 200 - Successful


EventsResultsFixtures

events

Returns events included in your current subscription plan


/get_events

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apifootball/get_events?APIkey=&league_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventsResultsFixturesApi;

import java.io.File;
import java.util.*;

public class EventsResultsFixturesApiExample {

    public static void main(String[] args) {
        
        EventsResultsFixturesApi apiInstance = new EventsResultsFixturesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal leagueId = 8.14; // BigDecimal | League internal code
        try {
            array[inline_response_200_4] result = apiInstance.events(apiecoKey, aPIkey, leagueId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsResultsFixturesApi#events");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventsResultsFixturesApi;

public class EventsResultsFixturesApiExample {

    public static void main(String[] args) {
        EventsResultsFixturesApi apiInstance = new EventsResultsFixturesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal leagueId = 8.14; // BigDecimal | League internal code
        try {
            array[inline_response_200_4] result = apiInstance.events(apiecoKey, aPIkey, leagueId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsResultsFixturesApi#events");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
BigDecimal *leagueId = 8.14; // League internal code (optional)

EventsResultsFixturesApi *apiInstance = [[EventsResultsFixturesApi alloc] init];

[apiInstance eventsWith:apiecoKey
    aPIkey:aPIkey
    leagueId:leagueId
              completionHandler: ^(array[inline_response_200_4] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFootball = require('api_football');

var api = new ApiFootball.EventsResultsFixturesApi()

var apiecoKey = apiecoKey_example; // {String} 

var aPIkey = aPIkey_example; // {String} Don't Change This

var opts = { 
  'leagueId': 8.14 // {BigDecimal} League internal code
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.events(apiecoKey, aPIkey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class eventsExample
    {
        public void main()
        {
            
            var apiInstance = new EventsResultsFixturesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aPIkey = aPIkey_example;  // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
            var leagueId = 8.14;  // BigDecimal | League internal code (optional) 

            try
            {
                array[inline_response_200_4] result = apiInstance.events(apiecoKey, aPIkey, leagueId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventsResultsFixturesApi.events: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\EventsResultsFixturesApi();
$apiecoKey = apiecoKey_example; // String | 
$aPIkey = aPIkey_example; // String | Don't Change This
$leagueId = 8.14; // BigDecimal | League internal code

try {
    $result = $api_instance->events($apiecoKey, $aPIkey, $leagueId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventsResultsFixturesApi->events: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventsResultsFixturesApi;

my $api_instance = WWW::SwaggerClient::EventsResultsFixturesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aPIkey = aPIkey_example; # String | Don't Change This
my $leagueId = 8.14; # BigDecimal | League internal code

eval { 
    my $result = $api_instance->events(apiecoKey => $apiecoKey, aPIkey => $aPIkey, leagueId => $leagueId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EventsResultsFixturesApi->events: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EventsResultsFixturesApi()
apiecoKey = apiecoKey_example # String | 
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
leagueId = 8.14 # BigDecimal | League internal code (optional)

try: 
    api_response = api_instance.events(apiecoKey, aPIkey, leagueId=leagueId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventsResultsFixturesApi->events: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
APIkey*
String
Don't Change This
Required
league_id
BigDecimal
League internal code

Responses

Status: 200 - Successful


H2H

h2H

Returns the last games between submiteted teams and the last games of each team


/get_H2H

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apifootball/get_H2H?APIkey=&firstTeam=&secondTeam="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H2HApi;

import java.io.File;
import java.util.*;

public class H2HApiExample {

    public static void main(String[] args) {
        
        H2HApi apiInstance = new H2HApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        String firstTeam = firstTeam_example; // String | First team name
        String secondTeam = secondTeam_example; // String | Second team name
        try {
            array[inline_response_200_8] result = apiInstance.h2H(apiecoKey, aPIkey, firstTeam, secondTeam);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H2HApi#h2H");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H2HApi;

public class H2HApiExample {

    public static void main(String[] args) {
        H2HApi apiInstance = new H2HApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        String firstTeam = firstTeam_example; // String | First team name
        String secondTeam = secondTeam_example; // String | Second team name
        try {
            array[inline_response_200_8] result = apiInstance.h2H(apiecoKey, aPIkey, firstTeam, secondTeam);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H2HApi#h2H");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
String *firstTeam = firstTeam_example; // First team name (optional)
String *secondTeam = secondTeam_example; // Second team name (optional)

H2HApi *apiInstance = [[H2HApi alloc] init];

[apiInstance h2HWith:apiecoKey
    aPIkey:aPIkey
    firstTeam:firstTeam
    secondTeam:secondTeam
              completionHandler: ^(array[inline_response_200_8] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFootball = require('api_football');

var api = new ApiFootball.H2HApi()

var apiecoKey = apiecoKey_example; // {String} 

var aPIkey = aPIkey_example; // {String} Don't Change This

var opts = { 
  'firstTeam': firstTeam_example, // {String} First team name
  'secondTeam': secondTeam_example // {String} Second team name
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.h2H(apiecoKey, aPIkey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class h2HExample
    {
        public void main()
        {
            
            var apiInstance = new H2HApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aPIkey = aPIkey_example;  // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
            var firstTeam = firstTeam_example;  // String | First team name (optional) 
            var secondTeam = secondTeam_example;  // String | Second team name (optional) 

            try
            {
                array[inline_response_200_8] result = apiInstance.h2H(apiecoKey, aPIkey, firstTeam, secondTeam);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H2HApi.h2H: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H2HApi();
$apiecoKey = apiecoKey_example; // String | 
$aPIkey = aPIkey_example; // String | Don't Change This
$firstTeam = firstTeam_example; // String | First team name
$secondTeam = secondTeam_example; // String | Second team name

try {
    $result = $api_instance->h2H($apiecoKey, $aPIkey, $firstTeam, $secondTeam);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H2HApi->h2H: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H2HApi;

my $api_instance = WWW::SwaggerClient::H2HApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aPIkey = aPIkey_example; # String | Don't Change This
my $firstTeam = firstTeam_example; # String | First team name
my $secondTeam = secondTeam_example; # String | Second team name

eval { 
    my $result = $api_instance->h2H(apiecoKey => $apiecoKey, aPIkey => $aPIkey, firstTeam => $firstTeam, secondTeam => $secondTeam);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H2HApi->h2H: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.H2HApi()
apiecoKey = apiecoKey_example # String | 
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
firstTeam = firstTeam_example # String | First team name (optional)
secondTeam = secondTeam_example # String | Second team name (optional)

try: 
    api_response = api_instance.h2_h(apiecoKey, aPIkey, firstTeam=firstTeam, secondTeam=secondTeam)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H2HApi->h2H: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
APIkey*
String
Don't Change This
Required
firstTeam
String
First team name
secondTeam
String
Second team name

Responses

Status: 200 - Successful


Lineups

lineups

Returns lineups of one event


/get_lineups

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apifootball/get_lineups?APIkey=&match_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LineupsApi;

import java.io.File;
import java.util.*;

public class LineupsApiExample {

    public static void main(String[] args) {
        
        LineupsApi apiInstance = new LineupsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal matchId = 8.14; // BigDecimal | Match ID
        try {
            inline_response_200_5 result = apiInstance.lineups(apiecoKey, aPIkey, matchId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LineupsApi#lineups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LineupsApi;

public class LineupsApiExample {

    public static void main(String[] args) {
        LineupsApi apiInstance = new LineupsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal matchId = 8.14; // BigDecimal | Match ID
        try {
            inline_response_200_5 result = apiInstance.lineups(apiecoKey, aPIkey, matchId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LineupsApi#lineups");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
BigDecimal *matchId = 8.14; // Match ID (optional)

LineupsApi *apiInstance = [[LineupsApi alloc] init];

[apiInstance lineupsWith:apiecoKey
    aPIkey:aPIkey
    matchId:matchId
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFootball = require('api_football');

var api = new ApiFootball.LineupsApi()

var apiecoKey = apiecoKey_example; // {String} 

var aPIkey = aPIkey_example; // {String} Don't Change This

var opts = { 
  'matchId': 8.14 // {BigDecimal} Match ID
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.lineups(apiecoKey, aPIkey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class lineupsExample
    {
        public void main()
        {
            
            var apiInstance = new LineupsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aPIkey = aPIkey_example;  // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
            var matchId = 8.14;  // BigDecimal | Match ID (optional) 

            try
            {
                inline_response_200_5 result = apiInstance.lineups(apiecoKey, aPIkey, matchId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LineupsApi.lineups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LineupsApi();
$apiecoKey = apiecoKey_example; // String | 
$aPIkey = aPIkey_example; // String | Don't Change This
$matchId = 8.14; // BigDecimal | Match ID

try {
    $result = $api_instance->lineups($apiecoKey, $aPIkey, $matchId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LineupsApi->lineups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LineupsApi;

my $api_instance = WWW::SwaggerClient::LineupsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aPIkey = aPIkey_example; # String | Don't Change This
my $matchId = 8.14; # BigDecimal | Match ID

eval { 
    my $result = $api_instance->lineups(apiecoKey => $apiecoKey, aPIkey => $aPIkey, matchId => $matchId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LineupsApi->lineups: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LineupsApi()
apiecoKey = apiecoKey_example # String | 
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
matchId = 8.14 # BigDecimal | Match ID (optional)

try: 
    api_response = api_instance.lineups(apiecoKey, aPIkey, matchId=matchId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LineupsApi->lineups: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
APIkey*
String
Don't Change This
Required
match_id
BigDecimal
Match ID

Responses

Status: 200 - Successful


Odds

odds

Returns odds (1x2, BTS, O/U, AH) for events included in your current subscription plan


/get_odds

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apifootball/get_odds?APIkey=&match_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OddsApi;

import java.io.File;
import java.util.*;

public class OddsApiExample {

    public static void main(String[] args) {
        
        OddsApi apiInstance = new OddsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal matchId = 8.14; // BigDecimal | Match ID
        try {
            array[inline_response_200_7] result = apiInstance.odds(apiecoKey, aPIkey, matchId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OddsApi#odds");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OddsApi;

public class OddsApiExample {

    public static void main(String[] args) {
        OddsApi apiInstance = new OddsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal matchId = 8.14; // BigDecimal | Match ID
        try {
            array[inline_response_200_7] result = apiInstance.odds(apiecoKey, aPIkey, matchId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OddsApi#odds");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
BigDecimal *matchId = 8.14; // Match ID (optional)

OddsApi *apiInstance = [[OddsApi alloc] init];

[apiInstance oddsWith:apiecoKey
    aPIkey:aPIkey
    matchId:matchId
              completionHandler: ^(array[inline_response_200_7] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFootball = require('api_football');

var api = new ApiFootball.OddsApi()

var apiecoKey = apiecoKey_example; // {String} 

var aPIkey = aPIkey_example; // {String} Don't Change This

var opts = { 
  'matchId': 8.14 // {BigDecimal} Match ID
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.odds(apiecoKey, aPIkey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class oddsExample
    {
        public void main()
        {
            
            var apiInstance = new OddsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aPIkey = aPIkey_example;  // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
            var matchId = 8.14;  // BigDecimal | Match ID (optional) 

            try
            {
                array[inline_response_200_7] result = apiInstance.odds(apiecoKey, aPIkey, matchId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OddsApi.odds: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\OddsApi();
$apiecoKey = apiecoKey_example; // String | 
$aPIkey = aPIkey_example; // String | Don't Change This
$matchId = 8.14; // BigDecimal | Match ID

try {
    $result = $api_instance->odds($apiecoKey, $aPIkey, $matchId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OddsApi->odds: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OddsApi;

my $api_instance = WWW::SwaggerClient::OddsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aPIkey = aPIkey_example; # String | Don't Change This
my $matchId = 8.14; # BigDecimal | Match ID

eval { 
    my $result = $api_instance->odds(apiecoKey => $apiecoKey, aPIkey => $aPIkey, matchId => $matchId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OddsApi->odds: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.OddsApi()
apiecoKey = apiecoKey_example # String | 
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
matchId = 8.14 # BigDecimal | Match ID (optional)

try: 
    api_response = api_instance.odds(apiecoKey, aPIkey, matchId=matchId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OddsApi->odds: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
APIkey*
String
Don't Change This
Required
match_id
BigDecimal
Match ID

Responses

Status: 200 - Successful


Players

players

Returns available players


/get_players

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apifootball/get_players?APIkey=&player_id=&player_name="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlayersApi;

import java.io.File;
import java.util.*;

public class PlayersApiExample {

    public static void main(String[] args) {
        
        PlayersApi apiInstance = new PlayersApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal playerId = 8.14; // BigDecimal |  mandatory if player name is not set
        BigDecimal playerName = 8.14; // BigDecimal | mandatory if player id is not set
        try {
            array[get_teams_players] result = apiInstance.players(apiecoKey, aPIkey, playerId, playerName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#players");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlayersApi;

public class PlayersApiExample {

    public static void main(String[] args) {
        PlayersApi apiInstance = new PlayersApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal playerId = 8.14; // BigDecimal |  mandatory if player name is not set
        BigDecimal playerName = 8.14; // BigDecimal | mandatory if player id is not set
        try {
            array[get_teams_players] result = apiInstance.players(apiecoKey, aPIkey, playerId, playerName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#players");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
BigDecimal *playerId = 8.14; //  mandatory if player name is not set (optional)
BigDecimal *playerName = 8.14; // mandatory if player id is not set (optional)

PlayersApi *apiInstance = [[PlayersApi alloc] init];

[apiInstance playersWith:apiecoKey
    aPIkey:aPIkey
    playerId:playerId
    playerName:playerName
              completionHandler: ^(array[get_teams_players] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFootball = require('api_football');

var api = new ApiFootball.PlayersApi()

var apiecoKey = apiecoKey_example; // {String} 

var aPIkey = aPIkey_example; // {String} Don't Change This

var opts = { 
  'playerId': 8.14, // {BigDecimal}  mandatory if player name is not set
  'playerName': 8.14 // {BigDecimal} mandatory if player id is not set
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.players(apiecoKey, aPIkey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class playersExample
    {
        public void main()
        {
            
            var apiInstance = new PlayersApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aPIkey = aPIkey_example;  // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
            var playerId = 8.14;  // BigDecimal |  mandatory if player name is not set (optional) 
            var playerName = 8.14;  // BigDecimal | mandatory if player id is not set (optional) 

            try
            {
                array[get_teams_players] result = apiInstance.players(apiecoKey, aPIkey, playerId, playerName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlayersApi.players: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PlayersApi();
$apiecoKey = apiecoKey_example; // String | 
$aPIkey = aPIkey_example; // String | Don't Change This
$playerId = 8.14; // BigDecimal |  mandatory if player name is not set
$playerName = 8.14; // BigDecimal | mandatory if player id is not set

try {
    $result = $api_instance->players($apiecoKey, $aPIkey, $playerId, $playerName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlayersApi->players: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlayersApi;

my $api_instance = WWW::SwaggerClient::PlayersApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aPIkey = aPIkey_example; # String | Don't Change This
my $playerId = 8.14; # BigDecimal |  mandatory if player name is not set
my $playerName = 8.14; # BigDecimal | mandatory if player id is not set

eval { 
    my $result = $api_instance->players(apiecoKey => $apiecoKey, aPIkey => $aPIkey, playerId => $playerId, playerName => $playerName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlayersApi->players: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PlayersApi()
apiecoKey = apiecoKey_example # String | 
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
playerId = 8.14 # BigDecimal |  mandatory if player name is not set (optional)
playerName = 8.14 # BigDecimal | mandatory if player id is not set (optional)

try: 
    api_response = api_instance.players(apiecoKey, aPIkey, playerId=playerId, playerName=playerName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlayersApi->players: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
APIkey*
String
Don't Change This
Required
player_id
BigDecimal
mandatory if player name is not set
player_name
BigDecimal
mandatory if player id is not set

Responses

Status: 200 - Successful


Predictions

predictions

Returns mathematical calculated predictions for the events included in your current subscription plan


/get_predictions

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apifootball/get_predictions?APIkey=&from=&to=&country_id=&league_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PredictionsApi;

import java.io.File;
import java.util.*;

public class PredictionsApiExample {

    public static void main(String[] args) {
        
        PredictionsApi apiInstance = new PredictionsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        String from = from_example; // String | Start date (yyyy-mm-dd)
        String to = to_example; // String | Stop date (yyyy-mm-dd)
        String countryId = countryId_example; // String | if set only leagues from specific country will be returned (Optional)
        String leagueId = leagueId_example; // String | if set events from specific league will be returned (Optional)
        try {
            array[get_H2H_firstTeam_VS_secondTeam] result = apiInstance.predictions(apiecoKey, aPIkey, from, to, countryId, leagueId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PredictionsApi#predictions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PredictionsApi;

public class PredictionsApiExample {

    public static void main(String[] args) {
        PredictionsApi apiInstance = new PredictionsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        String from = from_example; // String | Start date (yyyy-mm-dd)
        String to = to_example; // String | Stop date (yyyy-mm-dd)
        String countryId = countryId_example; // String | if set only leagues from specific country will be returned (Optional)
        String leagueId = leagueId_example; // String | if set events from specific league will be returned (Optional)
        try {
            array[get_H2H_firstTeam_VS_secondTeam] result = apiInstance.predictions(apiecoKey, aPIkey, from, to, countryId, leagueId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PredictionsApi#predictions");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
String *from = from_example; // Start date (yyyy-mm-dd) (optional)
String *to = to_example; // Stop date (yyyy-mm-dd) (optional)
String *countryId = countryId_example; // if set only leagues from specific country will be returned (Optional) (optional)
String *leagueId = leagueId_example; // if set events from specific league will be returned (Optional) (optional)

PredictionsApi *apiInstance = [[PredictionsApi alloc] init];

[apiInstance predictionsWith:apiecoKey
    aPIkey:aPIkey
    from:from
    to:to
    countryId:countryId
    leagueId:leagueId
              completionHandler: ^(array[get_H2H_firstTeam_VS_secondTeam] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFootball = require('api_football');

var api = new ApiFootball.PredictionsApi()

var apiecoKey = apiecoKey_example; // {String} 

var aPIkey = aPIkey_example; // {String} Don't Change This

var opts = { 
  'from': from_example, // {String} Start date (yyyy-mm-dd)
  'to': to_example, // {String} Stop date (yyyy-mm-dd)
  'countryId': countryId_example, // {String} if set only leagues from specific country will be returned (Optional)
  'leagueId': leagueId_example // {String} if set events from specific league will be returned (Optional)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.predictions(apiecoKey, aPIkey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class predictionsExample
    {
        public void main()
        {
            
            var apiInstance = new PredictionsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aPIkey = aPIkey_example;  // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
            var from = from_example;  // String | Start date (yyyy-mm-dd) (optional) 
            var to = to_example;  // String | Stop date (yyyy-mm-dd) (optional) 
            var countryId = countryId_example;  // String | if set only leagues from specific country will be returned (Optional) (optional) 
            var leagueId = leagueId_example;  // String | if set events from specific league will be returned (Optional) (optional) 

            try
            {
                array[get_H2H_firstTeam_VS_secondTeam] result = apiInstance.predictions(apiecoKey, aPIkey, from, to, countryId, leagueId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PredictionsApi.predictions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PredictionsApi();
$apiecoKey = apiecoKey_example; // String | 
$aPIkey = aPIkey_example; // String | Don't Change This
$from = from_example; // String | Start date (yyyy-mm-dd)
$to = to_example; // String | Stop date (yyyy-mm-dd)
$countryId = countryId_example; // String | if set only leagues from specific country will be returned (Optional)
$leagueId = leagueId_example; // String | if set events from specific league will be returned (Optional)

try {
    $result = $api_instance->predictions($apiecoKey, $aPIkey, $from, $to, $countryId, $leagueId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PredictionsApi->predictions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PredictionsApi;

my $api_instance = WWW::SwaggerClient::PredictionsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aPIkey = aPIkey_example; # String | Don't Change This
my $from = from_example; # String | Start date (yyyy-mm-dd)
my $to = to_example; # String | Stop date (yyyy-mm-dd)
my $countryId = countryId_example; # String | if set only leagues from specific country will be returned (Optional)
my $leagueId = leagueId_example; # String | if set events from specific league will be returned (Optional)

eval { 
    my $result = $api_instance->predictions(apiecoKey => $apiecoKey, aPIkey => $aPIkey, from => $from, to => $to, countryId => $countryId, leagueId => $leagueId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PredictionsApi->predictions: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PredictionsApi()
apiecoKey = apiecoKey_example # String | 
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
from = from_example # String | Start date (yyyy-mm-dd) (optional)
to = to_example # String | Stop date (yyyy-mm-dd) (optional)
countryId = countryId_example # String | if set only leagues from specific country will be returned (Optional) (optional)
leagueId = leagueId_example # String | if set events from specific league will be returned (Optional) (optional)

try: 
    api_response = api_instance.predictions(apiecoKey, aPIkey, from=from, to=to, countryId=countryId, leagueId=leagueId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PredictionsApi->predictions: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
APIkey*
String
Don't Change This
Required
from
String
Start date (yyyy-mm-dd)
to
String
Stop date (yyyy-mm-dd)
country_id
String
if set only leagues from specific country will be returned (Optional)
league_id
String
if set events from specific league will be returned (Optional)

Responses

Status: 200 - Successful


Standings

standings

Returns standings for leagues included in your current subscription plan


/get_standings

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apifootball/get_standings?APIkey=&league_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StandingsApi;

import java.io.File;
import java.util.*;

public class StandingsApiExample {

    public static void main(String[] args) {
        
        StandingsApi apiInstance = new StandingsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal leagueId = 8.14; // BigDecimal | League internal code
        try {
            array[inline_response_200_3] result = apiInstance.standings(apiecoKey, aPIkey, leagueId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandingsApi#standings");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StandingsApi;

public class StandingsApiExample {

    public static void main(String[] args) {
        StandingsApi apiInstance = new StandingsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal leagueId = 8.14; // BigDecimal | League internal code
        try {
            array[inline_response_200_3] result = apiInstance.standings(apiecoKey, aPIkey, leagueId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandingsApi#standings");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
BigDecimal *leagueId = 8.14; // League internal code (optional)

StandingsApi *apiInstance = [[StandingsApi alloc] init];

[apiInstance standingsWith:apiecoKey
    aPIkey:aPIkey
    leagueId:leagueId
              completionHandler: ^(array[inline_response_200_3] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFootball = require('api_football');

var api = new ApiFootball.StandingsApi()

var apiecoKey = apiecoKey_example; // {String} 

var aPIkey = aPIkey_example; // {String} Don't Change This

var opts = { 
  'leagueId': 8.14 // {BigDecimal} League internal code
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standings(apiecoKey, aPIkey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class standingsExample
    {
        public void main()
        {
            
            var apiInstance = new StandingsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aPIkey = aPIkey_example;  // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
            var leagueId = 8.14;  // BigDecimal | League internal code (optional) 

            try
            {
                array[inline_response_200_3] result = apiInstance.standings(apiecoKey, aPIkey, leagueId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StandingsApi.standings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\StandingsApi();
$apiecoKey = apiecoKey_example; // String | 
$aPIkey = aPIkey_example; // String | Don't Change This
$leagueId = 8.14; // BigDecimal | League internal code

try {
    $result = $api_instance->standings($apiecoKey, $aPIkey, $leagueId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandingsApi->standings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StandingsApi;

my $api_instance = WWW::SwaggerClient::StandingsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aPIkey = aPIkey_example; # String | Don't Change This
my $leagueId = 8.14; # BigDecimal | League internal code

eval { 
    my $result = $api_instance->standings(apiecoKey => $apiecoKey, aPIkey => $aPIkey, leagueId => $leagueId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandingsApi->standings: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.StandingsApi()
apiecoKey = apiecoKey_example # String | 
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
leagueId = 8.14 # BigDecimal | League internal code (optional)

try: 
    api_response = api_instance.standings(apiecoKey, aPIkey, leagueId=leagueId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandingsApi->standings: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
APIkey*
String
Don't Change This
Required
league_id
BigDecimal
League internal code

Responses

Status: 200 - Successful


Statistics

statistics

Returns statistics of one event


/get_statistics

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apifootball/get_statistics?APIkey=&match_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StatisticsApi;

import java.io.File;
import java.util.*;

public class StatisticsApiExample {

    public static void main(String[] args) {
        
        StatisticsApi apiInstance = new StatisticsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal matchId = 8.14; // BigDecimal | Match ID
        try {
            inline_response_200_6 result = apiInstance.statistics(apiecoKey, aPIkey, matchId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#statistics");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StatisticsApi;

public class StatisticsApiExample {

    public static void main(String[] args) {
        StatisticsApi apiInstance = new StatisticsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal matchId = 8.14; // BigDecimal | Match ID
        try {
            inline_response_200_6 result = apiInstance.statistics(apiecoKey, aPIkey, matchId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#statistics");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
BigDecimal *matchId = 8.14; // Match ID (optional)

StatisticsApi *apiInstance = [[StatisticsApi alloc] init];

[apiInstance statisticsWith:apiecoKey
    aPIkey:aPIkey
    matchId:matchId
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFootball = require('api_football');

var api = new ApiFootball.StatisticsApi()

var apiecoKey = apiecoKey_example; // {String} 

var aPIkey = aPIkey_example; // {String} Don't Change This

var opts = { 
  'matchId': 8.14 // {BigDecimal} Match ID
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.statistics(apiecoKey, aPIkey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class statisticsExample
    {
        public void main()
        {
            
            var apiInstance = new StatisticsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aPIkey = aPIkey_example;  // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
            var matchId = 8.14;  // BigDecimal | Match ID (optional) 

            try
            {
                inline_response_200_6 result = apiInstance.statistics(apiecoKey, aPIkey, matchId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StatisticsApi.statistics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\StatisticsApi();
$apiecoKey = apiecoKey_example; // String | 
$aPIkey = aPIkey_example; // String | Don't Change This
$matchId = 8.14; // BigDecimal | Match ID

try {
    $result = $api_instance->statistics($apiecoKey, $aPIkey, $matchId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticsApi->statistics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StatisticsApi;

my $api_instance = WWW::SwaggerClient::StatisticsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aPIkey = aPIkey_example; # String | Don't Change This
my $matchId = 8.14; # BigDecimal | Match ID

eval { 
    my $result = $api_instance->statistics(apiecoKey => $apiecoKey, aPIkey => $aPIkey, matchId => $matchId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StatisticsApi->statistics: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.StatisticsApi()
apiecoKey = apiecoKey_example # String | 
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
matchId = 8.14 # BigDecimal | Match ID (optional)

try: 
    api_response = api_instance.statistics(apiecoKey, aPIkey, matchId=matchId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StatisticsApi->statistics: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
APIkey*
String
Don't Change This
Required
match_id
BigDecimal
Match ID

Responses

Status: 200 - Successful


Teams

teams

Returns list of available teams


/get_teams

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apifootball/get_teams?APIkey=&team_id=&league_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TeamsApi;

import java.io.File;
import java.util.*;

public class TeamsApiExample {

    public static void main(String[] args) {
        
        TeamsApi apiInstance = new TeamsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal teamId = 8.14; // BigDecimal |  team id mandatory if league id is not set
        BigDecimal leagueId = 8.14; // BigDecimal | league id mandatory if team id is not set
        try {
            array[inline_response_200_2] result = apiInstance.teams(apiecoKey, aPIkey, teamId, leagueId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TeamsApi#teams");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TeamsApi;

public class TeamsApiExample {

    public static void main(String[] args) {
        TeamsApi apiInstance = new TeamsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aPIkey = aPIkey_example; // String | Don't Change This
        BigDecimal teamId = 8.14; // BigDecimal |  team id mandatory if league id is not set
        BigDecimal leagueId = 8.14; // BigDecimal | league id mandatory if team id is not set
        try {
            array[inline_response_200_2] result = apiInstance.teams(apiecoKey, aPIkey, teamId, leagueId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TeamsApi#teams");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
BigDecimal *teamId = 8.14; //  team id mandatory if league id is not set (optional)
BigDecimal *leagueId = 8.14; // league id mandatory if team id is not set (optional)

TeamsApi *apiInstance = [[TeamsApi alloc] init];

[apiInstance teamsWith:apiecoKey
    aPIkey:aPIkey
    teamId:teamId
    leagueId:leagueId
              completionHandler: ^(array[inline_response_200_2] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFootball = require('api_football');

var api = new ApiFootball.TeamsApi()

var apiecoKey = apiecoKey_example; // {String} 

var aPIkey = aPIkey_example; // {String} Don't Change This

var opts = { 
  'teamId': 8.14, // {BigDecimal}  team id mandatory if league id is not set
  'leagueId': 8.14 // {BigDecimal} league id mandatory if team id is not set
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.teams(apiecoKey, aPIkey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class teamsExample
    {
        public void main()
        {
            
            var apiInstance = new TeamsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aPIkey = aPIkey_example;  // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
            var teamId = 8.14;  // BigDecimal |  team id mandatory if league id is not set (optional) 
            var leagueId = 8.14;  // BigDecimal | league id mandatory if team id is not set (optional) 

            try
            {
                array[inline_response_200_2] result = apiInstance.teams(apiecoKey, aPIkey, teamId, leagueId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TeamsApi.teams: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\TeamsApi();
$apiecoKey = apiecoKey_example; // String | 
$aPIkey = aPIkey_example; // String | Don't Change This
$teamId = 8.14; // BigDecimal |  team id mandatory if league id is not set
$leagueId = 8.14; // BigDecimal | league id mandatory if team id is not set

try {
    $result = $api_instance->teams($apiecoKey, $aPIkey, $teamId, $leagueId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TeamsApi->teams: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TeamsApi;

my $api_instance = WWW::SwaggerClient::TeamsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aPIkey = aPIkey_example; # String | Don't Change This
my $teamId = 8.14; # BigDecimal |  team id mandatory if league id is not set
my $leagueId = 8.14; # BigDecimal | league id mandatory if team id is not set

eval { 
    my $result = $api_instance->teams(apiecoKey => $apiecoKey, aPIkey => $aPIkey, teamId => $teamId, leagueId => $leagueId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TeamsApi->teams: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TeamsApi()
apiecoKey = apiecoKey_example # String | 
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
teamId = 8.14 # BigDecimal |  team id mandatory if league id is not set (optional)
leagueId = 8.14 # BigDecimal | league id mandatory if team id is not set (optional)

try: 
    api_response = api_instance.teams(apiecoKey, aPIkey, teamId=teamId, leagueId=leagueId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TeamsApi->teams: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
APIkey*
String
Don't Change This
Required
team_id
BigDecimal
team id mandatory if league id is not set
league_id
BigDecimal
league id mandatory if team id is not set

Responses

Status: 200 - Successful