Add a page number query to your request URL, and continue querying next page numbers until you get an empty result:
<your_wordpress_install_base_url>/wp-json/wp/v2/media/?per_page=100&page=2
Mark’s suggestion to consider requesting less than 100 per page may be a good one. So for example you may want to do your query this way:
<your_wordpress_install_base_url>/wp-json/wp/v2/media/?per_page=25&page=3
Note also that (for me at least) these query URLs work if constructed as just ~/media?per_page=3
(instead of ~/media/?per_page=3
). I don’t know whether one or the other is preferred.
Thanks, incidentally, for the /media/?per_page=100
part of your example. I’d been stumped about getting empty results when querying just /media
🙂
Related Posts:
- WP Rest API max limit include parameter?
- is_user_logged_in not working from WP-API (wp-json)
- Fetch only categorized posts
- WP_Comment_Query pagination, delving into the unknown
- Sort posts by category name and title
- Getting all user metadata from user
- ajax category filter
- Display posts the match taxonomy term linked from wp_list_categoies?
- WordPress 4.9.5 PHP intermittent warning trim() expects parameter 1 to be string, array given
- Limit WP_Query to only X results (total, not per page)
- How to disable main query?
- Use post__in and post__not_in together?
- WP_Query on different site in a multisite setup
- Order by the results of a function with WP_query
- WP_query category__in not working, only pulls from first category
- tax_query shows no results if nothing is selected
- meta_key and meta_value not working together
- Select random post every day
- get_query_var returns null
- post thumbnail not showing up with shortcode
- How can I order Wp_Query hierarchically?
- Meta query with JSON value
- Prevent duplicate post from dynamic multiple loops
- How to get count of posts assigned to given category?
- Can I count matches without doing a query?
- Wp redirect to url with ampersand string
- Get attachment by meta_key value
- Complex WP_Query order request: DESC by day, but then ASC by time
- How to detect if query is runned from widget?
- Using meta_query with multiple keys and compare values
- Change query based on post type while staying in loop
- Sort wordpress custom posts based on meta value
- Custom Pagination Layout for Elementor widget
- $WP_Query: How to display excerpt on first post only
- How to properly reset a nested WP_Query query
- How to make search for posts using get method?
- Is there a reason why Pages are not publicly_queryable?
- How Can I Change The Tax Query For The Main Loop For Taxonomy Archives?
- Exclude some authors from query
- apply custom where to the default $wp_query
- wp_query serialised array
- Conditional operator OR not working with custom fields
- How to add custom meta to ‘pre_get_terms’?
- How do I check if an article is popular this week?
- Using Transients
- Should I reset $wp_query?
- how to write wordpress query for multiple metakeys checking?
- Sorting search results with custom dropdown
- Posts query according to meta box date
- create metabox to activate slider
- querying posts with a custom status
- problem with loop
- Display post meta conditionally based on it’s value
- WP_Query will not display draft posts
- How can i show pagenavi in my author.php?
- Randomly select one of last 3 posts
- Query multiple meta key values for template
- How do I get the content of a custom instance of WP_Query?
- Change post query onclick
- Using WP_Query with multiple loops on one page in search.php
- Display upcoming events in the next 30 days by querying posts with timestamp in custom meta
- Order by post meta not working with pre_get_posts filter
- Searching not only by post name but also category
- WP_Query, Paginate by Custom Field
- Query post and sort by custom value calculated with custom field on cpt
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- WordPress private post won’t display to other admins
- Only show tag with the same id as the post
- Search Exact on WordPress – Relevannsi Solution Not Working
- WP_Query() not working as expected
- How to sort store location by specific category order in WP store locations
- Sort by price wpdb
- Posts per Page not working
- Trouble with serialized metadata
- Show a message if there are no active posts in category
- Get authors list and sort them by recent posts
- Custom filter from post meta
- Problem with my loops
- Pagination not working in custom loop WP_Query
- Multiple wpostmeta.meta_key
- Saving custom fields for WP_Query to retrieve
- Modify query to exclude certain ids and certain parents and its corresponding children
- How to fix pagination for custom loops on front-page.php
- Filter posts/pages by user_role array
- I need value of saved meta to display next to the post it is associated with
- Post Query not working after updating to 4.1
- Cannot order by in WP_Query
- How to sort a WP_Query array by post_name after an array_merge();
- Comment count same for every post in homepage WP_Query
- Search Query that Includes Custom Table
- Pagination with WP_Query not working
- new WP_Query based on average values of meta fields
- WP_Query breaks pagination
- wpdb LIKE request shows all database data
- Can’t seem to get an else statement correct? [closed]
- query_vars category_name only display one catgory out of multiple categories
- Incorrect posts displayed on category page
- How to include custom fields in wordpress search
- Extend search query to search meta keys values based on search string
- AJAX multiple search boxes not merging with array merge