Public APIs
Programming Quotes favicon

Programming Quotes

Personality

Programming Quotes API for open source projects.

Programming Quotes's website screenshot

About Programming Quotes

Programming Quotes API is an open-source REST API for retrieving programming-related quotes, hosted at programming-quotes-api.azurewebsites.net. It provides public endpoints to fetch a random quote, list quotes with pagination and filtering by author, and retrieve a single quote by ID.

The API also includes protected routes that require a JWT token obtained through an authentication endpoint accepting email and password. These authenticated routes allow adding a quote to favorites, voting on a quote (a numeric value from 1 to 5), adding new quotes with author, text, and optional source fields, updating existing quotes, and deleting quotes.

The project is built with Node.js and MongoDB, and is intended for developers who want to integrate programming quotes into other applications or contribute to the open-source codebase. Setup for local development requires Node.js, a MongoDB database, and environment variables including a database connection string and JWT secret.

Key features

  • Fetch a random programming quote via GET /api/quotes/random
  • Retrieve paginated quotes with page and quotesPerPage query parameters
  • Filter quotes by author
  • Add, update, and delete quotes through token-protected routes
  • Vote on and favorite quotes with an authenticated JWT token
  • Register or log in via /api/auth/token to obtain a JWT

Frequently asked questions

Is this API free to use?

Yes, it is an open source Programming Quotes API hosted at programming-quotes-api.azurewebsites.net with no mention of pricing or paid tiers.

How do I authenticate for protected routes?

You log in or register via POST /api/auth/token with an email and password, which returns a JWT token to include as a Bearer token in the Authorization header.

What technology stack does this use?

It's a Node.js API backed by a MongoDB database, set up locally with npm install and npm run dev.

Can I contribute new quotes or features?

Yes, the project is open source and welcomes contributors to suggest or implement new features, and new quotes can be added via the POST /api/quotes route.

Can I filter or paginate the quotes I retrieve?

Yes, GET /api/quotes supports page and quotesPerPage parameters for pagination and an author parameter for filtering.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product