{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify GTIN, MPN & Brand Coverage Audit",
    "description": null,
    "version": "0.1",
    "x-build-id": "XWHUXAMrMecpddhtu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/practical_ai_lab_jp~pal-shopify-merchant-identifier-coverage-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-practical_ai_lab_jp-pal-shopify-merchant-identifier-coverage-audit",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/practical_ai_lab_jp~pal-shopify-merchant-identifier-coverage-audit/runs": {
      "post": {
        "operationId": "runs-sync-practical_ai_lab_jp-pal-shopify-merchant-identifier-coverage-audit",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/practical_ai_lab_jp~pal-shopify-merchant-identifier-coverage-audit/run-sync": {
      "post": {
        "operationId": "run-sync-practical_ai_lab_jp-pal-shopify-merchant-identifier-coverage-audit",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "authorizationConfirmed",
          "currentSnapshot"
        ],
        "properties": {
          "authorizationConfirmed": {
            "title": "I am authorized to audit this data",
            "type": "boolean",
            "description": "Tick only if you own the store or have permission to analyze this export or public feed. The bundled sample data is synthetic.",
            "default": false
          },
          "currentSnapshot": {
            "title": "Current snapshot",
            "type": "object",
            "description": "Provide exactly one source: csvText (Shopify product CSV), jsonText (products.json content) or shopUrl (public store origin, fetched with robots.txt checks). capturedAt (YYYY-MM-DD) is required for pasted text. Optional label names the report."
          },
          "previousSnapshot": {
            "title": "Previous snapshot (optional)",
            "type": "object",
            "description": "An earlier export to compare against: csvText or jsonText with capturedAt, or snapshotKey of a snapshot saved by an earlier run. Must be dated before the current snapshot."
          },
          "categorySource": {
            "title": "Category source",
            "enum": [
              "auto",
              "product_type",
              "product_category"
            ],
            "type": "string",
            "description": "Which column defines categories. Auto uses Type, then Product Category.",
            "default": "auto"
          },
          "categoryDepth": {
            "title": "Category depth",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many levels of a 'A > B > C' category path to group by.",
            "default": 2
          },
          "minCategorySample": {
            "title": "Minimum variants for stable rates",
            "minimum": 5,
            "maximum": 1000,
            "type": "integer",
            "description": "Categories and snapshots below this size are labeled low confidence and change signals are suppressed.",
            "default": 30
          },
          "exemptCategories": {
            "title": "Exempt categories",
            "type": "array",
            "description": "Category names (after depth grouping) that legitimately have no GTIN/MPN, such as handmade goods. They are excluded from rates and fix queues.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxRows": {
            "title": "Maximum variant rows",
            "minimum": 100,
            "maximum": 200000,
            "type": "integer",
            "description": "Rows beyond this limit are ignored and a warning is added.",
            "default": 50000
          },
          "maxQueueVendors": {
            "title": "Maximum suppliers in fix queue",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Limits the count of supplier action records in the report; summary totals remain unchanged.",
            "default": 100
          },
          "maxChangeItems": {
            "title": "Maximum change rows",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Cap on listed variant-level changes (regressions first). Counts in the summary are always complete.",
            "default": 200
          },
          "maxPages": {
            "title": "Maximum feed pages (live mode)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Each page holds up to 250 products.",
            "default": 5
          },
          "requestDelaySeconds": {
            "title": "Delay between feed requests (seconds)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum delay between permitted public Shopify feed requests in live mode.",
            "default": 2
          },
          "saveSnapshot": {
            "title": "Save compact snapshot for future comparisons",
            "type": "boolean",
            "description": "Stores identifiers (handle, SKU, GTIN, vendor, category) in a named key-value store so a later run can pass its key as previousSnapshot.snapshotKey.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}