Stanford Encyclopedia Search

The Stanford Encyclopedia Search API allows you to search for and retrieve detailed information from the Stanford Encyclopedia of Philosophy based on your query.

Base URL

"https://openapi-idk8.onrender.com/"

Search Endpoint

GET `/stanford/:searchKeyword`

Description: Searches for information in the Stanford Encyclopedia of Philosophy based on the provided keyword.

Path Parameters

  • searchKeyword (required): The keyword to search for in the Stanford Encyclopedia.

Sample Request

GET `https://openapi-idk8.onrender.com/stanford/ethics`

Sample Response

{
  "api_name": "Stanford Encyclopedia",
  "description": "The Stanford Encyclopedia of Philosophy organizes scholars from around the world in philosophy and related disciplines to create and maintain an up-to-date reference work.",
  "author": "OpenAPI",
  "title": "Ethics",
  "url": "https://plato.stanford.edu/entries/ethics/",
  "mainContent": "Ethics, the philosophical discipline concerned with what is morally good and bad and morally right and wrong. Its subject consists of fundamental issues of practical decision making, and its major concerns include the nature of ultimate value and the standards by which human actions can be judged right or wrong.",
}

The response includes detailed information about the searched topic in the Stanford Encyclopedia, including the title, URL, and main content.

Error Handling

404 Not Found: Returned when no results are found for the provided search keyword.

{
  "error": "No results found"
}

500 Internal Server Error: Returned when there is an issue processing the request.

{
  "error": "An error occurred while fetching data"
}