Title: plugins_api_result
Published: April 25, 2014
Last modified: August 20, 2026

---

# apply_filters( ‘plugins_api_result’, object|WP_Error $res, string $action, object $args )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/plugins_api_result/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/plugins_api_result/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/plugins_api_result/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/plugins_api_result/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/plugins_api_result/?output_format=md#wp--skip-link--target)

Filters the Plugin Installation API response results.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/plugins_api_result/?output_format=md#parameters)󠁿

 `$res`object|[WP_Error](https://developer.wordpress.org/reference/classes/wp_error/)

Response object or [WP_Error](https://developer.wordpress.org/reference/classes/wp_error/).

`$action`string

The type of information being requested from the Plugin Installation API.

`$args`object

Plugin API arguments.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/plugins_api_result/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'plugins_api_result', $res, $action, $args );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/plugin-install.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/includes/plugin-install.php#L230)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/plugin-install.php#L230-L230)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/plugins_api_result/?output_format=md#related)󠁿

| Used by | Description | 
| [plugins_api()](https://developer.wordpress.org/reference/functions/plugins_api/)`wp-admin/includes/plugin-install.php` |

Retrieves plugin installer pages from the WordPress.org Plugins API.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/plugins_api_result/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.7.0](https://developer.wordpress.org/reference/since/2.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fplugins_api_result%2F)
before being able to contribute a note or feedback.