Title: API documentation?
Last modified: August 13, 2017

---

# API documentation?

 *  Resolved [eamondaly](https://wordpress.org/support/users/eamondaly/)
 * (@eamondaly)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/api-documentation-2/)
 * I’m trying to write some code to determine whether a given redirect is enabled
   or not. I see there’s an API, but I can’t seem to find any documentation on it.
   Does anyone have a reference on the endpoints? Even better if there’s an example
   for getting redirect information from within functions.php.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/api-documentation-2/#post-9405292)
 * There’s no documentation, no. You can use `Red_Item` to get a redirect and access
   values.
 *  Thread Starter [eamondaly](https://wordpress.org/support/users/eamondaly/)
 * (@eamondaly)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/api-documentation-2/#post-9405304)
 * Red_Item worked perfectly for my needs. Thanks for the ultra-quick reply!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘API documentation?’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 2 replies
 * 2 participants
 * Last reply from: [eamondaly](https://wordpress.org/support/users/eamondaly/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/api-documentation-2/#post-9405304)
 * Status: resolved