Earthquake Data API

ApplicationJson

app.json

request known enumerated parameter values for the interface.


/fdsnws/event/1/application.json

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/earth-quake/fdsnws/event/1/application.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationJsonApi;

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

public class ApplicationJsonApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ApplicationJsonApi apiInstance = new ApplicationJsonApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.app.json(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationJsonApi#app.json");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationJsonApi;

public class ApplicationJsonApiExample {

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

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

[apiInstance app.jsonWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var EarthquakeDataApi = require('_earthquake_data_api');
var defaultClient = EarthquakeDataApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new EarthquakeDataApi.ApplicationJsonApi()

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.app.json(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class app.jsonExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ApplicationJsonApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

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

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ApplicationJsonApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


ApplicationWadl

app.wadl

request WADL for the interface.


/fdsnws/event/1/application.wadl

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/earth-quake/fdsnws/event/1/application.wadl"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationWadlApi;

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

public class ApplicationWadlApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ApplicationWadlApi apiInstance = new ApplicationWadlApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            apiInstance.app.wadl(apiecoKey);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationWadlApi#app.wadl");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationWadlApi;

public class ApplicationWadlApiExample {

    public static void main(String[] args) {
        ApplicationWadlApi apiInstance = new ApplicationWadlApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            apiInstance.app.wadl(apiecoKey);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationWadlApi#app.wadl");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

[apiInstance app.wadlWith:apiecoKey
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var EarthquakeDataApi = require('_earthquake_data_api');
var defaultClient = EarthquakeDataApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new EarthquakeDataApi.ApplicationWadlApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class app.wadlExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ApplicationWadlApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                apiInstance.app.wadl(apiecoKey);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationWadlApi.app.wadl: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

try {
    $api_instance->app.wadl($apiecoKey);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationWadlApi->app.wadl: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationWadlApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

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

eval { 
    $api_instance->app.wadl(apiecoKey => $apiecoKey);
};
if ($@) {
    warn "Exception when calling ApplicationWadlApi->app.wadl: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ApplicationWadlApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_instance.app/wadl(apiecoKey)
except ApiException as e:
    print("Exception when calling ApplicationWadlApi->app.wadl: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Cataloges

cataloges

request available catalogs.


/fdsnws/event/1/cataloges

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/earth-quake/fdsnws/event/1/cataloges"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CatalogesApi;

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

public class CatalogesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CatalogesApi apiInstance = new CatalogesApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.cataloges(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogesApi#cataloges");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CatalogesApi;

public class CatalogesApiExample {

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

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

[apiInstance catalogesWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var EarthquakeDataApi = require('_earthquake_data_api');
var defaultClient = EarthquakeDataApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new EarthquakeDataApi.CatalogesApi()

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.cataloges(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class catalogesExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CatalogesApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

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

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CatalogesApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Contributers

contributers

request available contributors


/fdsnws/event/1/contributers

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/earth-quake/fdsnws/event/1/contributers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContributersApi;

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

public class ContributersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ContributersApi apiInstance = new ContributersApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.contributers(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContributersApi#contributers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContributersApi;

public class ContributersApiExample {

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

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

[apiInstance contributersWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var EarthquakeDataApi = require('_earthquake_data_api');
var defaultClient = EarthquakeDataApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new EarthquakeDataApi.ContributersApi()

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.contributers(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class contributersExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ContributersApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

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

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ContributersApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Count

count

to perform a count on a data request. Count uses the same parameters as the query method, and is availablein these formats: plain text (default), geojson, and xml.


/fdsnws/event/1/count

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/earth-quake/fdsnws/event/1/count?format=&starttime=&endtime="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CountApi;

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

public class CountApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CountApi apiInstance = new CountApi();
        String apiecoKey = apiecoKey_example; // String | 
        String format = format_example; // String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.             
        String starttime = starttime_example; // String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
        String endtime = endtime_example; // String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
        try {
            inline_response_200_1 result = apiInstance.count(apiecoKey, format, starttime, endtime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CountApi#count");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CountApi;

public class CountApiExample {

    public static void main(String[] args) {
        CountApi apiInstance = new CountApi();
        String apiecoKey = apiecoKey_example; // String | 
        String format = format_example; // String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.             
        String starttime = starttime_example; // String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
        String endtime = endtime_example; // String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
        try {
            inline_response_200_1 result = apiInstance.count(apiecoKey, format, starttime, endtime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CountApi#count");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *format = format_example; // Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.              (optional)
String *starttime = starttime_example; // Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional)
String *endtime = endtime_example; // Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional)

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

[apiInstance countWith:apiecoKey
    format:format
    starttime:starttime
    endtime:endtime
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var EarthquakeDataApi = require('_earthquake_data_api');
var defaultClient = EarthquakeDataApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new EarthquakeDataApi.CountApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'format': format_example, // {String} Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.             
  'starttime': starttime_example, // {String} Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
  'endtime': endtime_example // {String} Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
};

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

namespace Example
{
    public class countExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CountApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var format = format_example;  // String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.              (optional) 
            var starttime = starttime_example;  // String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional) 
            var endtime = endtime_example;  // String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional) 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CountApi();
$apiecoKey = apiecoKey_example; // String | 
$format = format_example; // String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.             
$starttime = starttime_example; // String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
$endtime = endtime_example; // String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CountApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $format = format_example; # String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.             
my $starttime = starttime_example; # String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
my $endtime = endtime_example; # String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CountApi()
apiecoKey = apiecoKey_example # String | 
format = format_example # String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.              (optional)
starttime = starttime_example # String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional)
endtime = endtime_example # String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional)

try: 
    api_response = api_instance.count(apiecoKey, format=format, starttime=starttime, endtime=endtime)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CountApi->count: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
format
String
Specify the output format. format=csv Response format is CSV. Mime-type is “text/csv”. format=geojson Response format is GeoJSON. Mime-type is “application/json”. format=kml Response format is KML. Mime-type is “vnd.google-earth.kml+xml”. format=quakeml Alias for "xml" format. format=text Response format is plain text. Mime-type is “text/plain”. format=xml The xml format is dependent upon the request method used.
starttime
String
Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
endtime
String
Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Query

query

to submit a data request.


/fdsnws/event/1/query

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/earth-quake/fdsnws/event/1/query?format=&starttime=&endtime=&maxlongitude=&maxlatitude=&minlongitude=&minlatitude="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.QueryApi;

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

public class QueryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        QueryApi apiInstance = new QueryApi();
        String apiecoKey = apiecoKey_example; // String | 
        String format = format_example; // String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.             
        String starttime = starttime_example; // String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
        String endtime = endtime_example; // String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
        String maxlongitude = maxlongitude_example; // String | Limit to events with a longitude smaller than the specified maximum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
        String maxlatitude = maxlatitude_example; // String | Limit to events with a latitude smaller than the specified maximum. NOTE: min values must be less than max values.
        String minlongitude = minlongitude_example; // String | Limit to events with a longitude larger than the specified minimum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
        String minlatitude = minlatitude_example; // String | Limit to events with a latitude larger than the specified minimum. NOTE: min values must be less than max values.
        try {
            inline_response_200_2 result = apiInstance.query(apiecoKey, format, starttime, endtime, maxlongitude, maxlatitude, minlongitude, minlatitude);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QueryApi#query");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.QueryApi;

public class QueryApiExample {

    public static void main(String[] args) {
        QueryApi apiInstance = new QueryApi();
        String apiecoKey = apiecoKey_example; // String | 
        String format = format_example; // String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.             
        String starttime = starttime_example; // String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
        String endtime = endtime_example; // String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
        String maxlongitude = maxlongitude_example; // String | Limit to events with a longitude smaller than the specified maximum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
        String maxlatitude = maxlatitude_example; // String | Limit to events with a latitude smaller than the specified maximum. NOTE: min values must be less than max values.
        String minlongitude = minlongitude_example; // String | Limit to events with a longitude larger than the specified minimum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
        String minlatitude = minlatitude_example; // String | Limit to events with a latitude larger than the specified minimum. NOTE: min values must be less than max values.
        try {
            inline_response_200_2 result = apiInstance.query(apiecoKey, format, starttime, endtime, maxlongitude, maxlatitude, minlongitude, minlatitude);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QueryApi#query");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *format = format_example; // Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.              (optional)
String *starttime = starttime_example; // Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional)
String *endtime = endtime_example; // Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional)
String *maxlongitude = maxlongitude_example; // Limit to events with a longitude smaller than the specified maximum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values. (optional)
String *maxlatitude = maxlatitude_example; // Limit to events with a latitude smaller than the specified maximum. NOTE: min values must be less than max values. (optional)
String *minlongitude = minlongitude_example; // Limit to events with a longitude larger than the specified minimum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values. (optional)
String *minlatitude = minlatitude_example; // Limit to events with a latitude larger than the specified minimum. NOTE: min values must be less than max values. (optional)

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

[apiInstance queryWith:apiecoKey
    format:format
    starttime:starttime
    endtime:endtime
    maxlongitude:maxlongitude
    maxlatitude:maxlatitude
    minlongitude:minlongitude
    minlatitude:minlatitude
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var EarthquakeDataApi = require('_earthquake_data_api');
var defaultClient = EarthquakeDataApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new EarthquakeDataApi.QueryApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'format': format_example, // {String} Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.             
  'starttime': starttime_example, // {String} Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
  'endtime': endtime_example, // {String} Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
  'maxlongitude': maxlongitude_example, // {String} Limit to events with a longitude smaller than the specified maximum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
  'maxlatitude': maxlatitude_example, // {String} Limit to events with a latitude smaller than the specified maximum. NOTE: min values must be less than max values.
  'minlongitude': minlongitude_example, // {String} Limit to events with a longitude larger than the specified minimum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
  'minlatitude': minlatitude_example // {String} Limit to events with a latitude larger than the specified minimum. NOTE: min values must be less than max values.
};

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

namespace Example
{
    public class queryExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new QueryApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var format = format_example;  // String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.              (optional) 
            var starttime = starttime_example;  // String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional) 
            var endtime = endtime_example;  // String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional) 
            var maxlongitude = maxlongitude_example;  // String | Limit to events with a longitude smaller than the specified maximum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values. (optional) 
            var maxlatitude = maxlatitude_example;  // String | Limit to events with a latitude smaller than the specified maximum. NOTE: min values must be less than max values. (optional) 
            var minlongitude = minlongitude_example;  // String | Limit to events with a longitude larger than the specified minimum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values. (optional) 
            var minlatitude = minlatitude_example;  // String | Limit to events with a latitude larger than the specified minimum. NOTE: min values must be less than max values. (optional) 

            try
            {
                inline_response_200_2 result = apiInstance.query(apiecoKey, format, starttime, endtime, maxlongitude, maxlatitude, minlongitude, minlatitude);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling QueryApi.query: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\QueryApi();
$apiecoKey = apiecoKey_example; // String | 
$format = format_example; // String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.             
$starttime = starttime_example; // String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
$endtime = endtime_example; // String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
$maxlongitude = maxlongitude_example; // String | Limit to events with a longitude smaller than the specified maximum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
$maxlatitude = maxlatitude_example; // String | Limit to events with a latitude smaller than the specified maximum. NOTE: min values must be less than max values.
$minlongitude = minlongitude_example; // String | Limit to events with a longitude larger than the specified minimum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
$minlatitude = minlatitude_example; // String | Limit to events with a latitude larger than the specified minimum. NOTE: min values must be less than max values.

try {
    $result = $api_instance->query($apiecoKey, $format, $starttime, $endtime, $maxlongitude, $maxlatitude, $minlongitude, $minlatitude);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QueryApi->query: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::QueryApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::QueryApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $format = format_example; # String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.             
my $starttime = starttime_example; # String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
my $endtime = endtime_example; # String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
my $maxlongitude = maxlongitude_example; # String | Limit to events with a longitude smaller than the specified maximum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
my $maxlatitude = maxlatitude_example; # String | Limit to events with a latitude smaller than the specified maximum. NOTE: min values must be less than max values.
my $minlongitude = minlongitude_example; # String | Limit to events with a longitude larger than the specified minimum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
my $minlatitude = minlatitude_example; # String | Limit to events with a latitude larger than the specified minimum. NOTE: min values must be less than max values.

eval { 
    my $result = $api_instance->query(apiecoKey => $apiecoKey, format => $format, starttime => $starttime, endtime => $endtime, maxlongitude => $maxlongitude, maxlatitude => $maxlatitude, minlongitude => $minlongitude, minlatitude => $minlatitude);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QueryApi->query: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.QueryApi()
apiecoKey = apiecoKey_example # String | 
format = format_example # String | Specify the output format.

format=csv
Response format is CSV. Mime-type is “text/csv”.

format=geojson
Response format is GeoJSON. Mime-type is “application/json”.

format=kml
Response format is KML. Mime-type is “vnd.google-earth.kml+xml”.

format=quakeml
Alias for "xml" format.

format=text
Response format is plain text. Mime-type is “text/plain”.

format=xml
The xml format is dependent upon the request method used.              (optional)
starttime = starttime_example # String | Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional)
endtime = endtime_example # String | Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed. (optional)
maxlongitude = maxlongitude_example # String | Limit to events with a longitude smaller than the specified maximum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values. (optional)
maxlatitude = maxlatitude_example # String | Limit to events with a latitude smaller than the specified maximum. NOTE: min values must be less than max values. (optional)
minlongitude = minlongitude_example # String | Limit to events with a longitude larger than the specified minimum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values. (optional)
minlatitude = minlatitude_example # String | Limit to events with a latitude larger than the specified minimum. NOTE: min values must be less than max values. (optional)

try: 
    api_response = api_instance.query(apiecoKey, format=format, starttime=starttime, endtime=endtime, maxlongitude=maxlongitude, maxlatitude=maxlatitude, minlongitude=minlongitude, minlatitude=minlatitude)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QueryApi->query: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
format
String
Specify the output format. format=csv Response format is CSV. Mime-type is “text/csv”. format=geojson Response format is GeoJSON. Mime-type is “application/json”. format=kml Response format is KML. Mime-type is “vnd.google-earth.kml+xml”. format=quakeml Alias for "xml" format. format=text Response format is plain text. Mime-type is “text/plain”. format=xml The xml format is dependent upon the request method used.
starttime
String
Limit to events on or after the specified start time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
endtime
String
Limit to events on or before the specified end time. NOTE: All times use ISO8601 Date/Time format. Unless a timezone is specified, UTC is assumed.
maxlongitude
String
Limit to events with a longitude smaller than the specified maximum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
maxlatitude
String
Limit to events with a latitude smaller than the specified maximum. NOTE: min values must be less than max values.
minlongitude
String
Limit to events with a longitude larger than the specified minimum. NOTE: rectangles may cross the date line by using a minlongitude < -180 or maxlongitude > 180. NOTE: min values must be less than max values.
minlatitude
String
Limit to events with a latitude larger than the specified minimum. NOTE: min values must be less than max values.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Version

version

request full service version number


/fdsnws/event/1/version

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/earth-quake/fdsnws/event/1/version"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VersionApi;

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

public class VersionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        VersionApi apiInstance = new VersionApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            BigDecimal result = apiInstance.version(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VersionApi#version");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VersionApi;

public class VersionApiExample {

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

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

[apiInstance versionWith:apiecoKey
              completionHandler: ^(BigDecimal output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var EarthquakeDataApi = require('_earthquake_data_api');
var defaultClient = EarthquakeDataApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new EarthquakeDataApi.VersionApi()

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.version(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class versionExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new VersionApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

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

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.VersionApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input