By unogs
Updated 4 months ago
Popularity Score
Success Rate
Jetapinc3 years ago
How accurate is the CountryInfo: new 7, or Expiring in relation to the matching APIHello Quick question, when my code fetch the country information, it does contains some meta information about the total number of movies released in the last 7, or 30 days, and "expiring"... But if I check the information by calling the corresponding API for a country, the total number of items returned doesn't match. Example: calling the country API return for the US: ["78","us","United States","29","200","37","5305","1258","4047","USD","7.99","9.99","11.99"] So 29 recent in the last 7 days, and 200 in the last 30 days with 37 expiring. If I now call the API for the US to get the list of movies recently released in the last 7 days with the param: q=get:new7:US&p=1&t=ns&st=adv , the content returned is: {"COUNT":"26","ITEMS":[[ ... So 26 instead of 29... So it looks like the API for the country info is not matching the info returned when using the detailed API (same thing happen for expiring)... So I am kind of wondering what is the purpose of the extra info in the country API... Initially I was planning to use it to show some meta information for the user to select the country but since the info is inaccurate it's probably going to end up with various support questions. Thanks!
Jetapinc3 years ago
Ok that make sense. Maybe In the future adding in the payload for countries some info on the date/time when it was cached/computed will be a great addition.
unogs3 years ago
the country meta data is cached to save the database so depending on when you look at it, it may not be 100% accurate
Hi Developer, feel free to post your answer:

Install SDK for NodeJS


To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

.header("X-RapidAPI-Host", "")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication