# WordPress.org theme API

Get WordPress.org Theme data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, slug, and retrieve structured data including theme slug, current theme version, declared minimum WordPress version, declared minimum PHP version, and theme screenshot link for theme directory, and upgrade preparation.

Documentation: https://openany.si/wordpress-org/wordpress-org-theme-api/b6178f8b-3c53-4fef-8422-0f322a08958c/
API ID: b6178f8b-3c53-4fef-8422-0f322a08958c
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/wordpress/v1/theme
Page update time: 2026-12-03T02:45:30.399Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:45:28.433Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## WordPress.org Theme API

Resolve a theme with slug and bound its newest-first version history using versions\_limit. The response supplies catalogue metadata, preview and download links; theme activation remains a separate site action.

## What You Can Build

- **Theme directory**: Combine theme identity, screenshots and author links.
- **Upgrade preparation**: Compare declared environment requirements and available versions.

## Returned Data

| Field | Meaning |
| --- | --- |
| `slug` | Theme slug |
| `version` | Current theme version |
| `requires_wp` | Declared minimum WordPress version |
| `requires_php` | Declared minimum PHP version |
| `screenshot` | Theme screenshot link |
| `versions_total` | Source version count |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "WordPress.org theme API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string",
          "description": "Theme slug or its wordpress.org/themes link."
        },
        "versions_limit": {
          "type": "integer",
          "description": "How many versions to list, newest first (default 50)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "slug"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "active_installs": {
      "type": "integer"
    },
    "author": {
      "type": "string"
    },
    "author_handle": {
      "type": "string"
    },
    "author_profile": {
      "type": "string"
    },
    "author_url": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "commercial": {
      "type": "boolean"
    },
    "community": {
      "type": "boolean"
    },
    "created": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "description": {
      "type": "string"
    },
    "download_link": {
      "type": "string"
    },
    "downloaded": {
      "type": "integer"
    },
    "external_repository_url": {
      "type": "null"
    },
    "external_support_url": {
      "type": "string"
    },
    "last_updated": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "num_ratings": {
      "type": "integer"
    },
    "parent": {
      "type": "null"
    },
    "preview_url": {
      "type": "string"
    },
    "rating_pct": {
      "type": "integer"
    },
    "ratings": {
      "type": "object",
      "properties": {
        "1": {
          "type": "integer"
        },
        "2": {
          "type": "integer"
        },
        "3": {
          "type": "integer"
        },
        "4": {
          "type": "integer"
        },
        "5": {
          "type": "integer"
        }
      }
    },
    "requires_php": {
      "type": "string"
    },
    "requires_wp": {
      "type": "string"
    },
    "reviews_url": {
      "type": "string"
    },
    "screenshot": {
      "type": "string"
    },
    "sections": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        }
      }
    },
    "slug": {
      "type": "string"
    },
    "stars": {
      "type": "number"
    },
    "tag_labels": {
      "type": "object",
      "properties": {
        "blog": {
          "type": "string"
        },
        "custom-colors": {
          "type": "string"
        },
        "custom-logo": {
          "type": "string"
        },
        "custom-menu": {
          "type": "string"
        },
        "e-commerce": {
          "type": "string"
        },
        "editor-style": {
          "type": "string"
        },
        "entertainment": {
          "type": "string"
        },
        "featured-images": {
          "type": "string"
        },
        "full-width-template": {
          "type": "string"
        },
        "left-sidebar": {
          "type": "string"
        },
        "microformats": {
          "type": "string"
        },
        "one-column": {
          "type": "string"
        },
        "post-formats": {
          "type": "string"
        },
        "right-sidebar": {
          "type": "string"
        },
        "rtl-language-support": {
          "type": "string"
        },
        "theme-options": {
          "type": "string"
        },
        "threaded-comments": {
          "type": "string"
        },
        "translation-ready": {
          "type": "string"
        },
        "two-columns": {
          "type": "string"
        }
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "url": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "versions": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "download_link": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "versions_total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/wordpress/v1/theme?output=json&slug=astra' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "active_installs": 1000000,
  "author": "Brainstorm Force",
  "author_handle": "brainstormforce",
  "author_profile": "https://profiles.wordpress.org/brainstormforce/",
  "author_url": "https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme",
  "cached": false,
  "commercial": true,
  "community": false,
  "created": "2017-05-30T03:45:00Z",
  "credits_used": 1,
  "description": "The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 6,…",
  "download_link": "https://downloads.wordpress.org/theme/astra.4.14.2.zip",
  "downloaded": 27458633,
  "external_repository_url": null,
  "external_support_url": "https://wpastra.com/contact/",
  "last_updated": "2026-10-29T01:22:00Z",
  "name": "Astra",
  "num_ratings": 6554,
  "parent": null,
  "preview_url": "https://wp-themes.com/astra/",
  "rating_pct": 98,
  "ratings": {
    "1": 104,
    "2": 18,
    "3": 28,
    "4": 90,
    "5": 6314
  },
  "requires_php": "5.3",
  "requires_wp": "5.3",
  "reviews_url": "https://wordpress.org/support/theme/astra/reviews/",
  "screenshot": "https://ts.w.org/wp-content/themes/astra/screenshot.jpg?ver=4.14.2",
  "sections": {
    "description": "The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 6,…"
  },
  "slug": "astra",
  "stars": 4.9,
  "tag_labels": {
    "blog": "Blog",
    "custom-colors": "Custom colors",
    "custom-logo": "Custom logo",
    "custom-menu": "Custom menu",
    "e-commerce": "E-commerce",
    "editor-style": "Editor style",
    "entertainment": "Entertainment",
    "featured-images": "Featured images",
    "full-width-template": "Full width template",
    "left-sidebar": "Left sidebar",
    "microformats": "Microformats",
    "one-column": "One column",
    "post-formats": "Post formats",
    "right-sidebar": "Right sidebar",
    "rtl-language-support": "RTL language support",
    "theme-options": "Theme options",
    "threaded-comments": "Threaded comments",
    "translation-ready": "Translation ready",
    "two-columns": "Two columns"
  },
  "tags": [
    "blog",
    "custom-colors",
    "… 17 more"
  ],
  "url": "https://wordpress.org/themes/astra/",
  "version": "4.14.2",
  "versions": [
    {
      "download_link": "https://downloads.wordpress.org/theme/astra.4.14.2.zip",
      "version": "4.14.2"
    },
    {
      "download_link": "https://downloads.wordpress.org/theme/astra.4.14.1.zip",
      "version": "4.14.1"
    },
    "… 48 more"
  ],
  "versions_total": 286
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What identifies the theme?
Use its slug or wordpress.org/themes page URL.

### How do I limit version history?
Set versions_limit; the default is 50 entries, newest first.

### Does this activate the theme on a site?
No. It returns metadata and preview or download links without changing a WordPress site.

### How should I read commercial and parent fields?
Preserve the source commercial classification and parent-theme metadata when present. A missing parent is not a guarantee of compatibility with every site.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/wordpress-org/wordpress-org-theme-api/b6178f8b-3c53-4fef-8422-0f322a08958c/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
