# Judge.me

> Read, publish, hide and reply to Judge.me product and store reviews, manage reviewers, get products and review widgets, and follow new and published reviews.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/judge-me

## Actions

### Count reviews

Count reviews, optionally for one product, reviewer or rating.

**Inputs**

- Product (`product_id`, number): Only reviews of this product. At least 1.
- Reviewer ID (`reviewer_id`, number): Only reviews by this reviewer, by their Judge.me ID. At least 1.
- Rating (`rating`, number): Only reviews with this rating. One of: `1` (1 star), `2` (2 stars), `3` (3 stars), `4` (4 stars), `5` (5 stars).

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "count": 1
  }
}
```

### Create or update reviewer

Add a reviewer, or update the one with this email address. Only the fields filled in change.

**Inputs**

- Email (`email`, text, required): The reviewer's email address.
- Name (`name`, text): The reviewer's name.
- Phone (`phone`, text): The reviewer's phone number.
- Tags (`tags`, list): Tags for the reviewer, which replace any they have.
- Accepts marketing (`accepts_marketing`, true/false): Whether the reviewer agreed to marketing emails.
- Store customer ID (`external_id`, number): The customer's ID in your store (such as their Shopify customer ID). At least 1.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "reviewer": {
      "accepts_marketing": true,
      "email": "example",
      "external_id": 1,
      "id": 1,
      "name": "example",
      "phone": "example",
      "tags": [
        "example"
      ],
      "unsubscribed_at": "example"
    }
  }
}
```

### Create review

Submit a review the way a customer does on your store's review form. It isn't created if your store turns web reviews off.

**Inputs**

- Store platform (`platform`, text, required): Your store's platform. One of: `shopify`, `woocommerce`, `bigcommerce`.
- Reviewer name (`name`, text, required): The reviewer's name.
- Reviewer email (`email`, text, required): The reviewer's email address.
- Rating (`rating`, number, required): The star rating. One of: `1` (1 star), `2` (2 stars), `3` (3 stars), `4` (4 stars), `5` (5 stars).
- Review (`body`, text, required): The review's text.
- Title (`title`, text): The review's title.
- Store product ID (`product_external_id`, number): The reviewed product's ID in your store (such as its Shopify product ID). Leave empty for a store review. At least 1.
- Name shown as (`name_format`, text): How the reviewer's name shows on the review. Leave empty for their full name. One of: `last_initial` (First name and last initial), `all_initials` (Initials only), `anonymous`.
- Picture URLs (`picture_urls`, list): Addresses of pictures to add to the review.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {}
}
```

### Create webhook

Have Judge.me send an event, such as a new review, to an address of yours.

**Inputs**

- Event (`key`, text, required): The event to be told about. One of: `review/created` (Review created), `review/updated` (Review updated), `review/created_fail` (Review couldn't be created), `widget/settings/updated` (Widget settings updated), `widget/review_widget/updated` (Review widget updated), `widget/preview_badge/updated` (Preview badge updated), `widget/all_reviews_count/updated` (Total review count updated), `widget/all_reviews_rating/updated` (Average rating updated), `widget/shop_reviews_count/updated` (Store review count updated), `widget/shop_reviews_rating/updated` (Store review rating updated), and 5 more.
- URL (`url`, text, required): The address Judge.me sends the event to.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "shop_domain": "example",
    "shop_id": 1,
    "webhook": {
      "failure_count": 1,
      "id": 1,
      "key": "example",
      "url": "example"
    }
  }
}
```

### Delete webhook

Stop Judge.me sending an event to an address.

**Inputs**

