Is it possible to filter flickr API calls for secure images?

I am working on an application that collects random snapshots from flickr for use as placeholder images. I just had an incident with a client where one of the placeholder images was too obvious, and now I think it's better to filter the results. I know that flickr has a level of security on images.

As I understand it, the security level is set for each user. Is it possible to install it during an API call?

This is the call I'm using:

flickr.interestingness.getList 
+4
source share
2 answers

There is a "safe search" argument, which you can pass in when you configure your search parameters.

Safe search:

  • for safe
  • for moderate
  • for limited

Your code should look like this:

 NSMutableDictionary *params = [NSMutableDictionary new]; [params setObject:@(1) forKey:@"content_type"]; 

safe_search (optional) Configure SafeSearch: 1 for safe use. 2 for moderate. 3 for limitation.

Click here for more information from the flickr api website

+2
source

The Flickr API has filter options for search results using the "safe_search" parameter.
Values ​​-
1. for safe
2. for moderated
3. for limited

But, unfortunately, there are many photos that are uploaded and not marked as unsafe. Therefore, even if this setting will filter the results at some level, but not completely reliable.

+1
source

Source: https://habr.com/ru/post/1396458/


All Articles