Public APIs
KeepRule favicon

KeepRule

Finance

Investment principles and quotes from Buffett, Munger, and other masters.

KeepRule's website screenshot

About KeepRule

KeepRule Investment Principles API is a free, open-source API serving curated investment principles from well-known investors including Warren Buffett, Charlie Munger, Benjamin Graham, Peter Lynch, Howard Marks, Ray Dalio, Philip Fisher, and John Templeton. The API consists of static JSON endpoints hosted on GitHub Pages requiring no authentication, covering 100 principles across 18 authors and 13 categories such as Risk Management, Value Investing, and Mental Models. Each principle entry includes the text, author, category, and source.

The API is built by KeepRule, an interactive platform for exploring investment principles that also offers scenario-based learning, principles organized by investor and category, and an AI-powered investment wisdom chat. The API is free for personal and commercial use, with attribution appreciated but not required, and data is provided for educational purposes only, not financial advice.

It is intended for developers who want to integrate investment wisdom content into applications, such as displaying quotes, filtering principles by author or category, or building tools like quizzes or chatbots. Usage examples are provided for cURL, JavaScript, and Python, and related distribution channels include an NPM package, a PyPI package, a Chrome extension, and a Discord bot.

Key features

  • Serves 100 curated investment principles from 18+ investors via static JSON endpoints
  • No authentication required to access the API
  • Endpoints for principles, authors, and categories hosted on GitHub Pages
  • NPM and PyPI packages available for JavaScript and Python integration
  • Principles filterable by author and category in client code

Frequently asked questions

Is this API free to use?

Yes, it is free for both personal and commercial projects, with attribution appreciated but not required.

Do I need an API key or authentication?

No, all endpoints are static JSON files hosted on GitHub Pages and require no authentication.

What data can I access?

The API provides 100 investment principles with author, category, and source, plus lists of authors and categories.

What languages or platforms are supported?

The API can be accessed via plain HTTP requests (cURL) or through provided JavaScript examples, an NPM package, and a PyPI package for Python.

Who is this API for?

It is aimed at developers building tools or apps that want to incorporate curated investment wisdom from investors like Warren Buffett and Charlie Munger.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product