{
  "openapi": "3.0.1",
  "info": {
    "title": "DesignRush Scraper - Agencies, Services & B2B Leads",
    "description": "Scrape the DesignRush agency directory by category & country: services, hourly rate, budget, team size, ratings, reviews & year founded, plus direct emails, phones & socials for B2B leads. Reviews, website enrichment & monitor mode. No API key, no browser.",
    "version": "0.1",
    "x-build-id": "dOITfr2VOvwCz42C7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~designrush-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-designrush-scraper",
        "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/scrapesage~designrush-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-designrush-scraper",
        "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/scrapesage~designrush-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-designrush-scraper",
        "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",
        "properties": {
          "categories": {
            "title": "Agency categories",
            "type": "array",
            "description": "DesignRush agency category slugs (from the URL, e.g. https://www.designrush.com/agency/<slug>). Each is scraped separately. Common slugs: digital-marketing, search-engine-optimization, social-media-marketing, web-development-companies, website-design-development, software-development, mobile-app-design-development, ui-ux-design, ecommerce, branding (logo-branding), public-relations, content-marketing, paid-media-pay-per-click, video-production, ai-companies, it-services, creative-agencies. Sub-niches also work, e.g. digital-marketing/amazon, digital-marketing/dental.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Countries (optional)",
            "type": "array",
            "description": "Optional country filter for each category. Use a country name or 2-letter ISO code: \"United States\"/\"us\", \"United Kingdom\"/\"uk\", \"Canada\"/\"ca\", \"Australia\"/\"au\", \"India\"/\"in\", \"Germany\"/\"de\", \"United Arab Emirates\"/\"ae\". Leave empty for the global ranking (all countries). DesignRush filters by country at the directory level; state/city filtering is not supported via clean URLs.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (optional)",
            "type": "array",
            "description": "DesignRush URLs to scrape directly (auto-routed). Supports agency profile pages (https://www.designrush.com/agency/profile/<slug>) and category/listing pages (https://www.designrush.com/agency/digital-marketing or .../digital-marketing/us). When set, these override the categories above.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max agencies (total)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Total cap on agency records emitted across all categories/countries/URLs in this run.",
            "default": 100
          },
          "maxResultsPerCategory": {
            "title": "Max agencies per category",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional cap per individual category/country (0 = no per-category cap, only the total cap applies). DesignRush lists ~50 agencies per page and paginates deeply (hundreds of pages in big categories).",
            "default": 0
          },
          "includeProfileDetails": {
            "title": "Include full profile details",
            "type": "boolean",
            "description": "Fetch each agency's profile page for the direct contact email & phone, full street address, year founded, minimum budget, full service list and the agency's own social links (one extra request per agency). This is where the lead data lives — keep on for lead generation. Turn off for fast, cheap listing-only runs.",
            "default": true
          },
          "includeReviews": {
            "title": "Include client reviews",
            "type": "boolean",
            "description": "Also output one record per client review (type \"review\") from each agency's profile: reviewer, rating, date, title and body. Requires profile details.",
            "default": false
          },
          "maxReviewsPerAgency": {
            "title": "Max reviews per agency",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Cap on review records captured per agency when 'Include client reviews' is on.",
            "default": 20
          },
          "enrichContactEmails": {
            "title": "Enrich contacts from the agency website",
            "type": "boolean",
            "description": "Visit each agency's own website (home + contact/about, max 3 pages) and extract additional public emails, phone numbers and social links. Secondary to the direct profile email — use it to fill gaps and add team/department contacts.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only keep agencies with at least this average rating (0–5). 0 = no filter.",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum review count",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Only keep agencies with at least this many client reviews. 0 = no filter.",
            "default": 0
          },
          "withEmailOnly": {
            "title": "Only agencies with an email",
            "type": "boolean",
            "description": "Only emit agencies that have a contact email (from the profile or website enrichment). Great for building a clean outreach list.",
            "default": false
          },
          "withWebsiteOnly": {
            "title": "Only agencies with a website",
            "type": "boolean",
            "description": "Only emit agencies that have their own website URL.",
            "default": false
          },
          "deduplicateAgencies": {
            "title": "Deduplicate agencies",
            "type": "boolean",
            "description": "Skip an agency if it already appeared earlier in this run (the same agency can rank in several categories/countries).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new agencies)",
            "type": "boolean",
            "description": "Remember agencies seen in previous runs (in a named key-value store) and emit only NEW ones. Pair with Apify Schedules to watch a category or country for newly listed agencies. Does not conflict with scheduling.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store that holds the 'already seen' agency IDs for monitor mode. Use a distinct name per saved task so their histories stay separate.",
            "default": "designrush-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Maximum profile / enrichment pages fetched in parallel.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. DesignRush has no aggressive anti-bot, so the default Apify datacenter proxy works well.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}