Cat Facts
An API for facts about cats
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
An API for facts about cats
Endpoints 4
Facts
- GETGet Random Fact
/factReturns a random fact - GETGet a list of facts
/factsReturns a a list of facts
Breeds
- GETGet a list of breeds
/breedsReturns a a list of breeds
MCP
- POSTMCP server endpoint (JSON-RPC 2.0)
/mcpModel Context Protocol (MCP) server exposing this API to AI clients over Streamable HTTP. Point an MCP-capable client at the /mcp endpoint. Available tools:…
API details
- Base URL
https://catfact.ninja- Authentication
- None declared in the description
- Operations
- 4 operations on 4 pathsGET 3POST 1
- Main resources
- Facts 2Breeds 1MCP 1
- Response formats
application/json- Description format
- OpenAPI 3.0.0, API version
1.0.0 - Links
- OpenAPI document
How to test the Cat Facts in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Cat Facts collection, without the publisher's secrets.
- Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
- Send a requestPick an endpoint, for example “Get Random Fact” (GET /fact), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Cat Facts?
An API for facts about cats It is listed under Data & analytics and has 4 endpoints.
Who publishes the Cat Facts?
It is listed from Catfact's public API description (an OpenAPI document), not published by Catfact on Swastik Codes. Anyone who controls catfact.ninja can claim the profile by adding a DNS TXT record.
What is the base URL of the Cat Facts?
Requests go to https://catfact.ninja. Endpoint paths are added to this base URL.
How do I authenticate with the Cat Facts?
Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.
How many endpoints does the Cat Facts have?
4 operations on 4 paths (3 GET, 1 POST). The largest groups are Facts, Breeds, MCP.
Is forking the Cat Facts free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.