Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ifunny-web-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ifunny-web-api

Simple API for https://ifunny.co/

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ifunny

Simple API for https://ifunny.co/

Usage

ifunny(Object: RequestOptions | function: callback(error, response))
let ifunny = require("ifunny")
ifunny({shuffle: false}, function (err, res) {
  console.log(res)
})

(async function() {
  let res = await ifunny()
  console.log(res)
})();

Output

[ { type: 'jpg',
    src: 'https://img.ifcdn.com/images/ab45b4c82485dd766884d01036d4ac24d4f32d7f_1.jpg',
    url: 'https://ifunny.co/fun/2l08Z86W?gallery=shuffle',
    tags: 'kristen, cat - iFunny :)' },
  { type: 'mp4',
    src: 'https://img.ifcdn.com/videos/e01bfd9286aea89c114848d1fd6b77f6d8dc6a522c7ca298bc503cab5045c998_1.mp4',
    url: 'https://ifunny.co/fun/ZwTgEjdh2?gallery=shuffle',
    tags: 'food - iFunny :)' },
  { type: 'gif',
    src: 'https://img.ifcdn.com/images/7acfe06b76d2c3c98114472941e6c3b9d21eafedcf11cc3a88f56d254f72c1f4_1.gif',
    url: 'https://ifunny.co/fun/o1Ivg67I1?gallery=shuffle',
    tags: 'running, treadmill - iFunny :)' },
    { ... }
]

RequestOptions

shuffle: boolean

TODO

  • Get more than 10 results
  • Add search by tags/user
  • Add ability to get comments of a specific post
  • Get iFunny feature timer?

Keywords

FAQs

Package last updated on 05 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc