Title: Authenticating REST API from python
Last modified: February 7, 2017

---

# Authenticating REST API from python

 *  [johnbilbro](https://wordpress.org/support/users/johnbilbro/)
 * (@johnbilbro)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/authenticating-rest-api-from-python/)
 * What is the best way to authenticate to the REST API from python running on my
   local machine? I don’t want to use basic authentication, so from what I can see
   that leaves me with either OAuth or cookie authentication. I tried using the 
   [python wordpress-api](https://pypi.python.org/pypi/wordpress-api) library, with
   the [WP OAuth Server](https://wordpress.org/plugins/oauth2-provider/) on the 
   server side, but I haven’t been able to get it to authenticate. Is this the best
   way to authenticate from a python script, or is there a better way?
 * Thanks
    -  This topic was modified 9 years, 4 months ago by [johnbilbro](https://wordpress.org/support/users/johnbilbro/).
      Reason: clarified question

The topic ‘Authenticating REST API from python’ is closed to new replies.

## Tags

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

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 0 replies
 * 1 participant
 * Last reply from: [johnbilbro](https://wordpress.org/support/users/johnbilbro/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/authenticating-rest-api-from-python/)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