- Event (`key`, text, required): The event to be told about. One of: `review/created` (Review created), `review/updated` (Review updated), `review/created_fail` (Review couldn't be created), `widget/settings/updated` (Widget settings updated), `widget/review_widget/updated` (Review widget updated), `widget/preview_badge/updated` (Preview badge updated), `widget/all_reviews_count/updated` (Total review count updated), `widget/all_reviews_rating/updated` (Average rating updated), `widget/shop_reviews_count/updated` (Store review count updated), `widget/shop_reviews_rating/updated` (Store review rating updated), and 5 more.
- URL (`url`, text, required): The address Judge.me sends the event to.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {}
}
```

### Get product

Find a product by its handle, its ID in your store or its Judge.me ID.

**Inputs**

- Product handle (`handle`, text): The product's handle, the last part of its page address, such as blue-t-shirt.
- Store product ID (`external_id`, number): The product's ID in your store (such as its Shopify product ID). At least 1.
- Product (`id`, number): The product's Judge.me ID. At least 1.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "product": {
      "description": "example",
      "excluded": true,
      "external_id": 1,
      "handle": "example",
      "highest_price": 1,
      "id": 1,
      "image_url": "example",
      "in_store": true,
      "lowest_price": 1,
      "path": "example",
      "product_type": "example",
      "skus": [
        "example"
      ],
      "tags": [
        "example"
      ],
      "title": "example",
      "vendor": "example"
    }
  }
}
```

### Get product review widget

Get the HTML of a product's review widget, ready to put on a page.

**Inputs**

- Product handle (`handle`, text): The product's handle, the last part of its page address, such as blue-t-shirt.
- Store product ID (`external_id`, number): The product's ID in your store (such as its Shopify product ID). At least 1.
- Product (`id`, number): The product's Judge.me ID. At least 1.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Results per page (`per_page`, number): How many reviews the widget shows. Leave empty for 5. From 1 to 100.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "product_external_id": 1,
    "widget": "example"
  }
}
```

### Get product star badge

Get the HTML of a product's star rating badge, with its average rating and review count.

**Inputs**

- Product handle (`handle`, text): The product's handle, the last part of its page address, such as blue-t-shirt.
- Store product ID (`external_id`, number): The product's ID in your store (such as its Shopify product ID). At least 1.
- Product (`id`, number): The product's Judge.me ID. At least 1.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "badge": "example",
    "product_external_id": 1
  }
}
```

### Get rating summary

Get the number of reviews and average rating for the whole store, and for store reviews alone.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "all_reviews_count": 1,
    "all_reviews_rating": 1,
    "shop_reviews_count": 1,
    "shop_reviews_rating": 1
  }
}
```

### Get review

Get a review with its reviewer, product, status and pictures.

**Inputs**

- Review ID (`review_id`, number, required): The review's Judge.me ID, from List reviews or the New review trigger. At least 1.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "review": {
      "body": "example",
      "created_at": "example",
      "curated": "example",
      "has_published_pictures": true,
      "has_published_videos": true,
      "hidden": true,
      "id": 1,
      "ip_address": "example",
      "pictures": [
        {
          "hidden": true,
          "urls": {
            "compact": "example",
            "huge": "example",
            "original": "example",
            "small": "example"
          }
        }
      ],
      "pinned": true,
      "product_external_id": 1,
      "product_handle": "example",
      "product_title": "example",
      "rating": 1,
      "reviewer": {
        "accepts_marketing": true,
        "email": "example",
        "external_id": 1,
        "id": 1,
        "name": "example",
        "phone": "example",
        "tags": [
          "example"
        ],
        "unsubscribed_at": "example"
      },
      "source": "example",
      "title": "example",
      "updated_at": "example",
      "verified": "example"
    }
  }
}
```

### Get reviewer

Find a reviewer by email address or by their ID in your store, and get their name, phone, tags and marketing consent.

**Inputs**

- Email (`email`, text): The reviewer's email address.
- Store customer ID (`external_id`, number): The customer's ID in your store (such as their Shopify customer ID). At least 1.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "reviewer": {
      "accepts_marketing": true,
      "email": "example",
      "external_id": 1,
      "id": 1,
      "name": "example",
      "phone": "example",
      "tags": [
        "example"
      ],
      "unsubscribed_at": "example"
    }
  }
}
```

### Get settings

Get the values of some of the shop's Judge.me settings, such as autopublish.

**Inputs**

- Settings (`setting_keys`, list, required): The settings to read, by key, such as autopublish or admin_email.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "settings": {}
  }
}
```

