← Wordpress.org

Search Posts with Wordpress.org API

Pipedream makes it easy to connect APIs for Wordpress.org and 900+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Search Posts with the Wordpress.org API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Search Posts with the Wordpress.org API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Search Posts action
    1. Connect your Wordpress.org account
    2. Optional- Configure Search Query
    3. Optional- Select a Author
    4. Optional- Select a Exclude Author
    5. Optional- Select one or more Status
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Search Posts with Wordpress.org API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Wordpress.org
 
Try it
Search Posts with Wordpress.org API on New Message from Discord API
Discord + Wordpress.org
 
Try it
Search Posts with Wordpress.org API on New Message In Channels from Slack API
Slack + Wordpress.org
 
Try it
Search Posts with Wordpress.org API on New Message in Channel from Discord Bot API
Discord Bot + Wordpress.org
 
Try it
Search Posts with Wordpress.org API on New Submission from Typeform API
Typeform + Wordpress.org
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Search Posts on Wordpress.org
Description:Searches for specific posts. [See the docs here](https://developer.wordpress.org/rest-api/reference/posts/#list-posts)
Version:0.0.1
Key:wordpress_org-search-posts

Code

import wordpress from "../../wordpress_org.app.mjs";

export default {
  key: "wordpress_org-search-posts",
  name: "Search Posts",
  description: "Searches for specific posts. [See the docs here](https://developer.wordpress.org/rest-api/reference/posts/#list-posts)",
  version: "0.0.1",
  type: "action",
  props: {
    wordpress,
    search: {
      propDefinition: [
        wordpress,
        "search",
      ],
    },
    author: {
      propDefinition: [
        wordpress,
        "author",
      ],
    },
    authorExclude: {
      propDefinition: [
        wordpress,
        "author",
      ],
      label: "Exclude Author",
      description: "Ensure result set excludes posts assigned to specific authors",
    },
    statuses: {
      propDefinition: [
        wordpress,
        "status",
      ],
      type: "string[]",
      description: "Limit result set to posts assigned one or more statuses. Defaults to `publish`",
    },
  },
  async run({ $ }) {
    const params = {
      search: this.search,
      author: this.author,
      authorExclude: this.authorExclude,
      statuses: this.statuses,
    };
    const results = [];
    let next, page = 1;
    do {
      const posts = await this.wordpress.searchPosts(params, page);
      next = posts?._paging?.links?.next;
      delete posts._paging;
      results.push(...posts);
      page++;
    } while (next);

    $.export("$summary", `Found ${results?.length} post(s)`);

    return results;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Wordpress.orgwordpressappThis component uses the Wordpress.org app.
Search Querysearchstring

Limit results to those matching a string

AuthorauthorstringSelect a value from the drop down menu.
Exclude AuthorauthorExcludestringSelect a value from the drop down menu.
Statusstatusesstring[]Select a value from the drop down menu.

Authentication

Wordpress.org uses API keys for authentication. When you connect your Wordpress.org account, Pipedream securely stores the keys so you can easily authenticate to Wordpress.org APIs in both code and no-code steps.

This integration requires the Application Passwords plugin to be installed in your Wordpress instance which allows you to authenticate users without providing their passwords directly.
The URL field if for your domain such as https://[URL]/wp-json/wp/v2/posts/POST_ID.

About Wordpress.org

Self hosted Wordpress

More Ways to Use Wordpress.org

Actions

Create Post with the Wordpress.org API

Creates a post. See the docs here

 
Try it
Create User with the Wordpress.org API

Creates a user. See the docs here

 
Try it
Update Post with the Wordpress.org API

Updates a post specified by its ID. See the docs here

 
Try it