Movatterモバイル変換


[0]ホーム

URL:


Check my new project💧 MistCSS write React components with 50% less code

JSONPlaceholder

{JSON} Placeholder

Free fake and reliable API for testing and prototyping.

Powered byJSON Server +LowDB.

Serving ~3 billion requests each month.

Sponsors

JSONPlaceholder is supported by the following companies andSponsors on GitHub, check them out 💖

Your company logo here

Try it

Run this code here, in a console or from any site:

fetch('https://jsonplaceholder.typicode.com/todos/1')      .then(response => response.json())      .then(json => console.log(json))
{}

Congrats! You've made your first call to JSONPlaceholder. 😃 🎉

When to use

JSONPlaceholder is a free online REST API that you can usewhenever you need some fake data. It can be in a README on GitHub, for a demo on CodeSandbox, in code examples on Stack Overflow, ...or simply to test things locally.

Resources

JSONPlaceholder comes with a set of 6 common resources:

/posts100 posts
/comments500 comments
/albums100 albums
/photos5000 photos
/todos200 todos
/users10 users

Note: resources have relations. For example: posts have many comments, albums have many photos, ... seeguide for the full list.

Routes

All HTTP methods are supported. You can use http or https for your requests.

GET/posts
GET/posts/1
GET/posts/1/comments
GET/comments?postId=1
POST/posts
PUT/posts/1
PATCH/posts/1
DELETE/posts/1

Note: seeguide for usage examples.

Use your own data

With our sponsorMockend and a simple GitHub repo, you can have your own fake online REST server in seconds.


[8]ページ先頭

©2009-2025 Movatter.jp