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
Name | Description |
---|---|
apieco-key* |
String
Required
|