[ Restfull API ] - Photos

Results 1 to 7 of 7
  1. #1
    C# - Java - Notepad Ben is offline
    ModeratorRank
    Jul 2013 Join Date
    BelguimLocation
    1,227Posts

    [ Restfull API ] - Photos


    RaGEZONE Recommends

    RaGEZONE Recommends

    Hey guys

    I'm trying to develop an application that shows a random picture in a discord channel of a certain subject.
    For example when a user types !cake a bot will show a random picture of a good looking cake in the chat.

    my issue is that im looking for decent pictures of cakes etc..does anyone of you guys know a decent website that provides lots of pictures specially on a subject?

    i already worked with the imgur api but the issue there is that when I search on Cake, i still get alot of memes etc while i actually only want a nice cake.

    It's something similar like the cat api that shows only pictures of cats ( google it)

    cheers!


  2. #2
    ◝(⁰▿⁰)◜Smile◝ (⁰▿⁰)◜ Taiga is offline
    ModeratorRank
    May 2007 Join Date
    InternetLocation
    2,467Posts

    Re: [ Restfull API ] - Photos

    You could use the google search API for this and return one of the first results.
    Moderator & Developer
    I CAN NOT HELP YOU WITH YOUR SERVER, USE THE CORRECT HELP SECTION INSTEAD.
    I AM ONLY TAIGA ON RAGEZONE!
    BE CAREFUL WITH IMPOSTORS!


    DO NOT PM ME FOR GAME RELATED QUESTIONS, THESE MESSAGES WILL BE IGNORED!

    The Rules | Discord | MMORPG Extra | Contact Me


  3. #3
    Programmer TimeBomb is online now
    ModeratorRank
    May 2008 Join Date
    United StatesLocation
    1,251Posts

    Re: [ Restfull API ] - Photos

    Slack has a similar slash command for doing this with giphy.com. You type '/giphy searchterm' and it displays a random gif of that search keyword in the channel. It's animated images, but maybe it'll still work. Gallery quality is alright, and you can even do things like disable NSFW images.

  4. #4
    C# - Java - Notepad Ben is offline
    ModeratorRank
    Jul 2013 Join Date
    BelguimLocation
    1,227Posts

    Re: [ Restfull API ] - Photos

    I was looking into the google search api too, might consider that one i'm not sure yet as I actually can't know 100% sure that it will show a correct result unless I manually approve the pictures but I really don't feel like going through a few thousand pictures just for this project.

  5. #5
    MMO Supervisor Biesmen is offline
    SupervisorRank
    Apr 2007 Join Date
    2,088Posts

    Re: [ Restfull API ] - Photos

    Bing Search also has an API, but you'll most likely still end up with the same issue. https://msdn.microsoft.com/en-us/library/dd250942.aspx
    Forum Rules | Account Support | Subscribe
    RaGEZONE Facebook

    "Make sure your worst enemy doesn't live between your two ears"
    Laird Hamilton

  6. #6
    C# - Java - Notepad Ben is offline
    ModeratorRank
    Jul 2013 Join Date
    BelguimLocation
    1,227Posts

    Re: [ Restfull API ] - Photos

    Quote Originally Posted by Biesmen View Post
    Bing Search also has an API, but you'll most likely still end up with the same issue. https://msdn.microsoft.com/en-us/library/dd250942.aspx
    :/ Yea I know I guess I'll need to do it the manual way then to be completely sure about the pictures.

  7. #7
    Deep thoughts [ Restfull API ] - Photos Joopie is online now
    SubscriberRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,578Posts

    Re: [ Restfull API ] - Photos

    You could also write some fancy machine learning program which can identify cakes for you!




Advertisement