Persian
JSONPlaceholder
Persian Fake REST/GraphQL API for Testing and Prototyping
Based on JSONPlaceholder
Persian Fake REST/GraphQL API for Testing and Prototyping
Based on JSONPlaceholder
fetch('https://jsonplaceholder.ir/users/1')
.then(response => response.json())
.then(json => console.log(json))
This is a free online REST/GraphQL API that returns Persian data (RTL data). You can use whenever you need some fake data.
All HTTP methods, GET, POST, PUT, PATCH and DELETE and also GraphQL
Returns Persian (Right to Left) fake data as JSON file format
It’s free and made with love for Iranian developers
PersianJSONPlaceholder comes with a set of 6 common resources:
All HTTP methods are supported. You can view other details here.
All of the requests are available in https://jsonplaceholder.ir/graphql
with
different
queries, read more here.
// For example:get all data for one topic
let queryAllPosts = "{ posts { title body } }"
let queryAllComments = "{ comments { name email } }"
// For example:get specific data by id
let queryOneAlbum = "{ album(id:4) { userId title } }"
let queryOneTodo = "{ todo(id:6) { title completed } }"
// Fetch data as JSON file format
fetch('https://jsonplaceholder.ir/graphql', {
method: 'POST',
body: JSON.stringify(queryOneTodo)
})
.then(response => response.json())
.then(json => console.log(json))