UserScripts Archive
Nitroflare checking via api - Printable Version

+- UserScripts Archive (http://usa.x10host.com/mybb)
+-- Forum: UserScripts Archive (http://usa.x10host.com/mybb/forumdisplay.php?fid=1)
+--- Forum: Script Support (http://usa.x10host.com/mybb/forumdisplay.php?fid=3)
+---- Forum: W.A.R. Links Checker Premium (http://usa.x10host.com/mybb/forumdisplay.php?fid=6)
+---- Thread: Nitroflare checking via api (/showthread.php?tid=533)



Nitroflare checking via api - tgs - 02-06-2023

Hi Mental,
Is it possible to use API checking for nitroflare then direct checking via page? I found this API information inside user panel and does not require any key for access. It can also tell whether file is set to premium only or not however I have find that information to be inconsistent.


getFileInfo


Quote:
Description:
Returns information about a file or multiple files.
Quote:
Request Parameters:
Name
Quote:Descriptionfiles
Up to 100 file IDs separated by commas. (e.g. "276AF587369E929, EEC05BA63F034D7" or "276AF587369E929")


Example
Request

Code:
https://nitroflare.com/api/v2/getFileInfo?files=3CB8F8AE25CF218
Quote:
Response
{
  "type": "success",
  "result": {
    "files": {
      "3CB8F8AE25CF218": {
        "status": "offline", // online|offline
        "name": "API.txt",
        "size": "2", // In bytes
        "uploadDate": "2014-07-14 16:51:15",
        "url": "https://nitroflare.com/view/3CB8F8AE25CF218/API.txt",
        "premiumOnly": false // Is the file available for premium users only?
      }
    }
  }
}



RE: Nitroflare checking via api - mental - 02-07-2023

I am not good at API, my friend that helped me with that no longer works on scripts.
It's about as good as i can make it but I made a couple changes maybe that will be better.


RE: Nitroflare checking via api - tgs - 02-07-2023

No problem mental. I have integrated it with the script. although I am using old version of W.A.R, by dkitty. If you would like I will be happy to share the code with you. Anyway thanks a lot.


RE: Nitroflare checking via api - mental - 02-08-2023

Thanks, I would appreciate it.

I am slowly learning to use API but not much time to do it, I can put it in the script and see how it works


RE: Nitroflare checking via api - tgs - 02-09-2023

(02-08-2023, 12:18 AM)mental Wrote: Thanks, I would appreciate it.

I am slowly learning to use API but not much time to do it, I can put it in the script and see how it works
here
Code:
https://greasyfork.org/en/scripts/458704