Enterprise API
Authentication
Authorization: Bearer <NETSHARE_API_KEY>
Core Endpoints
| Endpoint | Description |
|---|
POST /v1/network/request | Execute a network exit request |
POST /v1/network/session/open | Create a sticky session |
POST /v1/network/session/rotate | Rotate the network exit |
GET /v1/network/usage | Usage and quality metrics |
Request Fields
| Field | Type | Description |
|---|
target_url | string | Target URL |
zone | string | Exit pool |
geo.country | string | Country code |
geo.city | string | City slug |
geo.asn | number | Specific ISP ASN |
session.mode | enum | rotate / sticky |
session.ttl_seconds | number | Sticky session duration |
import axios from "axios";
const resp = await axios.post(
"https://api.netshare.ai/v1/network/request",
{
target_url: "https://example.com",
zone: "residential-global",
geo: { country: "US", city: "new_york" },
session: { mode: "sticky", ttl_seconds: 180 }
},
{ headers: { Authorization: `Bearer ${process.env.NETSHARE_API_KEY}` } }
);
Next: Account Management API