Persian
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))

Introduction

This is a free online REST/GraphQL API that returns Persian data (RTL data). You can use whenever you need some fake data.

HTTP + GraphQL

All HTTP methods, GET, POST, PUT, PATCH and DELETE and also GraphQL

Persian data

Returns Persian (Right to Left) fake data as JSON file format

With love

It’s free and made with love for Iranian developers

Routes

All HTTP methods are supported. You can view other details here.

Use JSONPlaceholder with GraphQL

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))