Ergast API Documentation

CircuitInformation

circuitInformation

To obtain a list of the circuits used within a series, year or round use the following URLs: http://api.apieco.ir/ergast/api/f1/circuits http://api.apieco.ir/ergast/api/f1/2010/circuits http://api.apieco.ir/ergast/api/f1/2010/2/circuits Each circuit listed in the response is identified by a unique circuitId which is used to identify the circuit throughout the API. To obtain information about a particular circuit append the circuitId e.g: http://api.apieco.ir/ergast/api/f1/circuits/monza Circuit lists can be refined by adding one or more of the following criteria: /constructors/<constructorId> /drivers/<driverId> /grid/<position> /results/<position> /fastest/<rank> /status/<statusId> For example, to list all circuits at which a specific driver has driven for a particular constructor: http://api.apieco.ir/ergast/api/f1/drivers/alonso/constructors/mclaren/circuits


/f1/circuits.json

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/ergast/api/f1/circuits.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CircuitInformationApi;

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

public class CircuitInformationApiExample {

    public static void main(String[] args) {
        
        CircuitInformationApi apiInstance = new CircuitInformationApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_6 result = apiInstance.circuitInformation(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CircuitInformationApi#circuitInformation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CircuitInformationApi;

public class CircuitInformationApiExample {

    public static void main(String[] args) {
        CircuitInformationApi apiInstance = new CircuitInformationApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_6 result = apiInstance.circuitInformation(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CircuitInformationApi#circuitInformation");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance circuitInformationWith:apiecoKey
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ErgastApiDocumentation = require('ergast_api_documentation');

var api = new ErgastApiDocumentation.CircuitInformationApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class circuitInformationExample
    {
        public void main()
        {
            
            var apiInstance = new CircuitInformationApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

$api_instance = new Swagger\Client\Api\CircuitInformationApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::CircuitInformationApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->circuitInformation(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CircuitInformationApi->circuitInformation: $@\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.CircuitInformationApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.circuit_information(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CircuitInformationApi->circuitInformation: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


ConstructorInformation

constructor Information

To obtain a list of all constructors within a series, year or round use the following URLs: http://api.apieco.ir/ergast/api/f1/constructors http://api.apieco.ir/ergast/api/f1/2010/constructors http://api.apieco.ir/ergast/api/f1/2010/2/constructors Each constructor listed in the response is identified by a unique constructorId which is used to identify the constructor throughout the API. To obtain information about a particular constructor append the constructorId e.g: http://api.apieco.ir/ergast/api/f1/constructors/mclaren Constructor lists can be refined by adding one or more of the following criteria: /circuits/<circuitId> /constructors/<constructorId> /drivers/<driverId> /grid/<position> /results/<position> /fastest/<rank> /status/<statusId> For example, to list all constructors a specific driver has driven for at a particular circuit: http://api.apieco.ir/ergast/api/f1/drivers/alonso/circuits/monza/constructors Alternatively, to list all the constructors who have achieved a particular final position in the championship: http://api.apieco.ir/ergast/api/f1/constructorStandings/1/constructors


/f1/constructors.json

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/ergast/api/f1/constructors.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConstructorInformationApi;

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

public class ConstructorInformationApiExample {

    public static void main(String[] args) {
        
        ConstructorInformationApi apiInstance = new ConstructorInformationApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_5 result = apiInstance.constructor Information(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConstructorInformationApi#constructor Information");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConstructorInformationApi;

public class ConstructorInformationApiExample {

    public static void main(String[] args) {
        ConstructorInformationApi apiInstance = new ConstructorInformationApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_5 result = apiInstance.constructor Information(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConstructorInformationApi#constructor Information");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance constructor InformationWith:apiecoKey
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ErgastApiDocumentation = require('ergast_api_documentation');

var api = new ErgastApiDocumentation.ConstructorInformationApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class constructor InformationExample
    {
        public void main()
        {
            
            var apiInstance = new ConstructorInformationApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

$api_instance = new Swagger\Client\Api\ConstructorInformationApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::ConstructorInformationApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->constructor Information(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConstructorInformationApi->constructor Information: $@\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.ConstructorInformationApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.constructor_information(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConstructorInformationApi->constructor Information: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


DriverInformation

driver Information

To obtain a list of all drivers within a series, year or round use the following URLs: http://api.apieco.ir/ergast/api/f1/drivers http://api.apieco.ir/ergast/api/f1/2010/drivers http://api.apieco.ir/ergast/api/f1/2010/2/drivers Each driver listed in the response is identified by a unique driverId which is used to identify the driver throughout the API. To obtain information about a particular driver append the driverId e.g: http://api.apieco.ir/ergast/api/f1/drivers/alonso Driver lists can be refined by adding one or more of the following criteria: /circuits/<circuitId> /constructors/<constructorId> /drivers/<driverId> /grid/<position> /results/<position> /fastest/<rank> /status/<statusId> For example, to list all drivers who have driven for a specific constructor at a particular circuit: http://api.apieco.ir/ergast/api/f1/constructors/mclaren/circuits/monza/drivers Alternatively, to list the drivers who have achieved a particular final position in the championship: http://api.apieco.ir/ergast/api/f1/driverStandings/1/drivers Drivers who participated in the 2014 season onwards have a permanent driver number.


/f1/drivers.json

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/ergast/api/f1/drivers.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DriverInformationApi;

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

public class DriverInformationApiExample {

    public static void main(String[] args) {
        
        DriverInformationApi apiInstance = new DriverInformationApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_4 result = apiInstance.driver Information(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriverInformationApi#driver Information");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DriverInformationApi;

public class DriverInformationApiExample {

    public static void main(String[] args) {
        DriverInformationApi apiInstance = new DriverInformationApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_4 result = apiInstance.driver Information(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriverInformationApi#driver Information");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance driver InformationWith:apiecoKey
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ErgastApiDocumentation = require('ergast_api_documentation');

var api = new ErgastApiDocumentation.DriverInformationApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class driver InformationExample
    {
        public void main()
        {
            
            var apiInstance = new DriverInformationApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200_4 result = apiInstance.driver Information(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DriverInformationApi.driver Information: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DriverInformationApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::DriverInformationApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->driver Information(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DriverInformationApi->driver Information: $@\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.DriverInformationApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.driver_information(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriverInformationApi->driver Information: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


DriverStandings

standings

To list the driver or constructor standings after a specific race use the following URLs with the required year and round number: http://api.apieco.ir/ergast/api/f1/2008/5/driverStandings http://api.apieco.ir/ergast/api/f1/2008/5/constructorStandings To list the driver or constructor standings at the end of a specific season use the following URLs with the required year. If the season hasn’t ended you will get the current standings: http://api.apieco.ir/ergast/api/f1/2008/driverStandings http://api.apieco.ir/ergast/api/f1/2008/constructorStandings Current standings can always be obtained using the following static URLs: http://api.apieco.ir/ergast/api/f1/current/driverStandings http://api.apieco.ir/ergast/api/f1/current/constructorStandings All winners of the driver or constructor championships can be obtained using: http://api.apieco.ir/ergast/api/f1/driverStandings/1 http://api.apieco.ir/ergast/api/f1/constructorStandings/1 Driver standings can be refined by specifying the driver. For example: http://api.apieco.ir/ergast/api/f1/drivers/alonso/driverStandings Constructor standings refined by specifying the constructor. For example: http://api.apieco.ir/ergast/api/f1/constructors/renault/constructorStandings No other qualifiers are permitted in standings queries. The value of the position attribute in the DriverStanding or ConstructorStanding element is always an integer. The value of the positionText attribute is either an integer, “D” (disqualified) or “E” (excluded).


/f1/driverStandings.json

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/ergast/api/f1/driverStandings.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DriverStandingsApi;

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

public class DriverStandingsApiExample {

    public static void main(String[] args) {
        
        DriverStandingsApi apiInstance = new DriverStandingsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_3 result = apiInstance.standings(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriverStandingsApi#standings");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DriverStandingsApi;

public class DriverStandingsApiExample {

    public static void main(String[] args) {
        DriverStandingsApi apiInstance = new DriverStandingsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_3 result = apiInstance.standings(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriverStandingsApi#standings");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

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

var api = new ErgastApiDocumentation.DriverStandingsApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standings(apiecoKey, 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 DriverStandingsApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

$api_instance = new Swagger\Client\Api\DriverStandingsApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::DriverStandingsApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->standings(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DriverStandingsApi->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.DriverStandingsApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


FinishingStatus

finishingStatus

To obtain a list of all finishing status codes used by the API use the following URL: http://api.apieco.ir/ergast/api/f1/status The list can be restricted to those relevant to a specific season or round. For example: http://api.apieco.ir/ergast/api/f1/2010/status http://api.apieco.ir/ergastm/api/f1/2010/2/status Finishing status can also be listed using one or more of the following criteria: /circuits/<circuitId> /constructors/<constructorId> /drivers/<driverId> /grid/<position> /results/<position> /fastest/<rank> /status/<statusId> For example, to list the finishing status for a specific driver in a particular season: http://api.apieco.ir/ergast/api/f1/2008/drivers/alonso/status


/f1/status.json

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/ergast/api/f1/status.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FinishingStatusApi;

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

public class FinishingStatusApiExample {

    public static void main(String[] args) {
        
        FinishingStatusApi apiInstance = new FinishingStatusApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_7 result = apiInstance.finishingStatus(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FinishingStatusApi#finishingStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FinishingStatusApi;

public class FinishingStatusApiExample {

    public static void main(String[] args) {
        FinishingStatusApi apiInstance = new FinishingStatusApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_7 result = apiInstance.finishingStatus(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FinishingStatusApi#finishingStatus");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance finishingStatusWith:apiecoKey
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ErgastApiDocumentation = require('ergast_api_documentation');

var api = new ErgastApiDocumentation.FinishingStatusApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class finishingStatusExample
    {
        public void main()
        {
            
            var apiInstance = new FinishingStatusApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200_7 result = apiInstance.finishingStatus(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FinishingStatusApi.finishingStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FinishingStatusApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::FinishingStatusApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->finishingStatus(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FinishingStatusApi->finishingStatus: $@\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.FinishingStatusApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.finishing_status(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FinishingStatusApi->finishingStatus: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


LapTimes

lapTimes

Lap time data is available from the 1996 season onwards. Lap time queries require the season, round and lap number to be specified e.g: http://api.apieco.ir/ergast/api/f1/2011/5/laps/1 If the lap times for the specified race are not yet available the RaceTable element in the response will be empty. Lap timing queries can also include the following criteria: /drivers/<driverId> For example, to list all the lap timing data for a specific driver and lap: http://api.apieco.ir/ergast/api/f1/2011/5/drivers/alonso/laps/1


/f1/laps.json

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/ergast/api/f1/laps.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LapTimesApi;

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

public class LapTimesApiExample {

    public static void main(String[] args) {
        
        LapTimesApi apiInstance = new LapTimesApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_8 result = apiInstance.lapTimes(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LapTimesApi#lapTimes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LapTimesApi;

public class LapTimesApiExample {

    public static void main(String[] args) {
        LapTimesApi apiInstance = new LapTimesApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_8 result = apiInstance.lapTimes(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LapTimesApi#lapTimes");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance lapTimesWith:apiecoKey
              completionHandler: ^(inline_response_200_8 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ErgastApiDocumentation = require('ergast_api_documentation');

var api = new ErgastApiDocumentation.LapTimesApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class lapTimesExample
    {
        public void main()
        {
            
            var apiInstance = new LapTimesApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200_8 result = apiInstance.lapTimes(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LapTimesApi.lapTimes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LapTimesApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::LapTimesApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->lapTimes(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LapTimesApi->lapTimes: $@\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.LapTimesApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.lap_times(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LapTimesApi->lapTimes: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


PitStops

pitStops

Pit stop data is available from the 2012 season onwards. Pit stop queries require a season and a round to be specified. To request all the pit stop data for a race use the following URL with the required year and round number: http://api.apieco.ir/ergast/api/f1/2011/5/pitstops If the pit stop data for the specified race is not yet available the RaceTable element will be empty. To request the information for a specific stop add the stop number: http://api.apieco.ir/ergast/api/f1/2011/5/pitstops/1 Pit stop queries can also include any of the following criteria: /drivers/<driverId> /laps/<lap number> For example, to list all the pit stop data for a specific driver: http://api.apieco.ir/ergast/api/f1/2011/5/drivers/alonso/pitstops


/f1/pitstops.json

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/ergast/api/f1/pitstops.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PitStopsApi;

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

public class PitStopsApiExample {

    public static void main(String[] args) {
        
        PitStopsApi apiInstance = new PitStopsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_9 result = apiInstance.pitStops(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PitStopsApi#pitStops");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PitStopsApi;

public class PitStopsApiExample {

    public static void main(String[] args) {
        PitStopsApi apiInstance = new PitStopsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_9 result = apiInstance.pitStops(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PitStopsApi#pitStops");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance pitStopsWith:apiecoKey
              completionHandler: ^(inline_response_200_9 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ErgastApiDocumentation = require('ergast_api_documentation');

var api = new ErgastApiDocumentation.PitStopsApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class pitStopsExample
    {
        public void main()
        {
            
            var apiInstance = new PitStopsApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200_9 result = apiInstance.pitStops(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PitStopsApi.pitStops: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PitStopsApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::PitStopsApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->pitStops(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PitStopsApi->pitStops: $@\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.PitStopsApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.pit_stops(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PitStopsApi->pitStops: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


QualifyingResults

qualifyingResults

Note: Qualifying results are only fully supported from the 2003 season onwards. To list the qualifying results for a specific race use the following URL with the required year and round number: http://api.apieco.ir/ergast/api/f1/2008/5/qualifying If the qualifying results for the specified race are not available the RaceTable element in the response will be empty. Note that the starting grid positions may be different to the qualifying positions, due to penalties or mechanical problems. The starting grid positions are recorded in the grid field in the Race Results. Qualifying results can be filtered using one or more of the following criteria: /circuits/<circuitId> /constructors/<constructorId> /drivers/<driverId> /grid/<position> /results/<position> /fastest/<rank> /status/<statusId> For example, to list all the qualifying results for a specific driver in a particular season: http://api.apieco.ir/ergast/api/f1/2008/drivers/alonso/qualifying Or to list all the qualifying results for a specific driver when driving for a particular constructor: http://api.apieco.ir/ergast/api/f1/drivers/alonso/constructors/renault/qualifying If you are only interested in qualifying results with a specific finishing position you can add a qualifier: http://api.apieco.ir/ergast/api/f1/2008/qualifying/1


/f1/qualifying.json

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/ergast/api/f1/qualifying.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.QualifyingResultsApi;

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

public class QualifyingResultsApiExample {

    public static void main(String[] args) {
        
        QualifyingResultsApi apiInstance = new QualifyingResultsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.qualifyingResults(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QualifyingResultsApi#qualifyingResults");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.QualifyingResultsApi;

public class QualifyingResultsApiExample {

    public static void main(String[] args) {
        QualifyingResultsApi apiInstance = new QualifyingResultsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.qualifyingResults(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QualifyingResultsApi#qualifyingResults");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance qualifyingResultsWith:apiecoKey
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ErgastApiDocumentation = require('ergast_api_documentation');

var api = new ErgastApiDocumentation.QualifyingResultsApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class qualifyingResultsExample
    {
        public void main()
        {
            
            var apiInstance = new QualifyingResultsApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200_2 result = apiInstance.qualifyingResults(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling QualifyingResultsApi.qualifyingResults: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\QualifyingResultsApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::QualifyingResultsApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->qualifyingResults(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QualifyingResultsApi->qualifyingResults: $@\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.QualifyingResultsApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.qualifying_results(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QualifyingResultsApi->qualifyingResults: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


RaceResults

raceResults

To list the results for a specific race use the following URL with the required year and round number: http://api.apieco.ir/ergast/api/f1/2008/5/results If the results for the specified race are not yet available the RaceTable element in the response will be empty. Results from the most recent race can always be obtained using the following static URL: http://api.apieco.ir/ergast/api/f1/current/last/results Results can be filtered using one or more of the following criteria: /circuits/<circuitId> /constructors/<constructorId> /drivers/<driverId> /grid/<position> /fastest/<rank> /status/<statusId> For example, to list all the results for a specific driver in a particular season: http://api.apieco.ir/ergast/api/f1/2008/drivers/alonso/results Or to list all the results for a specific driver when driving for a particular constructor: http://api.apieco.ir/ergast/api/f1/drivers/alonso/constructors/renault/results If you are only interested in results in a specific finishing position you can add a qualifier: http://api.apieco.ir/ergast/api/f1/2008/drivers/alonso/results/2 So to list all drivers and constructors winning races in a season: http://api.apieco.ir/ergast/api/f1/2008/results/1


/f1/results.json

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/ergast/api/f1/results.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RaceResultsApi;

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

public class RaceResultsApiExample {

    public static void main(String[] args) {
        
        RaceResultsApi apiInstance = new RaceResultsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.raceResults(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RaceResultsApi#raceResults");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RaceResultsApi;

public class RaceResultsApiExample {

    public static void main(String[] args) {
        RaceResultsApi apiInstance = new RaceResultsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.raceResults(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RaceResultsApi#raceResults");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance raceResultsWith:apiecoKey
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ErgastApiDocumentation = require('ergast_api_documentation');

var api = new ErgastApiDocumentation.RaceResultsApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class raceResultsExample
    {
        public void main()
        {
            
            var apiInstance = new RaceResultsApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200_1 result = apiInstance.raceResults(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RaceResultsApi.raceResults: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RaceResultsApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::RaceResultsApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->raceResults(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RaceResultsApi->raceResults: $@\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.RaceResultsApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.race_results(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RaceResultsApi->raceResults: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


RaceSchedule

raceSchedule

To obtain the schedule of races for a specific season use the following URL with the required year: http://api.apieco.ir/ergast/api/f1/2012 The schedule for the current season can always be obtained using the following static URL: http://api.apieco.ir/ergast/api/f1/current To obtain information about a specific race add the round number: http://api.apieco.ir/ergast/api/f1/2008/5 Race lists can be filtered by adding one or more of the following criteria followed by "/races": /circuits/<circuitId> /constructors/<constructorId> /drivers/<driverId> /grid/<position> /results/<position> /fastest/<rank> /status/<statusId> For example, to list all races where a specific driver has driven at a particular circuit: http://api.apieco.ir/ergast/api/f1/drivers/alonso/circuits/monza/races


/f1/races.json

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/ergast/api/f1/races.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RaceScheduleApi;

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

public class RaceScheduleApiExample {

    public static void main(String[] args) {
        
        RaceScheduleApi apiInstance = new RaceScheduleApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.raceSchedule(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RaceScheduleApi#raceSchedule");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RaceScheduleApi;

public class RaceScheduleApiExample {

    public static void main(String[] args) {
        RaceScheduleApi apiInstance = new RaceScheduleApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.raceSchedule(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RaceScheduleApi#raceSchedule");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance raceScheduleWith:apiecoKey
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ErgastApiDocumentation = require('ergast_api_documentation');

var api = new ErgastApiDocumentation.RaceScheduleApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class raceScheduleExample
    {
        public void main()
        {
            
            var apiInstance = new RaceScheduleApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200_1 result = apiInstance.raceSchedule(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RaceScheduleApi.raceSchedule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RaceScheduleApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::RaceScheduleApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->raceSchedule(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RaceScheduleApi->raceSchedule: $@\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.RaceScheduleApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.race_schedule(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RaceScheduleApi->raceSchedule: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


SeasonList

seasons

To list the seasons currently supported by the API use the following URL: http://api.apieco.ir/ergast/api/f1/seasons Season lists can be refined by adding one or more of the following criteria: /circuits/<circuitId> /constructors/<constructorId> /drivers/<driverId> /grid/<position> /results/<position> /fastest/<rank> /status/<statusId> For example, to list all seasons where a specific driver has driven for a particular constructor: http://api.apieco.ir/ergast/api/f1/drivers/alonso/constructors/renault/seasons Alternatively, to list the seasons where a specific driver or constructor has achieved a particular final position in the championship: http://api.apieco.ir/ergast/api/f1/drivers/alonso/driverStandings/1/seasons http://api.apieco.ir/ergast/api/f1/constructors/renault/constructorStandings/1/seasons


/f1/seasons.json

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/ergast/api/f1/seasons.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SeasonListApi;

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

public class SeasonListApiExample {

    public static void main(String[] args) {
        
        SeasonListApi apiInstance = new SeasonListApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.seasons(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SeasonListApi#seasons");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SeasonListApi;

public class SeasonListApiExample {

    public static void main(String[] args) {
        SeasonListApi apiInstance = new SeasonListApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.seasons(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SeasonListApi#seasons");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance seasonsWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ErgastApiDocumentation = require('ergast_api_documentation');

var api = new ErgastApiDocumentation.SeasonListApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class seasonsExample
    {
        public void main()
        {
            
            var apiInstance = new SeasonListApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200 result = apiInstance.seasons(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SeasonListApi.seasons: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SeasonListApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::SeasonListApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->seasons(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SeasonListApi->seasons: $@\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.SeasonListApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful