Title: API REST Posts
Author: Miguel Fuentes
Published: <strong>Èrèlé  26, 2020</strong>
Last modified: Agẹmọ  1, 2026

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/api-rest-posts/assets/banner-772x250.png?rev=2255750)

![](https://ps.w.org/api-rest-posts/assets/icon.svg?rev=2251044)

# API REST Posts

 Láti ọwọ́ [Miguel Fuentes](https://profiles.wordpress.org/fuentes7/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/api-rest-posts.1.2.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/api-rest-posts/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/api-rest-posts/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/api-rest-posts/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/api-rest-posts/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/api-rest-posts/)

## Àpèjúwe

API REST Posts adds two public REST API endpoints for listing recent posts:

 * Latest posts from a specific category.
 * Latest posts from the whole site.

The plugin settings page lets site administrators configure the date format and 
the number of words returned in each excerpt. Each post response also includes category
data.

### Privacy

This plugin does not collect or store user data, does not set cookies, and does 
not connect to third-party services.

## Ìgbéwọlẹ̀

 1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install it
    from the WordPress plugins screen.
 2. Activate the plugin through the Plugins screen in WordPress.
 3. Go to Settings > API REST Posts to configure the date format and excerpt word limit.

## FAQ

### How do I get latest posts by category?

Use this endpoint and replace `1` with the category ID and `3` with the number of
posts to return:

    ```
    https://example.com/wp-json/last-post/v2/category/1/numberposts/3
    ```

### How do I get latest posts from the whole site?

Use this endpoint and replace `3` with the number of posts to return:

    ```
    https://example.com/wp-json/last-post/v2/numberposts/3
    ```

### Does this plugin collect personal data?

No. The plugin does not collect, store, or send personal data to third parties.

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“API REST Posts” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa
sí plugin yìí.

Àwọn Olùkópa

 *   [ Miguel Fuentes ](https://profiles.wordpress.org/fuentes7/)

[Túmọ̀ “API REST Posts” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/api-rest-posts)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/api-rest-posts/), ṣàyẹ̀wò
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/api-rest-posts/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/api-rest-posts/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/api-rest-posts/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.2

 * Added category data to each REST API post response.

#### 1.1

 * Added settings sanitization and escaped admin output.
 * Added safe defaults for unsaved settings.
 * Updated REST route registration with explicit public permissions.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.2**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **oṣù 3 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **10+**
 *  Ẹ̀yà WordPress ** 5.2 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **7.0.5**
 *  Ẹ̀yà PHP ** 7.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/api-rest-posts/)
 * Àwọn àmì
 * [categories](https://yor.wordpress.org/plugins/tags/categories/)[excerpts](https://yor.wordpress.org/plugins/tags/excerpts/)
   [latest posts](https://yor.wordpress.org/plugins/tags/latest-posts/)[posts](https://yor.wordpress.org/plugins/tags/posts/)
   [rest-api](https://yor.wordpress.org/plugins/tags/rest-api/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/api-rest-posts/advanced/)

## Àwọn ìbò

Kò sí ìwádìí tí a tíì fi ránṣẹ́.

[Your review](https://wordpress.org/support/plugin/api-rest-posts/reviews/#new-post)

[Wo gbogbo àwọn àgbéyẹ̀wò](https://wordpress.org/support/plugin/api-rest-posts/reviews/)

## Àwọn Olùkópa

 *   [ Miguel Fuentes ](https://profiles.wordpress.org/fuentes7/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/api-rest-posts/)