Since it seems the API is closed source and there may not be a way to get only a single option then the only other option is parsing the response.
I hear jq is the way to go for parsing JSON within the shell, but I don’t want to add dependencies and grep seems to have done the job:
curl -v -d 'action=plugin_information&request[slug]=custom-comment-links' https://api.wordpress.org/plugins/info/1.1/ --stderr - | grep -o '"last_updated":"[^"]*' | grep -o '[^"]*$'
You can replace last_updated
with anything you’d like 🙂
Related Posts:
- How do I access the body of a WP API request in a custom route?
- Uploading media with the REST API
- wp rest api v2 return json_no_route
- WP-REST API not returning all its endpoints, 404 on documented endpoints
- WP REST API V2 – Modifying responses
- OAuth signature does not match
- How to upload image to wordpress from external page
- Add media with WP-Rest-API v2 II
- WordPress API returns empty page when page is less than X-WP-TotalPages
- WP API to fetch all records for /posts, /media, /categories
- WP Rest API get page from path
- backbone fetch() not working
- WP-API user email change confirmation
- No featured media in API request
- Syntax for REST API to have bold formatted and multiple lines in product description [closed]
- WP Rest get all by post within that category, by category name not by cat ID
- Add Data to Response of WP-JSON Root
- OAuth1 empty “authentication” in /wp-json
- WP – API – OAuth 1.0a Server, How to implement with AngularJS?
- Are there events pub/sub for external application to subscribe to file/pdf uploads by wordpress admin
- WP API and Proxy
- why woocommerce api only do not upload images from local computer? [closed]
- Uploading a media item with the wp-json API to a specific path
- ng-repeat is not returning a list of posts
- What request is WordPress sending on theme update?
- Is WP API going to be around in the long term?
- How to Create a Post from localfiles?
- Get a complete list of all categories using node-wpapi
- upload image to wp-api
- WP-API call function
- wordpress api make 2 custom post type with single request
- Update Custom Post Type Metadata Wp Rest API
- WP-API Content showing null
- How to retreive/set wordpress page html?
- How can I use React packages with the clasic editor?
- How do I get a YouTube video thumbnail from the YouTube API?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- How to fix “SSL certificate problem: self signed certificate in certificate chain” error?
- performing HTTP requests with cURL (using PROXY)
- How to fix libeay32.dll was not found error
- Can curl make a connection to any TCP ports, not just HTTP/HTTPS?
- How do I POST JSON data with cURL?
- How do I measure request and response times at once using cURL?
- Curl : connection refused
- file_get_contents( ) not working
- Curl Error 56 “Failure when receiving data from the peer” while sending .tar.gz File
- Hiding WordPress REST API v2 endpoints from public viewing
- I found this in a plugin. What does it do? is it dangerous?
- WP-API v2 Custom Endpoint Response Formatting
- Implementing Isomorphic JavaScript (React JS) in WordPress?
- How to loop through JSON data in wordpress WP REST API
- WP API V2 returning Invalid User ID
- How can I use CURLOPT_USERPWD in wp_remote_post?
- WordPress wp-json API – Custom Post Type returns 403
- wordpress custom endpoint multiple params
- WP-API and Basic Auth returning 403 on POST but not GET
- How to automate filing a form as a user
- cURL – How to send and fetch data in WordPress
- How to retrieve custom meta term of category taxonomy from WP Rest API?
- Gutenberg Custom Block Getting All Posts
- PHP Fatal error: Cannot use object of type WP_REST_Response as array in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Creating login session via CURL
- File Type Is Not Permitted – Cronjob
- How to add WP API and JS featured image attachment
- Where Does WordPress Make cURL Requests? How To Add cURL Option
- export a csv file from the database with a cronjob
- PHP to Handle API Return instead of print
- WP API post__not_in is not working
- get post content of particular post by url
- How to replace a function using a child theme?
- rest_no_route on custom API endpoint wordpress
- WordPress REST Api get posts by ID
- How to run wp cli from a wp hook?
- How to send a HTTP Post request using PHP Curl and WordPress
- How to use Python to create a Post in WordPress?
- update_callback is not working in register_rest_field
- cURL error 6 on news area, and also won’t auto update
- What WP-API authentication method should I use to interact with anonymous / not-logged visitors?
- Outputting HTML elements through WP-API
- How to make an API call to a custom post type but filtering by meta value?
- Check if user can in javascript
- CURL error with REST API
- Getting Download failed. cURL error 28: Connection timed out after 10001 milliseconds
- Escape commas in REST API
- CallBack URL for payment gateway redirecting to homepage instead of executing callback function
- Adding Amchart Interface to WordPress API
- Deleting media using the WordPress Rest API
- Create Posts from API response without duplicates
- Extending the API I created to return category names
- How to properly set a value to meta fields of a custom post type in WP-API/node-wpapi REST API?
- How to send user data from one website to another
- Fetch only categorized posts
- Best Way to detect unique posts in wp rest api
- WP-API + JS Backbone client – how to update post meta
- Does WordPress perform better with curl installed?
- WordPress Plugin: Where should I put my cookies for cURL?
- cURL error 28: SSL connection timeout while can download the plugin file
- XMLRPC: How to retrieve possible custom fields for a new post?
- Displaying a remote SSL certificate details using CLI tools
- How can I enforce user to use Application password to generate JWT token? [closed]