# Add your own HTTP proxy as a node (/api-reference/data-api/postDataNodes)

Validates the proxy URL, rejects private or local hosts, then probes the proxy through a public echo service before saving. The probe records the exit IP, country, IANA timezone and network class and warns when the proxy rotates its exit IP per request. Computers join by signing in to RunHarvester Node and cannot be added here.

## POST /api/v1/data/nodes

Add your own HTTP proxy as a node

- Operation ID: `postDataNodes`

- Tags: `Data API`

Validates the proxy URL, rejects private or local hosts, then probes the proxy through a public echo service before saving. The probe records the exit IP, country, IANA timezone and network class and warns when the proxy rotates its exit IP per request. Computers join by signing in to RunHarvester Node and cannot be added here.

### Security

- Required scope: `scrape:write`

- `ApiKey` (apiKey, X-API-Key)

- `ApiKeyBearer` (http)

### Parameters

- `Idempotency-Key` (header) — string; Optional. Generate a unique value before a write and retain it for an exact-body retry; replay is free and a different body returns 409 IDEMPOTENCY_CONFLICT.; example="rh-docs-01J2QG-unique"

### Request body

- `application/json`: #/components/schemas/ProxyNodeCreate

### Responses

- **201** — Added and probed proxy node. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/OwnNode

  - Example: `{
  "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248",
  "status": "pending"
}`

- **400** — Invalid input. PROXY_NODE_INVALID or PROXY_NODE_UNSAFE_HOST carry a human-readable message. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "VALIDATION_ERROR",
  "message": "Invalid input. PROXY_NODE_INVALID or PROXY_NODE_UNSAFE_HOST carry a human-readable message. Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **401** — Missing or invalid API key. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "VALIDATION_ERROR",
  "message": "Missing or invalid API key. Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **403** — API key lacks the required scope. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "VALIDATION_ERROR",
  "message": "API key lacks the required scope. Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **409** — You already have the maximum number of proxies (PROXY_NODE_LIMIT_REACHED). Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "RESULT_NOT_READY",
  "message": "You already have the maximum number of proxies (PROXY_NODE_LIMIT_REACHED). Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **422** — The proxy did not pass the connectivity probe (PROXY_NODE_PROBE_FAILED); the message explains why and nothing is saved. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "VALIDATION_ERROR",
  "message": "The proxy did not pass the connectivity probe (PROXY_NODE_PROBE_FAILED); the message explains why and nothing is saved. Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **429** — API key rate limit exceeded. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "RATE_LIMIT",
  "message": "API key rate limit exceeded. Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

### Referenced OpenAPI components

#### `#/components/schemas/ProxyNodeCreate`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "url"
  ],
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "proxy"
      ],
      "default": "proxy"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "url": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "http://[user:password@]host:port of a public HTTP proxy."
    }
  }
}

```

#### `#/components/schemas/OwnNode`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "kind",
    "name",
    "shared",
    "owner",
    "status",
    "usable",
    "online",
    "platform",
    "app_version",
    "protocol",
    "host",
    "port",
    "has_credentials",
    "probe",
    "last_seen_at",
    "last_used_at",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "computer",
        "proxy"
      ],
      "description": "A computer running RunHarvester Node, or a proxy you added by URL."
    },
    "name": {
      "type": "string"
    },
    "shared": {
      "type": "boolean",
      "description": "A computer another account shared with you."
    },
    "owner": {
      "type": [
        "string",
        "null"
      ],
      "description": "Masked e-mail of the owner of a shared computer."
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "revoked"
      ]
    },
    "usable": {
      "type": "boolean",
      "description": "Can carry a request now: a computer online at the gateway, a proxy whose last probe passed."
    },
    "online": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Computers only."
    },
    "platform": {
      "type": [
        "string",
        "null"
      ]
    },
    "app_version": {
      "type": [
        "string",
        "null"
      ]
    },
    "protocol": {
      "type": [
        "string",
        "null"
      ]
    },
    "host": {
      "type": [
        "string",
        "null"
      ]
    },
    "port": {
      "type": [
        "integer",
        "null"
      ]
    },
    "has_credentials": {
      "type": "boolean",
      "description": "Proxies only; credentials are never returned."
    },
    "probe": {
      "$ref": "#/components/schemas/OwnNodeProbe"
    },
    "last_seen_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_used_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}

