Title: Rest api wordpress images
Last modified: January 4, 2023

---

# Rest api wordpress images

 *  [vruyrusaribekyan](https://wordpress.org/support/users/vruyrusaribekyan/)
 * (@vruyrusaribekyan)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/rest-api-wordpress-images/)
 * how can i do wordpress API in order to make a request from the android application
   to get pictures from the folder in which they are uploaded
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frest-api-wordpress-images%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Faisal Ahammad](https://wordpress.org/support/users/faisalahammad/)
 * (@faisalahammad)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/rest-api-wordpress-images/#post-16342072)
 * Hi [@vruyrusaribekyan](https://wordpress.org/support/users/vruyrusaribekyan/)
   
   To make a request to the WordPress API from your Android application, you will
   need to do the following:
 * 1. Make sure the WordPress site has the WordPress REST API enabled. By default,
   it’s always enabled.
 * 2. In your Android application, use an HTTP client library such as Volley or 
   Retrofit to make a GET request to the WordPress site’s API endpoint. The endpoint
   for getting a list of media items (such as images) is /wp-json/wp/v2/media. You
   can add query parameters to the request to filter the results, such as by search
   terms or author.
 * 3. In the response, you will receive a JSON object with a list of media items.
   You can then parse this object and extract the URLs of the images you want to
   display in your app.
 *  [Akramul Hasan](https://wordpress.org/support/users/wpfy/)
 * (@wpfy)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/rest-api-wordpress-images/#post-16342317)
 * Hello [@vruyrusaribekyan](https://wordpress.org/support/users/vruyrusaribekyan/)
   
   The most important part here is to add appropriate arguments into the endpoint.
   Not sure, you can query by folder, but may be you can do it by date.[https://developer.wordpress.org/rest-api/reference/media/#arguments](https://developer.wordpress.org/rest-api/reference/media/#arguments)
   Best of luck.Regards

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

The topic ‘Rest api wordpress images’ is closed to new replies.

## Tags

 * [android](https://wordpress.org/support/topic-tag/android/)
 * [api](https://wordpress.org/support/topic-tag/api/)
 * [API REST](https://wordpress.org/support/topic-tag/api-rest/)
 * [images](https://wordpress.org/support/topic-tag/images/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 3 participants
 * Last reply from: [Akramul Hasan](https://wordpress.org/support/users/wpfy/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/rest-api-wordpress-images/#post-16342317)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
