{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Products & Services Directory Scraper",
    "description": "Scrape LinkedIn's public Services marketplace and Products catalog. Get service providers by category and US city, or products by category, search and URL, with ratings, reviews, vendors, target roles, customers and related products. No login needed.",
    "version": "1.0",
    "x-build-id": "yCK5BVaWxcnNu5Tm7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~linkedin-products-services-directory/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-linkedin-products-services-directory",
        "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/xyrelith-data~linkedin-products-services-directory/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-linkedin-products-services-directory",
        "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/xyrelith-data~linkedin-products-services-directory/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-linkedin-products-services-directory",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Directory",
            "enum": [
              "services",
              "products"
            ],
            "type": "string",
            "description": "Which LinkedIn public directory to scrape.",
            "default": "services"
          },
          "serviceCategories": {
            "title": "Service categories",
            "type": "array",
            "description": "Service categories as slugs, display names or URLs, e.g. `accountants`, `Graphic Design`, or `https://www.linkedin.com/services/graphic-designers`. Leave empty to walk the full browse taxonomy.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "serviceCities": {
            "title": "US city pages",
            "type": "array",
            "description": "Optional city pages per category, e.g. `us/newark-nj`, `newark-nj`, or a full `/services/accountants/us/newark-nj` URL. LinkedIn's guest city index currently lists US cities only. Leave empty for the nationwide category page.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "serviceKeyword": {
            "title": "Provider keyword",
            "type": "string",
            "description": "Keep only providers whose name, services, summary or location contains this text (case-insensitive).",
            "default": ""
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Drop rated providers below this average rating (0-5). Providers with no displayed rating are kept."
          },
          "hasReviewsOnly": {
            "title": "Only providers with reviews",
            "type": "boolean",
            "description": "Keep only providers with at least one displayed review.",
            "default": false
          },
          "productCategories": {
            "title": "Product categories",
            "type": "array",
            "description": "Product categories as slugs, display names or URLs, e.g. `customer-relationship-management-software` or `Recruiting Software`. Each category page shows LinkedIn's top 10 guests products.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productSearchQueries": {
            "title": "Product search queries",
            "type": "array",
            "description": "Keywords for LinkedIn's public product search, e.g. `crm`, `payroll`, `analytics`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs or slugs",
            "type": "array",
            "description": "Direct product pages, e.g. `https://www.linkedin.com/products/salesforce-sales-cloud/` or `salesforce-sales-cloud`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeAllProductCategories": {
            "title": "Walk all product categories",
            "type": "boolean",
            "description": "When no product target is supplied, walk every category in the public browse index instead of the products home page.",
            "default": false
          },
          "includeProductDetails": {
            "title": "Fetch product detail pages",
            "type": "boolean",
            "description": "Enrich each product with its public detail page: intended roles, website, media titles, featured customers, similar products and the vendor portfolio.",
            "default": true
          },
          "includeCategoryInsights": {
            "title": "Include category insights",
            "type": "boolean",
            "description": "Attach the category's total product count and its 'Used by' job-title counts to each product.",
            "default": true
          },
          "includeRelatedProducts": {
            "title": "Crawl related products",
            "type": "boolean",
            "description": "Follow similar-product and vendor-portfolio links to reach products beyond a category's top 10 guest cards.",
            "default": false
          },
          "relatedDepth": {
            "title": "Related graph depth",
            "enum": [
              "1",
              "2"
            ],
            "type": "string",
            "description": "How many hops to follow when related-product crawling is enabled (mode=products).",
            "default": "1"
          },
          "productVendorFilter": {
            "title": "Vendor filter",
            "type": "string",
            "description": "Keep only products whose vendor name contains this text (case-insensitive).",
            "default": ""
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on records returned in this run.",
            "default": 50
          },
          "rehostImages": {
            "title": "Rehost product logos",
            "type": "boolean",
            "description": "Copy LinkedIn's expiring CDN product logos into this run's key-value store and return permanent public URLs. The original URL is kept in `logoUrlOriginal`.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy override. The actor works without a proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}