```

#### `#/components/schemas/PublicError`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "error",
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "error": {
      "type": "string"
    },
    "code": {
      "type": "string",
      "description": "Stable public error code. PROXY_QUOTE_EXPIRED means the optional quote_version supplied at admission is no longer current; refresh the pricing view and submit again."
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    }
  }
}

```

#### `#/components/parameters/IdempotencyKey`

```json

{
  "name": "Idempotency-Key",
  "in": "header",
  "required": false,
  "description": "Optional. Generate a unique value before a write and retain it for an exact-body retry; replay is free and a different body returns 409 IDEMPOTENCY_CONFLICT.",
  "schema": {
    "type": "string",
    "minLength": 8,
    "maxLength": 200
  },
  "example": "rh-docs-01J2QG-unique"
}

```

#### `#/components/schemas/OwnNodeProbe`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "status",
    "error",
    "exit_ip",
    "country_code",
    "timezone",
    "network_class",
    "rotating",
    "checked_at"
  ],
  "properties": {
    "status": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "ok",
        "failing",
        null
      ],
      "description": "null until the node was probed."
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "exit_ip": {
      "type": [
        "string",
        "null"
      ],
      "description": "The address websites see through this node."
    },
    "country_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "timezone": {
      "type": [
        "string",
        "null"
      ]
    },
    "network_class": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "residential",
        "datacenter",
        null
      ]
    },
    "rotating": {
      "type": "boolean",
      "description": "The proxy changes its exit IP per request."
    },
    "checked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}

```

### Complete operation object

```json

{
  "operationId": "postDataNodes",
  "tags": [
    "Data API"
  ],
  "summary": "Add your own HTTP proxy as a node",
  "description": "Validates the proxy URL, rejects private or local hosts, then probes the proxy through a public echo service before saving. The probe records the exit IP, country, IANA timezone and network class and warns when the proxy rotates its exit IP per request. Computers join by signing in to RunHarvester Node and cannot be added here.",
  "x-required-scope": "scrape:write",
  "x-mcp-name": "data_add_proxy_node",
  "x-mcp-annotations": {
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": false,
    "openWorldHint": true
  },
  "security": [
    {
      "ApiKey": []
    },
    {
      "ApiKeyBearer": []
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ProxyNodeCreate"
        }
      }
    }
  },
  "responses": {
    "201": {
      "description": "Added and probed proxy node. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/OwnNode"
          },
          "example": {
            "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248",
            "status": "pending"
          }
        }
      }
    },
    "400": {
      "description": "Invalid input. PROXY_NODE_INVALID or PROXY_NODE_UNSAFE_HOST carry a human-readable message. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "VALIDATION_ERROR",
            "message": "Invalid input. PROXY_NODE_INVALID or PROXY_NODE_UNSAFE_HOST carry a human-readable message. Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "401": {
      "description": "Missing or invalid API key. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "VALIDATION_ERROR",
            "message": "Missing or invalid API key. Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "403": {
      "description": "API key lacks the required scope. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "VALIDATION_ERROR",
            "message": "API key lacks the required scope. Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "409": {
      "description": "You already have the maximum number of proxies (PROXY_NODE_LIMIT_REACHED). Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "RESULT_NOT_READY",
            "message": "You already have the maximum number of proxies (PROXY_NODE_LIMIT_REACHED). Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": true
    },
    "422": {
      "description": "The proxy did not pass the connectivity probe (PROXY_NODE_PROBE_FAILED); the message explains why and nothing is saved. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "VALIDATION_ERROR",
            "message": "The proxy did not pass the connectivity probe (PROXY_NODE_PROBE_FAILED); the message explains why and nothing is saved. Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "429": {
      "description": "API key rate limit exceeded. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "RATE_LIMIT",
            "message": "API key rate limit exceeded. Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": true
    }
  },
  "servers": [
    {
      "url": "https://api.runharvester.com",
      "description": "RunHarvester public API"
    }
  ],
  "parameters": [
    {
      "$ref": "#/components/parameters/IdempotencyKey"
    }
  ]
}

```