{
  "openapi": "3.0.1",
  "info": {
    "title": "Fake Test Data Generator",
    "description": "Generate bulk fake/test data using @faker-js/faker. Create realistic persons, addresses, companies, finance records, and internet profiles. 50+ locales, reproducible seeds, 50 field types.",
    "version": "0.1",
    "x-build-id": "GSfKufqMdqVebxGiL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation-lab~fake-test-data-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation-lab-fake-test-data-generator",
        "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/automation-lab~fake-test-data-generator/runs": {
      "post": {
        "operationId": "runs-sync-automation-lab-fake-test-data-generator",
        "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/automation-lab~fake-test-data-generator/run-sync": {
      "post": {
        "operationId": "run-sync-automation-lab-fake-test-data-generator",
        "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": [
          "count",
          "fields"
        ],
        "properties": {
          "count": {
            "title": "🔢 Number of records",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "How many fake records to generate. Minimum 1, maximum 100,000.",
            "default": 10
          },
          "locale": {
            "title": "🌍 Locale",
            "enum": [
              "af_ZA",
              "ar",
              "az",
              "cs_CZ",
              "da",
              "de",
              "de_AT",
              "de_CH",
              "el",
              "en",
              "en_AU",
              "en_CA",
              "en_GB",
              "en_IE",
              "en_IN",
              "en_NG",
              "en_US",
              "en_ZA",
              "es",
              "es_MX",
              "fa",
              "fi",
              "fr",
              "fr_BE",
              "fr_CA",
              "fr_CH",
              "he",
              "hr",
              "hu",
              "hy",
              "id_ID",
              "it",
              "ja",
              "ka_GE",
              "ko",
              "lv",
              "mk",
              "nb_NO",
              "nl",
              "nl_BE",
              "pl",
              "pt_BR",
              "pt_PT",
              "ro",
              "ru",
              "sk",
              "sr_RS_cyrillic",
              "sv",
              "th",
              "tr",
              "uk",
              "ur",
              "vi",
              "zh_CN",
              "zh_TW",
              "zu_ZA"
            ],
            "type": "string",
            "description": "Locale for generated data. Affects names, addresses, phone formats, etc. Use standard locale codes like 'en', 'de', 'fr', 'es', 'ja', 'zh_CN', etc.",
            "default": "en"
          },
          "fields": {
            "title": "📊 Fields to generate",
            "type": "array",
            "description": "Select which fields to include in each record. Available: firstName, lastName, fullName, prefix, suffix, gender, email, phone, username, password, avatar, birthDate, age, streetAddress, city, state, zipCode, country, countryCode, latitude, longitude, companyName, companySuffix, companyEmail, catchPhrase, bs, department, jobTitle, accountNumber, iban, bic, creditCardNumber, creditCardType, currency, currencyCode, price, url, domainName, ipv4, ipv6, mac, userAgent, color, uuid, boolean, number, word, sentence, paragraph, productName, productCategory, productDescription, productAdjective, sku",
            "items": {
              "type": "string"
            },
            "default": [
              "firstName",
              "lastName",
              "email",
              "phone",
              "streetAddress",
              "city",
              "country",
              "companyName",
              "jobTitle"
            ]
          },
          "seed": {
            "title": "🌱 Random seed",
            "minimum": 0,
            "type": "integer",
            "description": "Optional seed for reproducible results. Same seed + same inputs always produce the same data. Leave empty for random output."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}