API League Media API

The Media API from API League — 6 operation(s) for media.

Operations 6

GET /take-screenshot Screenshot API #
GET /search-images Search Royalty Free Images API #
GET /search-icons Search Icons API #
GET /rescale-image Rescale Image API #
GET /detect-color Detect Main Image Color API #
GET /search-vectors Vector Search API #

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/api-league-media-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

api-league-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: League Media API
  description: API League is a Hub for World Class APIs.
  termsOfService: https://apileague.com/terms
  version: 1.9.0
  contact:
    name: David Urbansky
    email: mail@apileague.com
servers:
- url: https://api.apileague.com
security:
- apiKey: []
- headerApiKey: []
tags:
- name: Media
paths:
  /take-screenshot:
    get:
      responses:
        '200':
          description: Success
          headers: {}
          content:
            application/octet-stream:
              schema:
                format: binary
                type: string
        '401':
          description: Unauthorized
        '402':
          description: Payment Required
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '406':
          description: Not Acceptable
        '429':
          description: Too Many Requests
      parameters:
      - name: url
        description: The url of the web page for which a screenshot should be taken.
        schema:
          pattern: .
          maxLength: 1000
          type: string
          example: https://nytimes.com
        required: true
        style: form
        explode: false
        in: query
      - name: width
        description: The desired width of the screenshot.
        schema:
          format: int32
          minimum: 100
          maximum: 1000
          type: integer
          example: 400
        required: true
        style: form
        explode: false
        in: query
      - name: height
        description: The desired height of the screenshot.
        schema:
          format: int32
          minimum: 100
          maximum: 1000
          type: integer
          example: 300
        required: true
        style: form
        explode: false
        in: query
      externalDocs:
        description: Read entire docs
        url: https://apileague.com/apis/take-screenshot-api/
      summary: Screenshot API
      tags:
      - Media
      description: Take a screenshot of a web page by providing the URL. IP blocks, captchas, location restrictions etc. will be resolved in the process. The screenshot will be returned as an image.
      operationId: screenshotAPI
      deprecated: false
  /search-images:
    get:
      responses:
        '200':
          description: Success
          headers: {}
          content:
            application/json:
              schema:
                type: object
                properties:
                  images:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type:
                          - string
                          - 'null'
                        thumbnail:
                          type:
                          - string
                          - 'null'
                        width:
                          type: integer
                        height:
                          type: integer
                        license:
                          type: object
                          properties:
                            name:
                              type:
                              - string
                              - 'null'
                            link:
                              type:
                              - string
                              - 'null'
                        id:
                          type:
                          - string
                          - 'null'
              examples:
                Response:
                  value:
                    images:
                    - url: https://images.unsplash.com/photo-1529472119196-cb724127a98e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w5NTgyNnwwfDF8c2VhcmNofDF8fGRvZ3N8ZW58MHx8fHwxNzA4MjkyMjA0fDA&ixlib=rb-4.0.3&q=80&w=1080
                      thumbnail: https://images.unsplash.com/photo-1529472119196-cb724127a98e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w5NTgyNnwwfDF8c2VhcmNofDF8fGRvZ3N8ZW58MHx8fHwxNzA4MjkyMjA0fDA&ixlib=rb-4.0.3&q=80&w=200
                      width: 2303
                      height: 3594
                      license:
                        name: FREE
                        link: https://unsplash.com/license
                      id: U6nlG0Y5sfs
                    - url: https://images.unsplash.com/photo-1598133894008-61f7fdb8cc3a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w5NTgyNnwwfDF8c2VhcmNofDJ8fGRvZ3N8ZW58MHx8fHwxNzA4MjkyMjA0fDA&ixlib=rb-4.0.3&q=80&w=1080
                      thumbnail: https://images.unsplash.com/photo-1598133894008-61f7fdb8cc3a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w5NTgyNnwwfDF8c2VhcmNofDJ8fGRvZ3N8ZW58MHx8fHwxNzA4MjkyMjA0fDA&ixlib=rb-4.0.3&q=80&w=200
                      width: 2694
                      height: 4033
                      license:
                        name: FREE
                        link: https://unsplash.com/license
                      id: BJaqPaH6AGQ
                    - url: https://images.unsplash.com/photo-1568572933382-74d440642117?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w5NTgyNnwwfDF8c2VhcmNofDN8fGRvZ3N8ZW58MHx8fHwxNzA4MjkyMjA0fDA&ixlib=rb-4.0.3&q=80&w=1080
                      thumbnail: https://images.unsplash.com/photo-1568572933382-74d440642117?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w5NTgyNnwwfDF8c2VhcmNofDN8fGRvZ3N8ZW58MHx8fHwxNzA4MjkyMjA0fDA&ixlib=rb-4.0.3&q=80&w=200
                      width: 3024
                      height: 4032
                      license:
                        name: FREE
                        link: https://unsplash.com/license
                      id: v0_MCllHY9M
        '401':
          description: Unauthorized
        '402':
          description: Payment Required
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '406':
          description: Not Acceptable
        '429':
          description: Too Many Requests
      parameters:
      - name: query
        description: The search query.
        schema:
          pattern: .
          maxLength: 300
          type: string
          example: dogs
        required: true
        style: form
        explode: false
        in: query
      - name: number
        description: The number of images to return in range [1,100]
        schema:
          format: int32
          minimum: 1
          maximum: 100
          type: integer
          example: 3
        required: false
        style: form
        explode: false
        in: query
      externalDocs:
        description: Read entire docs
        url: https://apileague.com/apis/search-images-api/
      summary: Search Royalty Free Images API
      tags:
      - Media
      description: Search through hundreds of thousands of royalty free images to match any topic you want. The images are returned in a list with the URL, width, and height of the image. Additionally, you can find the license type and link of the image.
      operationId: searchRoyaltyFreeImagesAPI
      deprecated: false
  /search-icons:
    get:
      responses:
        '200':
          description: Success
          headers: {}
          content:
            application/json:
              schema:
                type: object
                properties:
                  icons:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type:
                          - string
                          - 'null'
                        url:
                          type:
                          - string
                          - 'null'
                        thumbnail:
                          type:
                          - string
                          - 'null'
                        width:
                          type: integer
                        height:
                          type: integer
                        license:
                          type: object
                          properties:
                            name:
                              type:
                              - string
                              - 'null'
                            link:
                              type:
                              - string
                              - 'null'
              examples:
                Response:
                  value:
                    icons:
                    - id: '4435839'
                      url: https://static.thenounproject.com/png/4435839-200.png
                      thumbnail: https://static.thenounproject.com/png/4435839-200.png
                      width: 200
                      height: 200
                      license:
                        name: PUBLIC_DOMAIN
                        link: public-domain
                    - id: '4256398'
                      url: https://static.thenounproject.com/png/4256398-200.png
                      thumbnail: https://static.thenounproject.com/png/4256398-200.png
                      width: 200
                      height: 200
                      license:
                        name: PUBLIC_DOMAIN
                        link: public-domain
                    - id: '3675912'
                      url: https://static.thenounproject.com/png/3675912-200.png
                      thumbnail: https://static.thenounproject.com/png/3675912-200.png
                      width: 200
                      height: 200
                      license:
                        name: PUBLIC_DOMAIN
                        link: public-domain
        '401':
          description: Unauthorized
        '402':
          description: Payment Required
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '406':
          description: Not Acceptable
        '429':
          description: Too Many Requests
      parameters:
      - name: query
        description: The search query.
        schema:
          pattern: .
          maxLength: 300
          type: string
          example: cars
        required: true
        style: form
        explode: false
        in: query
      - name: only-public-domain
        description: If true, only public domain icons will be returned.
        schema:
          type: boolean
          example: true
        required: false
        style: form
        explode: false
        in: query
      - name: number
        description: The number of icons to return in range [1,100]
        schema:
          format: int32
          minimum: 1
          maximum: 100
          type: integer
          example: 3
        required: false
        style: form
        explode: false
        in: query
      externalDocs:
        description: Read entire docs
        url: https://apileague.com/apis/search-icons-api/
      summary: Search Icons API
      tags:
      - Media
      description: Search through millions of icons to match any topic you want.
      operationId: searchIconsAPI
      deprecated: false
  /rescale-image:
    get:
      responses:
        '200':
          description: Success
          headers: {}
          content:
            application/octet-stream:
              schema:
                format: binary
                type: string
        '401':
          description: Unauthorized
        '402':
          description: Payment Required
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '406':
          description: Not Acceptable
        '429':
          description: Too Many Requests
      parameters:
      - name: url
        description: The url of the image to be rescaled.
        schema:
          pattern: .
          maxLength: 1000
          type: string
          example: 'https://fastly.picsum.photos/id/63/5000/2813.jpg?hmac=HvaeSK6WT-G9bYF_CyB2m1ARQirL8UMnygdU9W6PDvM '
        required: true
        style: form
        explode: false
        in: query
      - name: width
        description: The desired width of the rescaled image.
        schema:
          format: int32
          minimum: 1
          maximum: 5000
          type: integer
          example: 200
        required: true
        style: form
        explode: false
        in: query
      - name: height
        description: The desired height of the rescaled image.
        schema:
          format: int32
          minimum: 1
          maximum: 5000
          type: integer
          example: 200
        required: true
        style: form
        explode: false
        in: query
      - name: crop
        description: Whether the image should be cropped. If true, the returned image will have exactly the given width and height and some content might have been cropped from the left/right or top/bottom. If this parameter is false, the image will keep its ratio but will be resized to fill the given box. Some content might be outside the box though.
        schema:
          type: boolean
          example: true
        required: true
        style: form
        explode: false
        in: query
      externalDocs:
        description: Read entire docs
        url: https://apileague.com/apis/rescale-image-api/
      summary: Rescale Image API
      tags:
      - Media
      description: Rescale an image to a specific width and height. The image will be resized to fit the specified width and height while maintaining the original aspect ratio unless the crop parameter is set to true. The image will be returned in the same format as the original image.
      operationId: rescaleImageAPI
      deprecated: false
  /detect-color:
    get:
      responses:
        '200':
          description: Success
          headers: {}
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    hex_code:
                      type:
                      - string
                      - 'null'
                    specific_color:
                      type:
                      - string
                      - 'null'
                    main_color:
                      type:
                      - string
                      - 'null'
              examples:
                Response:
                  value:
                  - hex_code: '#b01c20'
                    specific_color: Firebrick
                    main_color: Red
                  - hex_code: '#bfaf9a'
                    specific_color: Thistle Green
                    main_color: Green
                  - hex_code: '#36180d'
                    specific_color: Brown Pod
                    main_color: Brown
        '401':
          description: Unauthorized
        '402':
          description: Payment Required
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '406':
          description: Not Acceptable
        '429':
          description: Too Many Requests
      parameters:
      - name: url
        description: The url of the image for which the colors should be detected.
        schema:
          pattern: .
          maxLength: 1000
          type: string
          example: 'https://fastly.picsum.photos/id/63/5000/2813.jpg?hmac=HvaeSK6WT-G9bYF_CyB2m1ARQirL8UMnygdU9W6PDvM '
        required: true
        style: form
        explode: false
        in: query
      externalDocs:
        description: Read entire docs
        url: https://apileague.com/apis/detect-main-image-color-api/
      summary: Detect Main Image Color API
      tags:
      - Media
      description: 'Detect the main color of an image. The API returns a list of colors and their hex codes. The API supports images in the following formats: JPEG, PNG, and GIF.'
      operationId: detectMainImageColorAPI
      deprecated: false
  /search-vectors:
    get:
      responses:
        '200':
          description: Success
          headers: {}
          content:
            application/json:
              schema:
                type: object
                properties:
                  vectors:
                    type: array
                    items:
                      type: object
                      properties:
                        title:
                          type:
                          - string
                          - 'null'
                        license:
                          type:
                          - string
                          - 'null'
                        author:
                          type:
                          - string
                          - 'null'
                        image_url:
                          type:
                          - string
                          - 'null'
              examples:
                Response:
                  value:
                    vectors:
                    - title: Airplanes
                      license: ATTRIBUTION
                      author: Candy Design
                      image_url: https://img.apileague.com/icons/10507904.svg
                    - title: Model Airplanes
                      license: ATTRIBUTION
                      author: Juicy Fish
                      image_url: https://img.apileague.com/icons/10427558.svg
                    - title: Paper Airplanes
                      license: ATTRIBUTION
                      author: HideMaru
                      image_url: https://img.apileague.com/icons/9051410.svg
        '401':
          description: Unauthorized
        '402':
          description: Payment Required
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '406':
          description: Not Acceptable
        '429':
          description: Too Many Requests
      parameters:
      - name: query
        description: The search query.
        schema:
          pattern: .
          maxLength: 300
          type: string
          example: airplanes
        required: true
        style: form
        explode: false
        in: query
      - name: offset
        description: The number of vectors to skip, between 0 and 1000
        schema:
          format: int32
          minimum: 0
          maximum: 1000
          type: integer
          example: 0
        required: false
        style: form
        explode: false
        in: query
      - name: number
        description: The number of vectors to return in range [1,10]
        schema:
          format: int32
          minimum: 1
          maximum: 100
          type: integer
          example: 3
        required: false
        style: form
        explode: false
        in: query
      externalDocs:
        description: Read entire docs
        url: https://apileague.com/apis/vector-search-api/
      summary: Vector Search API
      tags:
      - Media
      description: Search through over 700,000 free to use vector icons. The license is either "PUBLIC_DOMAIN" or "ATTRIBUTION". If it is "ATTRIBUTION" just attribute the author somewhere in your project.
      operationId: vectorSearchAPI
      deprecated: false
components:
  securitySchemes:
    apiKey:
      name: api-key
      type: apiKey
      in: query
    headerApiKey:
      name: x-api-key
      type: apiKey
      in: header