aPOD
One of the most popular websites at NASA is the Astronomy Picture of the Day. In fact, this website is one of the most popular websites across all federal agencies. It has the popular appeal of a Justin Bieber video. This endpoint structures the APOD imagery and associated metadata so that it can be repurposed for other applications. In addition, if the concept_tags parameter is set to True, then keywords derived from the image explanation are returned. These keywords could be used as auto-generated hashtags for twitter or instagram feeds; but generally help with discoverability of relevant imagery.
/planetary/apod
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/nasa/planetary/apod?api_key=&date=&hd="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.APODApi;
import java.io.File;
import java.util.*;
public class APODApiExample {
public static void main(String[] args) {
APODApi apiInstance = new APODApi();
String apiecoKey = apiecoKey_example; // String |
String apiKey = apiKey_example; // String | Don't change the value
date date = 2013-10-20; // date | The date of the APOD image to retrieve
Boolean hd = true; // Boolean | Retrieve the URL for the high resolution image
try {
File result = apiInstance.aPOD(apiecoKey, apiKey, date, hd);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling APODApi#aPOD");
e.printStackTrace();
}
}
}
import io.swagger.client.api.APODApi;
public class APODApiExample {
public static void main(String[] args) {
APODApi apiInstance = new APODApi();
String apiecoKey = apiecoKey_example; // String |
String apiKey = apiKey_example; // String | Don't change the value
date date = 2013-10-20; // date | The date of the APOD image to retrieve
Boolean hd = true; // Boolean | Retrieve the URL for the high resolution image
try {
File result = apiInstance.aPOD(apiecoKey, apiKey, date, hd);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling APODApi#aPOD");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
String *apiKey = apiKey_example; // Don't change the value (default to rMUcofpGDkeSeB7nbjsx509Wd5Ciu5ifloip6VZV)
date *date = 2013-10-20; // The date of the APOD image to retrieve (default to today)
Boolean *hd = true; // Retrieve the URL for the high resolution image (default to false)
APODApi *apiInstance = [[APODApi alloc] init];
[apiInstance aPODWith:apiecoKey
apiKey:apiKey
date:date
hd:hd
completionHandler: ^(File output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var NasaApi = require('nasa_api');
var api = new NasaApi.APODApi()
var apiecoKey = apiecoKey_example; // {String}
var apiKey = apiKey_example; // {String} Don't change the value
var date = 2013-10-20; // {date} The date of the APOD image to retrieve
var hd = true; // {Boolean} Retrieve the URL for the high resolution image
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.aPOD(apiecoKey, apiKey, date, hd, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class aPODExample
{
public void main()
{
var apiInstance = new APODApi();
var apiecoKey = apiecoKey_example; // String |
var apiKey = apiKey_example; // String | Don't change the value (default to rMUcofpGDkeSeB7nbjsx509Wd5Ciu5ifloip6VZV)
var date = 2013-10-20; // date | The date of the APOD image to retrieve (default to today)
var hd = true; // Boolean | Retrieve the URL for the high resolution image (default to false)
try
{
File result = apiInstance.aPOD(apiecoKey, apiKey, date, hd);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling APODApi.aPOD: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\APODApi();
$apiecoKey = apiecoKey_example; // String |
$apiKey = apiKey_example; // String | Don't change the value
$date = 2013-10-20; // date | The date of the APOD image to retrieve
$hd = true; // Boolean | Retrieve the URL for the high resolution image
try {
$result = $api_instance->aPOD($apiecoKey, $apiKey, $date, $hd);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling APODApi->aPOD: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::APODApi;
my $api_instance = WWW::SwaggerClient::APODApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $apiKey = apiKey_example; # String | Don't change the value
my $date = 2013-10-20; # date | The date of the APOD image to retrieve
my $hd = true; # Boolean | Retrieve the URL for the high resolution image
eval {
my $result = $api_instance->aPOD(apiecoKey => $apiecoKey, apiKey => $apiKey, date => $date, hd => $hd);
print Dumper($result);
};
if ($@) {
warn "Exception when calling APODApi->aPOD: $@\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.APODApi()
apiecoKey = apiecoKey_example # String |
apiKey = apiKey_example # String | Don't change the value (default to rMUcofpGDkeSeB7nbjsx509Wd5Ciu5ifloip6VZV)
date = 2013-10-20 # date | The date of the APOD image to retrieve (default to today)
hd = true # Boolean | Retrieve the URL for the high resolution image (default to false)
try:
api_response = api_instance.a_pod(apiecoKey, apiKey, date, hd)
pprint(api_response)
except ApiException as e:
print("Exception when calling APODApi->aPOD: %s\n" % e)
Parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|
Name | Description |
---|---|
api_key* |
String
Don't change the value
Required
|
date* |
date
(date)
The date of the APOD image to retrieve
Required
|
hd* |
Boolean
Retrieve the URL for the high resolution image
Required
|