Title: decrease response time of rest api
Last modified: January 7, 2019

---

# decrease response time of rest api

 *  [Mostafa Shahiri](https://wordpress.org/support/users/mostafadeveloper/)
 * (@mostafadeveloper)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/decrease-response-time-of-rest-api/)
 * Hi
 * I am creating a new plugin that uses wordpress REST API for my website. My website
   has high load time, but I think there must be a way to work it faster with REST
   API. I created a function that triggers with rest_api_init action and registers
   routes with calling register_rest_route function. Is there any way to decrease
   response time?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/decrease-response-time-of-rest-api/#post-11061874)
 * Decrease the API response time? There’s little that can be done. Decrease response
   time for a particular task outside the API? Maybe, depending on what you want
   to accomplish. Initializing WP takes a lot of server time no matter what you 
   do, there is simply a lot of overhead involved. If you can fulfill a request 
   without WP code, with just straight PHP, a lot of server time can be saved.
 * Server time does not equate to response time, other factors play into a request
   that is beyond coded solutions. Slow and/or error prone communications, overloaded
   shared hosting servers, whether web server or DB server, etc.

Viewing 1 replies (of 1 total)

The topic ‘decrease response time of rest api’ is closed to new replies.

## Tags

 * [register](https://wordpress.org/support/topic-tag/register/)
 * [response](https://wordpress.org/support/topic-tag/response/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)
 * [time](https://wordpress.org/support/topic-tag/time/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/decrease-response-time-of-rest-api/#post-11061874)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