### Get shop info

Get the shop's Judge.me plan, owner, email and platform.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {}
}
```

### List products

List the products Judge.me knows from your store, with their Judge.me and store IDs.

**Inputs**

- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to return on each page. From 1 to 100.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "per_page": 1,
    "products": [
      {
        "description": "example",
        "excluded": true,
        "external_id": 1,
        "handle": "example",
        "highest_price": 1,
        "id": 1,
        "image_url": "example",
        "in_store": true,
        "lowest_price": 1,
        "path": "example",
        "product_type": "example",
        "skus": [
          "example"
        ],
        "tags": [
          "example"
        ],
        "title": "example",
        "vendor": "example"
      }
    ]
  }
}
```

### List reviews

List product and store reviews, including unpublished ones, optionally for one product, reviewer or rating.

**Inputs**

- Product (`product_id`, number): Only reviews of this product. At least 1.
- Reviewer ID (`reviewer_id`, number): Only reviews by this reviewer, by their Judge.me ID. At least 1.
- Rating (`rating`, number): Only reviews with this rating. One of: `1` (1 star), `2` (2 stars), `3` (3 stars), `4` (4 stars), `5` (5 stars).
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to return on each page. From 1 to 100.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "per_page": 1,
    "reviews": [
      {
        "body": "example",
        "created_at": "example",
        "curated": "example",
        "has_published_pictures": true,
        "has_published_videos": true,
        "hidden": true,
        "id": 1,
        "ip_address": "example",
        "pictures": [
          {
            "hidden": true,
            "urls": {
              "compact": "example",
              "huge": "example",
              "original": "example",
              "small": "example"
            }
          }
        ],
        "pinned": true,
        "product_external_id": 1,
        "product_handle": "example",
        "product_title": "example",
        "rating": 1,
        "reviewer": {
          "accepts_marketing": true,
          "email": "example",
          "external_id": 1,
          "id": 1,
          "name": "example",
          "phone": "example",
          "tags": [
            "example"
          ],
          "unsubscribed_at": "example"
        },
        "source": "example",
        "title": "example",
        "updated_at": "example",
        "verified": "example"
      }
    ]
  }
}
```

### List webhooks

List the addresses Judge.me notifies about reviews and widget changes.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "shop_domain": "example",
    "shop_id": 1,
    "webhooks": [
      {
        "failure_count": 1,
        "id": 1,
        "key": "example",
        "url": "example"
      }
    ]
  }
}
```

### Publish or hide review

Publish a review on your store or hide it, or move it to the Archived tab. Judge.me doesn't allow editing a review's words.

**Inputs**

- Review ID (`review_id`, number, required): The review's Judge.me ID, from List reviews or the New review trigger. At least 1.
- Status (`curated`, text): Publish the review, or hide it from your store. One of: `ok` (Publish), `spam` (Hide).
- Archived (`archived`, true/false): Move the review to the Archived tab (yes), or back out of it (no).

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {
    "message": "example"
  }
}
```

### Reply to review

Post a public reply under a review on your store.

**Inputs**

- Review ID (`review_id`, number, required): The review's Judge.me ID, from List reviews or the New review trigger. At least 1.
- Reply (`content`, text, required): The reply.
- Email the reviewer (`email_reviewer`, true/false): Email the reviewer about the reply. Leave empty to email them.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {}
}
```

### Send private reply

Email a reviewer privately about their review.

**Inputs**

- Review ID (`review_id`, number, required): The review's Judge.me ID, from List reviews or the New review trigger. At least 1.
- Subject (`subject`, text, required): The email's subject.
- Message (`message`, text, required): The email's text.
- Send email (`send_email`, true/false): Send the email. Turn off to only record the reply in Judge.me.

**Outputs**

- `data` (object): The response from Judge.me.

**Example output**

```json
{
  "data": {}
}
```
