RSS to JSON
RSS to JSON is a simple tool for converting RSS feeds into JSON format. It returns the RSS feed in JSON format.
This API provides reliable and fast access to rss to json data through a simple REST interface. Built for developers who need consistent, high-quality results with minimal setup time.
To use this API, you need an API key. You can get one by creating a free account and visiting your dashboard.
Endpoint
POST https://api.apiverve.com/v1/rsstojsonCode Examples
Here are examples of how to call this API in different programming languages:
curl -X POST \
"https://api.apiverve.com/v1/rsstojson" \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.nasa.gov/rss/dyn/breaking_news.rss"
}'const response = await fetch('https://api.apiverve.com/v1/rsstojson', {
method: 'POST',
headers: {
'X-API-Key': 'your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"url": "https://www.nasa.gov/rss/dyn/breaking_news.rss"
})
});
const data = await response.json();
console.log(data);import requests
headers = {
'X-API-Key': 'your_api_key_here',
'Content-Type': 'application/json'
}
payload = {
"url": "https://www.nasa.gov/rss/dyn/breaking_news.rss"
}
response = requests.post('https://api.apiverve.com/v1/rsstojson', headers=headers, json=payload)
data = response.json()
print(data)const https = require('https');
const url = require('url');
const options = {
method: 'POST',
headers: {
'X-API-Key': 'your_api_key_here',
'Content-Type': 'application/json'
}
};
const postData = JSON.stringify({
"url": "https://www.nasa.gov/rss/dyn/breaking_news.rss"
});
const req = https.request('https://api.apiverve.com/v1/rsstojson', options, (res) => {
let data = '';
res.on('data', (chunk) => data += chunk);
res.on('end', () => console.log(JSON.parse(data)));
});
req.write(postData);
req.end();<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.apiverve.com/v1/rsstojson');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-Key: your_api_key_here',
'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode({
'url': 'https://www.nasa.gov/rss/dyn/breaking_news.rss'
}));
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);
?>package main
import (
"fmt"
"io"
"net/http"
"bytes"
"encoding/json"
)
func main() {
payload := map[string]interface{}{
"url": "https://www.nasa.gov/rss/dyn/breaking_news.rss"
}
jsonPayload, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", "https://api.apiverve.com/v1/rsstojson", bytes.NewBuffer(jsonPayload))
req.Header.Set("X-API-Key", "your_api_key_here")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require 'net/http'
require 'json'
uri = URI('https://api.apiverve.com/v1/rsstojson')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
payload = {
"url": "https://www.nasa.gov/rss/dyn/breaking_news.rss"
}
request = Net::HTTP::Post.new(uri)
request['X-API-Key'] = 'your_api_key_here'
request['Content-Type'] = 'application/json'
request.body = payload.to_json
response = http.request(request)
puts JSON.pretty_generate(JSON.parse(response.body))using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-API-Key", "your_api_key_here");
var jsonContent = @"{
""url"": ""https://www.nasa.gov/rss/dyn/breaking_news.rss""
}";
var content = new StringContent(jsonContent, Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://api.apiverve.com/v1/rsstojson", content);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
}Authentication
This API requires authentication via API key. Include your API key in the request header:
X-API-Key: your_api_key_hereInteractive API Playground
Test this API directly in your browser with live requests and responses.
Response
The API returns responses in JSON, XML, and YAML formats:
Example Responses
{
"status": "ok",
"error": null,
"data": {
"source": "www.nasa.gov",
"articles": 10,
"maxReached": false,
"feed": [
{
"website": "NASA",
"title": "60 Years Ago: Ranger 8 Moon Photos Aid in Apollo Site Selectionย ",
"pubDate": "Thu, 20 Feb 2025 20:59:33 +0000",
"description": "Before Apollo astronauts set foot upon the Moon, much remained unknown about the lunar surface. While most scientists believed the Moon had a solid surface that would support astronauts and their landing craft, a few believed a deep layer of dust covered it that would swallow any visitors. Until 1964, no closeup photographs of the [โฆ]",
"link": "https://www.nasa.gov/history/60-years-ago-ranger-8-moon-photos-aid-in-apollo-site-selection/"
},
{
"website": "NASA",
"title": "55 Years Ago: Preps for Apollo 13 and 14, Apollo 12 Crew on World Tour",
"pubDate": "Thu, 20 Feb 2025 19:06:38 +0000",
"description": "With two months to go before flight, the Apollo 13 prime crew of James Lovell, Thomas Mattingly, Fred Haise, and backups John Young, John Swigert, and Charles Duke continued to train for the 10-day mission planned to land in the Fra Mauro highlands region of the Moon. Engineers continued to prepare the Saturn V rocket [โฆ]",
"link": "https://www.nasa.gov/history/55-years-ago-preps-for-apollo-13-and-14-apollo-12-crew-on-world-tour/"
},
{
"website": "NASA",
"title": "NASA Invites Media to Simulated Mars Habitat Before Next Mission",
"pubDate": "Thu, 20 Feb 2025 19:02:19 +0000",
"description": "Media are invited to visit NASAโs simulated Mars habitat on Monday, March 10, at the agencyโs Johnson Space Center in Houston. The simulation will help prepare humanity for future missions to the Red Planet. This is the second of three missions as part of NASAโs CHAPEA (Crew Health and Performance Exploration Analog), set to begin [โฆ]",
"link": "https://www.nasa.gov/news-release/nasa-invites-media-to-simulated-mars-habitat-before-next-mission/"
},
{
"website": "NASA",
"title": "In Memoriam: Jeff Dozier [1944โ2024]",
"pubDate": "Thu, 20 Feb 2025 18:55:58 +0000",
"description": "Jeff Dozier, an environmental scientist, snow hydrologist, researcher, academic โ and former Earth Observing System Project Scientist โ died on November 17, 2024. Jeffโs research focused on snow hydrology and biogeochemistry in mountain environments and addressed the role of stored and melting snow in the hydrologic cycle as well as the economic and social impact [โฆ]",
"link": "https://science.nasa.gov/science-research/earth-science/in-memoriam-jeff-dozier-1944-2024/"
},
{
"website": "NASA",
"title": "In Memoriam: Berrien Moore III [1941โ2024]",
"pubDate": "Thu, 20 Feb 2025 18:54:46 +0000",
"description": "Berrien Moore III, Dean of the College of Atmospheric and Geographic Sciences at the University of Oklahoma (OU), director of the National Weather Center in Norman, OK, and Vice President for Weather and Climate Programs, died on December 17, 2024.ย Berrien earned an undergraduate degree from the University of North Carolina in 1963 and a doctorate [โฆ]",
"link": "https://science.nasa.gov/science-research/earth-science/in-memoriam-berrien-moore-iii-1941-2024/"
},
{
"website": "NASA",
"title": "Artemis II Rocket Booster Stacking Complete",
"pubDate": "Thu, 20 Feb 2025 16:52:15 +0000",
"description": "Engineers at NASAโs Kennedy Space Center in Florida completed stacking the twin SLS (Space Launch System) solid rocket boosters โ seen in this Feb. 19, 2025, photo โ inside the Vehicle Assembly Building for the agencyโsย Artemis IIย crewed test flight around the Moon. During stacking operations, whichย beganย Nov. 20, 2024, technicians used a massive overhead crane to [โฆ]",
"link": "https://www.nasa.gov/image-article/artemis-ii-rocket-booster-stacking-complete/"
},
{
"website": "NASA",
"title": "NASA Stennis Teams Install New Production RS-25 Engine for Upcoming Hot Fire",
"pubDate": "Thu, 20 Feb 2025 16:04:38 +0000",
"description": "NASA marked a key milestone Feb. 18 with installation of RS-25 engine No. E20001, the first new production engine to help power the SLS (Space Launch System) rocket on future Artemis missions to the Moon. The engine, built by lead SLS engines contractor L3Harris (formerly Aerojet Rocketdyne), was installed on the Fred Haise Test Stand [โฆ]",
"link": "https://www.nasa.gov/image-article/stennis-teams-install-new-production-rs-25-engine/"
},
{
"website": "NASA",
"title": "In Memoriam: Pierre Morel [1933โ2024]",
"pubDate": "Thu, 20 Feb 2025 14:54:30 +0000",
"description": "Pierre Morel, the first director of the World Climate Research Programme (WCRP) and founding member of WCRPโs Global Energy and Water Exchanges (GEWEX) Core project, died on December 10, 2024. Pierre began his research as a theoretical physicist. His doctoral thesis examined the existence and properties of a condensed superfluid state of liquid Helium 3 [โฆ]",
"link": "https://science.nasa.gov/science-research/earth-science/in-memoriam-pierre-morel-1933-2024/"
},
{
"website": "NASA",
"title": "Lunar Cold Electronics Assessment Workshop (Apr 30 โ May 1, 2025)",
"pubDate": "Thu, 20 Feb 2025 14:53:08 +0000",
"description": "How to Attend The workshop will be hosted by NASA Jet Propulsion Laboratory.Virtual and in-person attendance are available. Registration is required for both. (Link coming soon!)Virtual attendees will receive connection information one week before the workshop. Background, Goals and Objectives Preliminary Agenda Points of Contact If you have any questions regarding the workshop, please contact [โฆ]",
"link": "https://www.nasa.gov/centers-and-facilities/nesc/lunar-cold-electronics-assessment-workshop/"
},
{
"website": "NASA",
"title": "Summary of the Joint NASA LCLUCโSARI Synthesis Meeting",
"pubDate": "Thu, 20 Feb 2025 14:52:36 +0000",
"description": "Introduction The NASA Land-Cover and Land-Use Change (LCLUC)ย is an interdisciplinary scientific program within NASAโs Earth Science program that aims to develop the capability for periodic global inventories of land use and land cover from space. The programโs goal is to develop the mapping, monitoring and modeling capabilities necessary to simulate the processes taking place and [โฆ]",
"link": "https://science.nasa.gov/science-research/earth-science/summary-of-the-joint-nasa-lcluc-sari-synthesis-meeting/"
}
]
}
}<Root>
<status>ok</status>
<error />
<data>
<source>www.nasa.gov</source>
<articles>10</articles>
<maxReached>false</maxReached>
<feed>
<website>NASA</website>
<title>60 Years Ago: Ranger 8 Moon Photos Aid in Apollo Site Selectionย </title>
<pubDate>Thu, 20 Feb 2025 20:59:33 +0000</pubDate>
<description>Before Apollo astronauts set foot upon the Moon, much remained unknown about the lunar surface. While most scientists believed the Moon had a solid surface that would support astronauts and their landing craft, a few believed a deep layer of dust covered it that would swallow any visitors. Until 1964, no closeup photographs of the [โฆ]</description>
<link>https://www.nasa.gov/history/60-years-ago-ranger-8-moon-photos-aid-in-apollo-site-selection/</link>
</feed>
<feed>
<website>NASA</website>
<title>55 Years Ago: Preps for Apollo 13 and 14, Apollo 12 Crew on World Tour</title>
<pubDate>Thu, 20 Feb 2025 19:06:38 +0000</pubDate>
<description>With two months to go before flight, the Apollo 13 prime crew of James Lovell, Thomas Mattingly, Fred Haise, and backups John Young, John Swigert, and Charles Duke continued to train for the 10-day mission planned to land in the Fra Mauro highlands region of the Moon. Engineers continued to prepare the Saturn V rocket [โฆ]</description>
<link>https://www.nasa.gov/history/55-years-ago-preps-for-apollo-13-and-14-apollo-12-crew-on-world-tour/</link>
</feed>
<feed>
<website>NASA</website>
<title>NASA Invites Media to Simulated Mars Habitat Before Next Mission</title>
<pubDate>Thu, 20 Feb 2025 19:02:19 +0000</pubDate>
<description>Media are invited to visit NASAโs simulated Mars habitat on Monday, March 10, at the agencyโs Johnson Space Center in Houston. The simulation will help prepare humanity for future missions to the Red Planet. This is the second of three missions as part of NASAโs CHAPEA (Crew Health and Performance Exploration Analog), set to begin [โฆ]</description>
<link>https://www.nasa.gov/news-release/nasa-invites-media-to-simulated-mars-habitat-before-next-mission/</link>
</feed>
<feed>
<website>NASA</website>
<title>In Memoriam: Jeff Dozier [1944โ2024]</title>
<pubDate>Thu, 20 Feb 2025 18:55:58 +0000</pubDate>
<description>Jeff Dozier, an environmental scientist, snow hydrologist, researcher, academic โ and former Earth Observing System Project Scientist โ died on November 17, 2024. Jeffโs research focused on snow hydrology and biogeochemistry in mountain environments and addressed the role of stored and melting snow in the hydrologic cycle as well as the economic and social impact [โฆ]</description>
<link>https://science.nasa.gov/science-research/earth-science/in-memoriam-jeff-dozier-1944-2024/</link>
</feed>
<feed>
<website>NASA</website>
<title>In Memoriam: Berrien Moore III [1941โ2024]</title>
<pubDate>Thu, 20 Feb 2025 18:54:46 +0000</pubDate>
<description>Berrien Moore III, Dean of the College of Atmospheric and Geographic Sciences at the University of Oklahoma (OU), director of the National Weather Center in Norman, OK, and Vice President for Weather and Climate Programs, died on December 17, 2024.ย Berrien earned an undergraduate degree from the University of North Carolina in 1963 and a doctorate [โฆ]</description>
<link>https://science.nasa.gov/science-research/earth-science/in-memoriam-berrien-moore-iii-1941-2024/</link>
</feed>
<feed>
<website>NASA</website>
<title>Artemis II Rocket Booster Stacking Complete</title>
<pubDate>Thu, 20 Feb 2025 16:52:15 +0000</pubDate>
<description>Engineers at NASAโs Kennedy Space Center in Florida completed stacking the twin SLS (Space Launch System) solid rocket boosters โ seen in this Feb. 19, 2025, photo โ inside the Vehicle Assembly Building for the agencyโsย Artemis IIย crewed test flight around the Moon. During stacking operations, whichย beganย Nov. 20, 2024, technicians used a massive overhead crane to [โฆ]</description>
<link>https://www.nasa.gov/image-article/artemis-ii-rocket-booster-stacking-complete/</link>
</feed>
<feed>
<website>NASA</website>
<title>NASA Stennis Teams Install New Production RS-25 Engine for Upcoming Hot Fire</title>
<pubDate>Thu, 20 Feb 2025 16:04:38 +0000</pubDate>
<description>NASA marked a key milestone Feb. 18 with installation of RS-25 engine No. E20001, the first new production engine to help power the SLS (Space Launch System) rocket on future Artemis missions to the Moon. The engine, built by lead SLS engines contractor L3Harris (formerly Aerojet Rocketdyne), was installed on the Fred Haise Test Stand [โฆ]</description>
<link>https://www.nasa.gov/image-article/stennis-teams-install-new-production-rs-25-engine/</link>
</feed>
<feed>
<website>NASA</website>
<title>In Memoriam: Pierre Morel [1933โ2024]</title>
<pubDate>Thu, 20 Feb 2025 14:54:30 +0000</pubDate>
<description>Pierre Morel, the first director of the World Climate Research Programme (WCRP) and founding member of WCRPโs Global Energy and Water Exchanges (GEWEX) Core project, died on December 10, 2024. Pierre began his research as a theoretical physicist. His doctoral thesis examined the existence and properties of a condensed superfluid state of liquid Helium 3 [โฆ]</description>
<link>https://science.nasa.gov/science-research/earth-science/in-memoriam-pierre-morel-1933-2024/</link>
</feed>
<feed>
<website>NASA</website>
<title>Lunar Cold Electronics Assessment Workshop (Apr 30 โ May 1, 2025)</title>
<pubDate>Thu, 20 Feb 2025 14:53:08 +0000</pubDate>
<description>How to Attend The workshop will be hosted by NASA Jet Propulsion Laboratory.Virtual and in-person attendance are available. Registration is required for both. (Link coming soon!)Virtual attendees will receive connection information one week before the workshop. Background, Goals and Objectives Preliminary Agenda Points of Contact If you have any questions regarding the workshop, please contact [โฆ]</description>
<link>https://www.nasa.gov/centers-and-facilities/nesc/lunar-cold-electronics-assessment-workshop/</link>
</feed>
<feed>
<website>NASA</website>
<title>Summary of the Joint NASA LCLUCโSARI Synthesis Meeting</title>
<pubDate>Thu, 20 Feb 2025 14:52:36 +0000</pubDate>
<description>Introduction The NASA Land-Cover and Land-Use Change (LCLUC)ย is an interdisciplinary scientific program within NASAโs Earth Science program that aims to develop the capability for periodic global inventories of land use and land cover from space. The programโs goal is to develop the mapping, monitoring and modeling capabilities necessary to simulate the processes taking place and [โฆ]</description>
<link>https://science.nasa.gov/science-research/earth-science/summary-of-the-joint-nasa-lcluc-sari-synthesis-meeting/</link>
</feed>
</data>
</Root>status: ok
error:
data:
source: www.nasa.gov
articles: 10
maxReached: false
feed:
- website: NASA
title: '60 Years Ago: Ranger 8 Moon Photos Aid in Apollo Site Selectionย '
pubDate: Thu, 20 Feb 2025 20:59:33 +0000
description: Before Apollo astronauts set foot upon the Moon, much remained unknown about the lunar surface. While most scientists believed the Moon had a solid surface that would support astronauts and their landing craft, a few believed a deep layer of dust covered it that would swallow any visitors. Until 1964, no closeup photographs of the [โฆ]
link: https://www.nasa.gov/history/60-years-ago-ranger-8-moon-photos-aid-in-apollo-site-selection/
- website: NASA
title: '55 Years Ago: Preps for Apollo 13 and 14, Apollo 12 Crew on World Tour'
pubDate: Thu, 20 Feb 2025 19:06:38 +0000
description: With two months to go before flight, the Apollo 13 prime crew of James Lovell, Thomas Mattingly, Fred Haise, and backups John Young, John Swigert, and Charles Duke continued to train for the 10-day mission planned to land in the Fra Mauro highlands region of the Moon. Engineers continued to prepare the Saturn V rocket [โฆ]
link: https://www.nasa.gov/history/55-years-ago-preps-for-apollo-13-and-14-apollo-12-crew-on-world-tour/
- website: NASA
title: NASA Invites Media to Simulated Mars Habitat Before Next Mission
pubDate: Thu, 20 Feb 2025 19:02:19 +0000
description: Media are invited to visit NASAโs simulated Mars habitat on Monday, March 10, at the agencyโs Johnson Space Center in Houston. The simulation will help prepare humanity for future missions to the Red Planet. This is the second of three missions as part of NASAโs CHAPEA (Crew Health and Performance Exploration Analog), set to begin [โฆ]
link: https://www.nasa.gov/news-release/nasa-invites-media-to-simulated-mars-habitat-before-next-mission/
- website: NASA
title: 'In Memoriam: Jeff Dozier [1944โ2024]'
pubDate: Thu, 20 Feb 2025 18:55:58 +0000
description: Jeff Dozier, an environmental scientist, snow hydrologist, researcher, academic โ and former Earth Observing System Project Scientist โ died on November 17, 2024. Jeffโs research focused on snow hydrology and biogeochemistry in mountain environments and addressed the role of stored and melting snow in the hydrologic cycle as well as the economic and social impact [โฆ]
link: https://science.nasa.gov/science-research/earth-science/in-memoriam-jeff-dozier-1944-2024/
- website: NASA
title: 'In Memoriam: Berrien Moore III [1941โ2024]'
pubDate: Thu, 20 Feb 2025 18:54:46 +0000
description: Berrien Moore III, Dean of the College of Atmospheric and Geographic Sciences at the University of Oklahoma (OU), director of the National Weather Center in Norman, OK, and Vice President for Weather and Climate Programs, died on December 17, 2024.ย Berrien earned an undergraduate degree from the University of North Carolina in 1963 and a doctorate [โฆ]
link: https://science.nasa.gov/science-research/earth-science/in-memoriam-berrien-moore-iii-1941-2024/
- website: NASA
title: Artemis II Rocket Booster Stacking Complete
pubDate: Thu, 20 Feb 2025 16:52:15 +0000
description: Engineers at NASAโs Kennedy Space Center in Florida completed stacking the twin SLS (Space Launch System) solid rocket boosters โ seen in this Feb. 19, 2025, photo โ inside the Vehicle Assembly Building for the agencyโsย Artemis IIย crewed test flight around the Moon. During stacking operations, whichย beganย Nov. 20, 2024, technicians used a massive overhead crane to [โฆ]
link: https://www.nasa.gov/image-article/artemis-ii-rocket-booster-stacking-complete/
- website: NASA
title: NASA Stennis Teams Install New Production RS-25 Engine for Upcoming Hot Fire
pubDate: Thu, 20 Feb 2025 16:04:38 +0000
description: NASA marked a key milestone Feb. 18 with installation of RS-25 engine No. E20001, the first new production engine to help power the SLS (Space Launch System) rocket on future Artemis missions to the Moon. The engine, built by lead SLS engines contractor L3Harris (formerly Aerojet Rocketdyne), was installed on the Fred Haise Test Stand [โฆ]
link: https://www.nasa.gov/image-article/stennis-teams-install-new-production-rs-25-engine/
- website: NASA
title: 'In Memoriam: Pierre Morel [1933โ2024]'
pubDate: Thu, 20 Feb 2025 14:54:30 +0000
description: Pierre Morel, the first director of the World Climate Research Programme (WCRP) and founding member of WCRPโs Global Energy and Water Exchanges (GEWEX) Core project, died on December 10, 2024. Pierre began his research as a theoretical physicist. His doctoral thesis examined the existence and properties of a condensed superfluid state of liquid Helium 3 [โฆ]
link: https://science.nasa.gov/science-research/earth-science/in-memoriam-pierre-morel-1933-2024/
- website: NASA
title: Lunar Cold Electronics Assessment Workshop (Apr 30 โ May 1, 2025)
pubDate: Thu, 20 Feb 2025 14:53:08 +0000
description: How to Attend The workshop will be hosted by NASA Jet Propulsion Laboratory.Virtual and in-person attendance are available. Registration is required for both. (Link coming soon!)Virtual attendees will receive connection information one week before the workshop. Background, Goals and Objectives Preliminary Agenda Points of Contact If you have any questions regarding the workshop, please contact [โฆ]
link: https://www.nasa.gov/centers-and-facilities/nesc/lunar-cold-electronics-assessment-workshop/
- website: NASA
title: Summary of the Joint NASA LCLUCโSARI Synthesis Meeting
pubDate: Thu, 20 Feb 2025 14:52:36 +0000
description: Introduction The NASA Land-Cover and Land-Use Change (LCLUC)ย is an interdisciplinary scientific program within NASAโs Earth Science program that aims to develop the capability for periodic global inventories of land use and land cover from space. The programโs goal is to develop the mapping, monitoring and modeling capabilities necessary to simulate the processes taking place and [โฆ]
link: https://science.nasa.gov/science-research/earth-science/summary-of-the-joint-nasa-lcluc-sari-synthesis-meeting/Response Structure
All API responses follow a consistent structure with the following fields:
| Field | Type | Description | Example |
|---|---|---|---|
| status | string | Indicates whether the request was successful ("ok") or failed ("error") | ok |
| error | string | null | Contains error message if status is "error", otherwise null | null |
| data | object | null | Contains the API response data if successful, otherwise null | {...} |
Response Data Fields
When the request is successful, the data object contains the following fields:
| Field | Type | Sample Value |
|---|---|---|
| source | string | "www.nasa.gov" |
| articles | number | 10 |
| maxReached | boolean | false |
| feed | array | [{"website":"NASA","title":"60 Years Ago: Ranger 8 Moon Photos Aid in Apollo Site Selectionย ","pubDate":"Thu, 20 Feb 2025 20:59:33 +0000","description":"Before Apollo astronauts set foot upon the Moon, much remained unknown about the lunar surface. While most scientists believed the Moon had a solid surface that would support astronauts and their landing craft, a few believed a deep layer of dust covered it that would swallow any visitors. Until 1964, no closeup photographs of the [โฆ]","link":"https://www.nasa.gov/history/60-years-ago-ranger-8-moon-photos-aid-in-apollo-site-selection/"}, ...] |
Headers
Required and optional headers for API requests:
| Header Name | Required | Example Value | Description |
|---|---|---|---|
| X-API-Key | Yes | your_api_key_here | Your APIVerve API key. Found in your dashboard under API Keys. |
| Accept | No | application/json | Specify response format: application/json (default), application/xml, or application/yaml |
| User-Agent | No | MyApp/1.0 | Identifies your application for analytics and debugging purposes |
| X-Request-ID | No | req_123456789 | Custom request identifier for tracking and debugging requests |
| Cache-Control | No | no-cache | Control caching behavior for the request and response |
GraphQL AccessBETA
Most APIVerve APIs support GraphQL queries, allowing you to combine multiple API calls into a single request and retrieve only the data you need. This powerful feature enables you to orchestrate complex data fetching with precise field selection.
This API does not currently support GraphQL as it requires a POST request. GraphQL support for POST APIs is coming soon.
CORS Support
All APIVerve APIs support Cross-Origin Resource Sharing (CORS) with wildcard configuration, allowing you to call the API directly from browser-based applications without proxy servers.
| CORS Header | Value | Description |
|---|---|---|
| Access-Control-Allow-Origin | * | Accepts requests from any origin |
| Access-Control-Allow-Methods | * | Accepts any HTTP method |
| Access-Control-Allow-Headers | * | Accepts any request headers |
Browser Usage: You can make direct API calls from JavaScript running in the browser without encountering CORS errors. No additional configuration needed.
Rate Limiting
APIVerve implements rate limiting to ensure fair usage and maintain service quality across all users. Rate limits vary by subscription plan and are applied per API key.
| Plan | Rate Limit | Description |
|---|---|---|
| Free | 5 requests/min | Hard rate limit enforced - exceeding will return 429 errors |
| Starter | Smart Limiting | Production ready - performance-based throttling only as last resort |
| Pro | No Limit | Production ready - no rate limiting or throttling |
| Mega | No Limit | Production ready - no rate limiting or throttling |
Rate Limit Headers
When rate limits apply, each API response includes headers to help you track your usage:
| Header | Description |
|---|---|
| X-RateLimit-Limit | Maximum number of requests allowed per time window |
| X-RateLimit-Remaining | Number of requests remaining in the current window |
| X-RateLimit-Reset | Unix timestamp when the rate limit window resets |
Handling Rate Limits
Free Plan: When you exceed your rate limit, the API returns a 429 Too Many Requests status code. Your application should implement appropriate backoff logic to handle this gracefully.
Starter Plan: Smart limiting may slow down request processing during extreme load as a last resort, but will not return errors. All paid plans (Starter, Pro, Mega) are production-ready.
Pro & Mega Plans: No rate limiting or throttling applied.
Best Practices:
- Monitor the rate limit headers to track your usage (Free plan only)
- Implement caching where appropriate to reduce API calls
- Upgrade to Pro or Mega for guaranteed no-throttle performance
Note: Rate limits are separate from token consumption. You may have tokens remaining but still hit rate limits on Free tier.
Client Libraries
To get started with minimal code, most of our APIs are available through client libraries and clients:
Error Codes
The API uses standard HTTP status codes to indicate success or failure:
| Code | Message | Description | Solution |
|---|---|---|---|
| 200 | OK | Request successful, data returned | No action needed - request was successful |
| 400 | Bad Request | Invalid request parameters or malformed request | Check required parameters and ensure values match expected formats |
| 401 | Unauthorized | Missing or invalid API key | Include x-api-key header with valid API key from dashboard |
| 403 | Forbidden | API key lacks permission or insufficient tokens | Check token balance in dashboard or upgrade plan |
| 429 | Too Many Requests | Rate limit exceeded (Free: 5 req/min) | Implement request throttling or upgrade to paid plan |
| 500 | Internal Server Error | Server error occurred | Retry request after a few seconds, contact support if persists |
| 503 | Service Unavailable | API temporarily unavailable | Wait and retry, check status page for maintenance updates |
Need help? Contact support with your X-Request-ID for assistance.
Frequently Asked Questions
How do I get an API key?
What are tokens and how do they work?
Tokens are your API usage currency. Each successful API call consumes tokens based on the API's complexity. Most APIs cost 1 token per call, while more complex APIs may cost 2-5 tokens. Failed requests and errors don't consume tokens. Check the API details above to see the token cost for this specific API.
Can I use this API in production?
The free plan is for testing and development only. For production use, upgrade to a paid plan (Starter, Pro, or Mega) which includes commercial use rights, no attribution requirements, and guaranteed uptime SLAs. All paid plans are production-ready.
Can I use this API from a browser?
What happens if I exceed my token limit?
When you reach your monthly token limit, API requests will return an error until you upgrade your plan or wait for the next billing cycle. You'll receive notifications at 80% and 95% usage to give you time to upgrade if needed.
Was this page helpful?
Help us improve our documentation



