Attention!
Copied to clipboard.

FREE Test API

REST APIs for your testing needs, and more...

Hero Illustration
An Illustration of Website

Sponsors

TheTestRequest is a free API & bellow are the companies helping keep it up & running. Show some love ♡ & check them out!

Resources

TheTestRequest has following resourses

Resources are relational and APIs support nested responses in both JSON & XML format.

For more details, see Usage Guide.

Routes

All REST methods are supported.

For JSON response (default)

  • GET - /authors
  • GET - /authors/1
  • POST - /authors
  • PUT - /authors/1
  • PATCH - /authors/1
  • DELETE - /authors/1

For XML response

You can also include nested resources using include param.

For more details, see Usage Guide.

Try it!

Make your first request to TheTestRequest.

This example uses fetch API to get data, You can use whatever you want.

                
                    fetch('https://thetestrequest.com/authors/1')
                      .then(response => response.json())
                      .then(json => console.log(json));
                
            

Run Script

Yayy! You have made your first request to TheTestRequest API.

                    
                        {
                          "id": 1,
                          "name": "Msgr. Doris Kuhn",
                          "email": "shawnda@goldner.com",
                          "avatar": "https://robohash.org/oditducimuslabore.png?size=300x300&set=set1",
                          "created_at": "2021-06-19T10:07:10.061Z",
                          "updated_at": "2021-06-19T10:07:10.061Z"
                        }
                    
                

For more examples visit Usage Guide.