Get Brand

GET /wp-json/content-api/v1/product-brand/

Retrieves a specific product brand by ID, slug, or name.

Content API Version: 1.0.3

Authentication

This endpoint requires a Bearer token in the Authorization header. To authenticate:

  1. Go to Content API > Settings in your WordPress admin panel.
  2. Set a secure token in the “Token” field and save it.
  3. Include the token in your request header as follows:
Authorization: Bearer 

Replace with the token you configured.

Parameters

Name Type Description Required
taxonomy string Taxonomy name (defaults to product_brand) No
id integer The ID of the brand to retrieve Yes if no slug or name
slug string The slug of the brand to retrieve Yes if no id or name
name string The name of the brand to retrieve Yes if no id or slug

Example Request

GET /wp-json/content-api/v1/taxonomy/brand/?taxonomy=product_brand&id=1

Example Response

{
  "success": true,
  "data": {
    "term_id": 1,
    "name": "Brand A",
    "slug": "brand-a",
    "taxonomy": "product_brand",
    "description": "",
    "parent": 0,
    "count": 10,
    "thumbnail": "https://example.com/wp-content/uploads/brand-a.jpg",
    "yoast": {
      "title": "Brand A Title",
      "description": "Brand A Description",
      "premium": {
        "social_appearance": {
          "title": "Brand A Social Title",
          "description": "Brand A Social Description",
          "image": "https://example.com/wp-content/uploads/brand-a-social.jpg"
        },
        "x": {
          "title": "Brand A X Title",
          "description": "Brand A X Description",
          "image": "https://example.com/wp-content/uploads/brand-a-x.jpg"
        }
      }
    }
  }
}

Possible Errors

Code Message Description HTTP Status
no_brand_found No brand found under the product_brand taxonomy. No brand was found matching the provided ID, slug, or name. 400
not_authorized Not Authorized The provided Bearer token is invalid or does not match the configured token. 401