You can pull the full story object by it's id as follows:
In addition, you can paginate and selecte feeds as follows;
Support
Current and Historical values
API Call Counts
100 per API call.
API Plan
gold
Get detail news story with storyId=62018c4eed0e139b41e84e9c
https://api.cryptoquote.io/v1/news/story/details?storyId=62018c4eed0e139b41e84e9c&key=
News feed id
Example : ZACKS
News feed code
Type: string
{
"story": {
"hasBody": true,
"keywords": Array[0][
],
"tickers": Array[0][
],
"language": "en",
"_id": "62018c4eed0e139b41e84e9c",
"feedCode": "MKTWTC",
"providerStoryId": "{20C05575-04D4-B545-7910-87A53D967FAC}",
"__v": 0,
"author": null,
"body": "U.S. stocks close mostly lower Monday after the S&P 500, Dow and Nasdaq Composite waffle between small gains and losses throughout the session.",
"createdAt": "2022-02-07T21:17:02.288Z",
"date": "2022-02-07T21:12:00.000Z",
"headline": "Market Pulse: S&P 500 and Nasdaq Composite succumb to selling pressure to end lower Monday as Dow ends flat",
"link": "http://www.marketwatch.com/news/story.asp?guid=%7B20C05575-04D4-B545-7910-87A53D967FAC%7D&siteid=rss&rss=1",
"provider": "Market Watch",
"providerCode": "MKTWTC",
"publisher": "Market Watch",
"publisherCode": "MKTWTC",
"slug": "Market-Pulse-SandP-500-and-Nasdaq-Composite-succumb-to-selling-pressure-to-end-lower-Monday-as-Dow-ends-flat",
"updatedAt": "2022-02-07T21:17:02.288Z",
"id": "62018c4eed0e139b41e84e9c"
}
}
Get detail news story with storyId=62018c4eed0e139b41e84e9c
https://api.cryptoquote.io/v1/news/story/details?storyId=62018c4eed0e139b41e84e9c&key=
GET https://api.cryptoquote.io/v1/news/story?https://api.cryptoquote.io/v1/news/story/details?storyId=62018c4eed0e139b41e84e9c&key=&key=your_api_key
import requests r = requests.get("https://api.cryptoquote.io/v1/news/story?https://api.cryptoquote.io/v1/news/story/details?storyId=62018c4eed0e139b41e84e9c&key=&key=your_api_key") data = r.json() print(data)
var http = require('http'); var buffer = ''; var options = { host: 'https://api.cryptoquote.io/v1/news/story?https://api.cryptoquote.io/v1/news/story/details?storyId=62018c4eed0e139b41e84e9c&key=&key=your_api_key', port: 80, path: 'https://api.cryptoquote.io/v1/news/story?https://api.cryptoquote.io/v1/news/story/details?storyId=62018c4eed0e139b41e84e9c&key=&key=your_api_key', headers: headers }; callback = function(response) { response.on('data', function (chunk) { buffer += chunk; }); response.on('end', function () { // your code here if you want to use the results ! }); } var req = http.get(options, callback).end();
using (var client = new HttpClient()) { client.BaseAddress = new Uri("{$api_host}"); client.DefaultRequestHeaders.Clear(); //ADD Acept Header to tell the server what data type you want client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); //SET Parameters HttpResponseMessage response = await client.GetAsync("https://api.cryptoquote.io/v1/news/story?https://api.cryptoquote.io/v1/news/story/details?storyId=62018c4eed0e139b41e84e9c&key=&key=your_api_key"); if (response.IsSuccessStatusCode) { //Your custom response parser code } }
String uri = "https://api.cryptoquote.io/v1/news/story?https://api.cryptoquote.io/v1/news/story/details?storyId=62018c4eed0e139b41e84e9c&key=&key=your_api_key"; URL url = new URL(uri); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("Accept", "application/json"); InputStream xml = connection.getInputStream();
install.packages("RCurl") install.packages("jsonlite")2 - Request the data:
library('RCurl') require('jsonlite') json <- getURL(URLencode('https://api.cryptoquote.io/v1/news/story?https://api.cryptoquote.io/v1/news/story/details?storyId=62018c4eed0e139b41e84e9c&key=&key=your_api_key')) obj <- fromJSON(json)
$url = 'https://api.cryptoquote.io/v1/news/story?https://api.cryptoquote.io/v1/news/story/details?storyId=62018c4eed0e139b41e84e9c&key=&key=your_api_key'; $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); $data = curl_exec($handle); curl_close($handle); //parse your data as per your needs....
var url = 'https://api.cryptoquote.io/v1/news/story?https://api.cryptoquote.io/v1/news/story/details?storyId=62018c4eed0e139b41e84e9c&key=&key=your_api_key'; $.ajax({ url: url, type: "GET", dataType: 'json' }).done(function (data) { console.log(data); });