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?
- How do I POST JSON data with cURL?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- HTTP POST and GET using cURL in Linux [duplicate]
- How do I POST JSON data with cURL?
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- How do I install and use cURL on Windows?
- Is there a way to follow redirects with command line cURL?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- How to fix “SSL certificate problem: self signed certificate in certificate chain” error?
- How to send a header using a HTTP request through a cURL call?
- How to use Python to execute a cURL command?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- How can I set the request header for curl?
- How to use Python to execute a cURL command?
- How to define the basic HTTP authentication using cURL correctly?
- How to use the curl command in PowerShell?
- https connection using CURL from command line
- performing HTTP requests with cURL (using PROXY)
- How to define the basic HTTP authentication using cURL correctly?
- Curl command for https ( SSL )
- How to do a PUT request with cURL?
- How to display request headers with command line curl
- How to capture cURL output to a file?
- Using cURL with a username and password?
- PHP + curl, HTTP POST sample code?
- What is the curl error 52 “empty reply from server”?
- How to fix libeay32.dll was not found error
- Can curl make a connection to any TCP ports, not just HTTP/HTTPS?
- cURL to show response headers after submiting a file
- curl: (6) Could not resolve host: google.com; Name or service not known
- Call to undefined function curl_init().?
- How do I get a YouTube video thumbnail from the YouTube API?
- How to use cURL to send Cookies?
- wget/curl large file from google drive
- How do I POST JSON data with cURL?
- CURL ERROR: Recv failure: Connection reset by peer – PHP Curl
- curl: (35) SSL connect error
- cURL error 60: SSL certificate: unable to get local issuer certificate
- Binary Data Posting with curl
- How do I make curl ignore the proxy?
- What exactly is cacert.pem for?
- curl POST format for CURLOPT_POSTFIELDS
- tar: Unrecognized archive format error when trying to unpack flower_photos.tgz, TF tutorials on OSX
- curl : (1) Protocol https not supported or disabled in libcurl
- SSL CA cert (path? access rights?)
- HTTP Error 411, The request must be chunked or have a content length
- Curl not recognized as an internal or external command, operable program or batch file
- PHP cURL custom headers
- How do I measure request and response times at once using cURL?
- PHP cURL HTTP PUT
- Why does cURL return error “(23) Failed writing body”?
- Curl : connection refused
- file_get_contents( ) not working
- Error:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
- Can PHP cURL retrieve response headers AND body in a single request?
- Setting Curl’s Timeout in PHP
- How to disable cURL SSL certificate verification
- Getting error in Curl – Peer certificate cannot be authenticated with known CA certificates
- How to POST JSON Data With PHP cURL?
- cURL request in Laravel
- curl: no URL specified for restful api