Skip to content
项目

关于

A simple, no fuss, no mess, no auth playground for learning RESTful or GraphQL APIs.

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Sample APIs

Screenshot

Purpose

Understanding RESTful APIs is hard enough without wrestling with authentication at the same time. SampleAPIs is a free playground of sample REST endpoints for learning: no keys, no tokens, no sign-up. Pick an endpoint and start fetching. If you don't find data you like, contribute your own.

How to use the service

Choose an API, say futurama, then choose a resource, say characters:

const resp = await fetch("https://api.sampleapis.com/futurama/characters");
const data = await resp.json();
console.log(data);

Want to search? Filter by any field, including nested ones:

const resp = await fetch("https://api.sampleapis.com/futurama/characters?name.first=Bender");
const data = await resp.json();
console.log(data);

You also have full CRUD — POST, PUT, PATCH, and DELETE all work and actually persist. The data resets to its original state on a regular basis (and whenever new endpoints ship), so experiment freely. The full query syntax, pagination, and error shapes are documented in the API docs.

Documentation

The project wiki covers the whole system in short, linked pages — architecture, the API surface, the data lifecycle, the React client, operations, and the reasoning behind the design.

Running locally

Requires Node.js ≥ 26.

npm install && npm install --prefix server && npm install --prefix client
npm run dev

API at http://localhost:5555, site at http://localhost:4444. Details (including the Docker setup) live in Local Development.

Contributing

The most valued contribution is a new dataset. Start with the Contributing guide and Adding an Endpoint. For history, see the Change Log.

Disclaimers

  • The data on this site is for educational purposes only and is not owned by SampleAPIs.com.
  • Data is reset back to its original state on a regular basis. If you want your additions to persist as part of the collection, contribute them via pull request.
  • By using SampleAPIs.com you agree to the following terms: this service is provided as-is. It might change or be discontinued without prior notice. The maker of this service can't be held liable in any way for any reason.

探索相关项目

加载中…