Cataas API - PublicAPI

PublicAPISearchSearchHomeArticlesToolsSubmit APIOpen menuHomepageArticlesToolsSubmit
  1. APIs
  2. Animals
  3. Cataas
CataasCataas

Animals

Visit WebsiteAuthentication🔒 UnknownHTTPs YesCORS No

Overview

The Cataas API provides a collection of endpoints to retrieve random cat images with various filters and customization options. Users can fetch cat images in different sizes, with specific filters applied, or even in HTML or JSON format.

Authentication

Authentication details are not mentioned on the webpage, indicating that the API may not require authentication for accessing its endpoints.

Base URL

The base URL for accessing the Cataas API is https://cataas.com/.

Endpoints

  1. Random Cat with Image Type

    • Endpoint: /cat?type=:type
    • Example Request: https://cataas.com/cat?type=xsmall
    • Example Response: A random cat image with the specified type (e.g., xsmall).
  2. Random Cat with Image Filter

    • Endpoint: /cat?filter=:filter
    • Example Request: https://cataas.com/cat?filter=blur
    • Example Response: A random cat image with the specified filter applied (e.g., blur).
  3. Random Cat with Custom Filters

    • Endpoint: /cat?filter=custom&brightness=:brightness&lightness=:lightness&saturation=:saturation&hue=:hue
    • Example Request: https://cataas.com/cat?filter=custom&brightness=50&lightness=80&saturation=75&hue=90
    • Example Response: A random cat image with custom filters applied for brightness, lightness, saturation, and hue.
  4. Random Cat with RGB Filters

    • Endpoint: /cat?filter=custom&r=:red&g=:green&b=:blue
    • Example Request: https://cataas.com/cat?filter=custom&r=255&g=0&b=0
    • Example Response: A random cat image with custom filters applied for red, green, and blue channels.
  5. Random Cat with Custom Size

    • Endpoint: /cat?width=:width or /cat?height=:height
    • Example Request: https://cataas.com/cat?width=300 or https://cataas.com/cat?height=200
    • Example Response: A random cat image with the specified width or height.
  6. Random Cat in HTML

    • Endpoint: /cat?html=true
    • Example Request: https://cataas.com/cat?html=true
    • Example Response: A random cat image embedded in an HTML page, suitable for social media platforms.
  7. Random Cat in JSON

    • Endpoint: /cat?json=true
    • Example Request: https://cataas.com/cat?json=true
    • Example Response: A random cat image in a JSON object.
  8. Mix of Different Options

    • Endpoint: /cat/gif/says/Hello?filter=mono&fontColor=orange&fontSize=20&type=square
    • Example Request: https://cataas.com/cat/gif/says/Hello?filter=mono&fontColor=orange&fontSize=20&type=square
    • Example Response: A mix of various options with a cat image saying "Hello" in a square format.

Related APIs

in Animals

  • WoRMS

    WoRMS

    Animals

    Authoritative list of marine species

  • HTTP Status Dogs

    HTTP Status Dogs

    Animals

    Dogs for every HTTP response

  • Foxes

    Foxes

    Animals

    Random fox images with multiple

  • Dog Pics

    Dog Pics

    Animals

    Pictures of dogs based on

  • Zoo Animals

    Zoo Animals

    Animals

    Facts and pictures of zoo

  • xeno-canto

    xeno-canto

    Animals

    Bird recordings

  • The Dog

    The Dog

    Animals

    A public service all about

  • Articles

    • Cross-Origin Resource Sharing (CORS)

      Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources on a web page

    • What is an API key?

      An application programming interface key (API key) is a unique identifier used to authenticate a

    • What is OAuth?

      OAuth 2.0 is the industry-standard protocol for authorization. OAuth 2.0 focuses on client developer simplicity

    API Tools

    • REST-Assured

      API Automation

    • SoapUI

      API Testing

    • Postman

      API Client

    Tag » How To Use Cataas Api