← Wordpress.org

Search Posts with Wordpress.org API

Pipedream makes it easy to connect APIs for Wordpress.org and 1400+ 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 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

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, source-available 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.2
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.2",
  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 below is your WordPress site's domain.

For example, if you have a Wordpress.org site hosted at https://example.com, then enter example.com in the url field below.

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
Get User with the Wordpress.org API

Retrieves information for 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
Update User with the Wordpress.org API

Updates the information of a user. See the docs here

 
Try it

Explore Other Apps

1
-
12
of
1400+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Beta
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Beta
Data Stores
Data Stores
Use Pipedream Data Stores to manage state throughout your workflows.
Telegram Bot
Telegram Bot
Telegram is a cloud-based instant messaging and voice over IP service
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular apps like ChatGPT and DALL·E 2.
Google Sheets
Google Sheets
With Google Sheets, you can create, edit, and collaborate wherever you are
Discord
Discord
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
GitHub
GitHub
Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Formatting
Formatting
Pre-built actions to make formatting and manipulating data within your workflows easier.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.