PicDefense Safesearch API

Check if an image contains inappropriate content. Consumes 0.03 credits on success.

GitHub OpenAPI

Operations 1

POST /safesearch check image content safety #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/picdefense-io:picdefense-io-safesearch-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

picdefense-io-safesearch-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PicDefense.io APIv2 Safesearch API
  description: 'API Documentation for PicDefense.io


    All endpoints require an API TOKEN in header ''X-API-TOKEN''.


    Your X-API-TOKEN is user id and api key seperated by a colon. Example: USERID:APIKEY


    Please visit the Settings page for these details.'
  termsOfService: https://picdefense.io/terms-conditions/
  contact:
    name: API Support
    url: https://help.picdefense.io/
  version: '2'
servers:
- url: https://app.picdefense.io/api/v2
tags:
- name: safesearch
  description: Check if an image contains inappropriate content. Consumes 0.03 credits on success.
paths:
  /safesearch:
    post:
      tags:
      - safesearch
      summary: check image content safety
      description: Returns content safety analysis of the image. Consumes 0.03 credits on success.
      operationId: safesearch
      requestBody:
        description: image URL
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  format: url
                  example: http://example.com/image.jpg
                  description: The URL of the image to check. Must be publicly accessible.
        required: true
      responses:
        '200':
          description: succeeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    format: int32
                    example: 1
                  message:
                    type: string
                    example: succeeded
                  error:
                    type: string
                    example: none
                  data:
                    type: object
                    properties:
                      safesearch:
                        type: object
                        properties:
                          adult:
                            type: string
                            example: VERY_UNLIKELY
                            description: Likelihood of adult content
                            enum:
                            - VERY_UNLIKELY
                            - UNLIKELY
                            - POSSIBLE
                            - LIKELY
                            - VERY_LIKELY
                          spoof:
                            type: string
                            example: VERY_UNLIKELY
                            description: Likelihood of spoofed content
                            enum:
                            - VERY_UNLIKELY
                            - UNLIKELY
                            - POSSIBLE
                            - LIKELY
                            - VERY_LIKELY
                          medical:
                            type: string
                            example: VERY_UNLIKELY
                            description: Likelihood of medical content
                            enum:
                            - VERY_UNLIKELY
                            - UNLIKELY
                            - POSSIBLE
                            - LIKELY
                            - VERY_LIKELY
                          violence:
                            type: string
                            example: VERY_UNLIKELY
                            description: Likelihood of violent content
                            enum:
                            - VERY_UNLIKELY
                            - UNLIKELY
                            - POSSIBLE
                            - LIKELY
                            - VERY_LIKELY
                          racy:
                            type: string
                            example: VERY_UNLIKELY
                            description: Likelihood of racy content
                            enum:
                            - VERY_UNLIKELY
                            - UNLIKELY
                            - POSSIBLE
                            - LIKELY
                            - VERY_LIKELY
        '401':
          description: failed - unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    format: int32
                    example: -1
                  message:
                    type: string
                    example: failed
                  error:
                    type: string
                    example: unauthorized
                  data:
                    type: object
                    properties: {}
        '403':
          description: failed - insufficient credits
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    format: int32
                    example: -1
                  message:
                    type: string
                    example: failed
                  error:
                    type: string
                    example: insufficient credits
                  data:
                    type: object
                    properties: {}
        '500':
          description: failed - unknown server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    format: int32
                    example: -1
                  message:
                    type: string
                    example: failed
                  error:
                    type: string
                    example: unknown server error
                  data:
                    type: object
                    properties: {}
      security:
      - apiAuth: []
components:
  securitySchemes:
    apiAuth:
      type: apiKey
      description: 'Your X-API-TOKEN is user id and api key seperated by a colon. Example: USERID:APIKEY'
      name: X-API-TOKEN
      in: header
externalDocs:
  description: Find out more about PicDefense.io
  url: http://picdefense.io