Help Gathering Single Field from Wordpress API

Hi, I have an application that is able to query a Wordpress API and return back everything about a given URL. However, I really only want to gather one field ‘date’. I’m using a standard HTTP object to make the query and have it setup as referenced in the screenshots below.

When I put the phrase ‘date’ in the “Request Content” field it throws a malformed JSON error. I know it’s something silly probably, but I’m having a hard time figuring it out.

Here is the referenced URL
https://www.thebewitchinkitchen.com/wp-json/wp/v2/posts/

Can anyone help me figure out if or how I can gather just the date field without returning the entire contents and meta for the page?


I want to grab just the date field as shown here in SwaggerHub

When I configure the system like this, I get JSON errors.

TIA!!!

Leave the Body type empty, since you are not sending any data.

Then, post your output bundle here.

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module and select “Download output bundles”.
Screenshot_2023-10-06_141025

A.

Save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
Uploading it here will look like this:

bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted output bundle in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

2 Likes

Hi @samliew

The system doesn’t seem to allow me to upload .txt files through the upload function in this chat…it will only allow certain file types for me. Here is a screenshot of the input bundle. I’ll keep trying to see if I can figure out the txt upload as well. Thanks!

Here’s the formatted code as well for the input bundle. The output bundle is too large to paste here and just throws an error. I will have to try and figure out the txt upload thing.

[
    {
        "ca": null,
        "qs": [
            {
                "name": "slug",
                "value": "/super-bowl-snacks/"
            }
        ],
        "url": "https://www.staysnatched.com/wp-json/wp/v2/posts",
        "gzip": true,
        "method": "get",
        "headers": [
            {
                "name": "Content-Type",
                "value": "application/json"
            }
        ],
        "timeout": null,
        "useMtls": false,
        "authPass": null,
        "authUser": null,
        "bodyType": null,
        "serializeUrl": false,
        "shareCookies": false,
        "parseResponse": true,
        "followRedirect": true,
        "useQuerystring": false,
        "followAllRedirects": false,
        "rejectUnauthorized": true
    }
]

Can you get to the output bundle txt file through this Google Drive Link?