PHPackages                             gwa/wp-posts-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. gwa/wp-posts-api

ActiveWordpress-plugin[API Development](/categories/api)

gwa/wp-posts-api
================

wp-plugin-use-your-drive

v1.2.0(8y ago)0196MITPHP

Since Mar 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gwa/wp-posts-api)[ Packagist](https://packagist.org/packages/gwa/wp-posts-api)[ RSS](/packages/gwa-wp-posts-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

wp-posts-api
============

[](#wp-posts-api)

Basic API to provide recent post previews as JSON.

Latest posts
------------

[](#latest-posts)

Returns the 10 latest posts, oldest first.

```
http://example.com/?gwasw_api=1

```

### Response:

[](#response)

```
{
	"posts": [{
		"id": 1,
		"guid": "http:\/\/example.com\/?p=1",
		"title": "Hello world!",
		"excerpt": "Welcome to WordPress. This is your first post. Edit or delete it, then start writing!",
		"published_gmt": "2017-03-19 06:33:26",
		"url": "http:\/\/example.com\/2017\/03\/hello-world\/",
		"imageurl": "http:\/\/localhost\/wp_test\/wp-content\/uploads\/2017\/03\/photo.jpeg",
		"tags": ["mytag"]
	}, {
		...
	}]
}
```

Posts since ID
--------------

[](#posts-since-id)

Returns the 10 posts newer than the post with the ID passed, oldest first.

```
http://example.com/?gwasw_api=1&idsince=[integer]

```

### Response:

[](#response-1)

See above.

### Errors:

[](#errors)

```
{
	"error": "post does not exist"
}
```

Single post
-----------

[](#single-post)

Returns a single post:

```
http://example.com/?gwasw_api=1&idpost=[integer]

```

### Response:

[](#response-2)

```
{
	"post": {
		"id": 1,
		"guid": "http:\/\/example.com\/?p=1",
		"title": "Hello world!",
		"excerpt": "Welcome to WordPress. This is your first post. Edit or delete it, then start writing!",
		"published_gmt": "2017-03-19 06:33:26",
		"url": "http:\/\/example.com\/2017\/03\/hello-world\/",
		"imageurl": "http:\/\/localhost\/wp_test\/wp-content\/uploads\/2017\/03\/photo.jpeg",
		"tags": ["mytag"]
	}
}
```

### Errors:

[](#errors-1)

```
{
	"error": "post does not exist"
}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~36 days

Total

4

Last Release

3282d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff4c484be9fc46201a1c3c13fc961525d699d1c4e7dda68df7c5b408f147228a?d=identicon)[gwa](/maintainers/gwa)

---

Top Contributors

[![gwagroves](https://avatars.githubusercontent.com/u/8222012?v=4)](https://github.com/gwagroves "gwagroves (10 commits)")

### Embed Badge

![Health badge](/badges/gwa-wp-posts-api/health.svg)

```
[![Health](https://phpackages.com/badges/gwa-wp-posts-api/health.svg)](https://phpackages.com/packages/gwa-wp-posts-api)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[october/rain

October Rain Library

1601.7M80](/packages/october-rain)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[sybrew/the-seo-framework

An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.

47884.4k](/packages/sybrew-the-seo-framework)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19251.4k3](/packages/civicrm-civicrm-drupal-8)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
