Select an action, fill in parameters, and send a request. When logged in, your API key is loaded automatically.
Updates automatically when you change action or parameters.
curl -X POST "https://hstockplus.com/api/v2" \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "action=categories"https://hstockplus.com/api/v2Todas as requisições da API devem ser enviadas via HTTP POST para este endpoint.
Optional. Target language code. Use one of the supported codes listed below. When set and not en, translatable fields are returned in that language. If a translation is not available yet, the API returns English.
Supported language codes
zhesfrdejakoptpt-BRruarhiviurbn-BDen(default — omit lang or use en)Use these exact values for the lang parameter. Alias: jp is accepted as ja.
Supported on read actions: categories, services, products, inventory ((subproduct names)), sms_projects, e sms_countries. Omit lang or use en for English.
category and subcategory filter parameters on services/products always use canonical English names, even when lang is set.
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=services" \
-d "lang=zh"Get all categories and each category's subcategories. Use these values to filter the Services List by category or subcategory.
| Parameter | Description | Required |
|---|---|---|
| key | Your API key | Yes |
| action | categories | Yes |
| lang | Optional language code. See supported codes in Optional language (lang) above. | No |
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=categories" \
-d "lang=zh"{
"categories": [
{
"category": "Instagram",
"subcategories": ["Followers", "Comments", "Likes"]
},
{
"category": "Email Accounts",
"subcategories": ["Gmail", "Outlook"]
}
]
}List active shops with basic info, product count, and review ratings. Shop names are masked for privacy.
| Parameter | Description | Required |
|---|---|---|
| key | Your API key | Yes |
| action | shops | Yes |
| page | Page number (default 1). | No |
| limit | Items per page (default 20). | No |
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=shops"With pagination:
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=shops" \
-d "page=1" \
-d "limit=20"List marketplace products only (no SMM services). Same fields as product rows in Services List, including id (MongoDB product id), service (friendly service number), description and imageUrl. Optional productIds returns only those products (friendly service numbers from the list and/or MongoDB product ids, comma-separated or JSON array, max 100).
| Parameter | Description | Required |
|---|---|---|
| key | Your API key | Yes |
| action | products | Yes |
| page | Page number (default 1). Used when limit > 0. | No |
| limit | Items per page (default 0 = return all). | No |
| category | Filter by category name (from Get Categories). Returns only products in this category. | No |
| subcategory | Filter by subcategory name (from Get Categories). Returns only products in this subcategory. | No |
| shopId | Filter by shop ID (from Shops List). Returns only that shop's products. | No |
| productIds | Optional list of product IDs (service numbers and/or MongoDB ids). Comma-separated, JSON array, or repeated fields. Returns only those products (max 100). | No |
| lang | Optional language code. See supported codes in Optional language (lang) above. | No |
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=products"Filter by product IDs:
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=products" \
-d "productIds=2,5,9"With pagination:
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=products" \
-d "page=1" \
-d "limit=50"Filter by category or subcategory:
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=products" \
-d "category=Accounts-Email"
# Or filter by subcategory:
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=products" \
-d "subcategory=Gmail"Get all available services with optional pagination. Each row includes id (MongoDB entity id), service (friendly service number), stock, and entityType (smm or product). Optional entityType returns only product or only smm rows. Optional category and subcategory parameters return only services in that category or subcategory (values from the Get Categories API). Optional shopId returns only products and services for that shop (use shopId from Shops List). Optional productIds returns only matching marketplace products (SMM services are omitted when productIds is set).
| Parameter | Description | Required |
|---|---|---|
| key | Your API key | Yes |
| action | services | Yes |
| page | Page number (default 1). Used when limit > 0. | No |
| limit | Items per page (default 0 = return all). | No |
| category | Filter by category name (from Get Categories). Returns only services in this category. | No |
| subcategory | Filter by subcategory name (from Get Categories). Returns only services in this subcategory. | No |
| shopId | Filter by shop ID (from Shops List). Returns only that shop's products and SMM services. | No |
| entityType | Optional filter: product or smm. Returns only marketplace products or only SMM services. | No |
| productIds | Optional list of product IDs (service numbers and/or MongoDB ids). Comma-separated, JSON array, or repeated fields. Returns only those products; SMM rows are omitted. | No |
| lang | Optional language code. See supported codes in Optional language (lang) above. | No |
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=services" \
-d "lang=zh"With pagination:
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=services" \
-d "page=1" \
-d "limit=50"Filter by category or subcategory:
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=services" \
-d "category=Instagram"
# Or filter by subcategory:
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=services" \
-d "subcategory=Followers"Filter by entity type:
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=services" \
-d "entityType=product"{
"services": [
{
"id": "507f1f77bcf86cd799439011",
"service": 1,
"name": "Instagram Followers",
"type": "Default",
"category": "Instagram",
"rate": "0.50",
"min": 100,
"max": 10000,
"refill": true,
"cancel": false,
"stock": 10000,
"entityType": "smm",
"autoDelivery": true
},
{
"id": "507f1f77bcf86cd799439012",
"service": 2,
"name": "Gmail Account - USA",
"type": "Default",
"category": "Accounts-Email",
"rate": "25.00",
"min": 1,
"max": 50,
"refill": false,
"cancel": false,
"stock": 50,
"entityType": "product",
"autoDelivery": true,
"description": "Verified Gmail account with recovery email",
"imageUrl": "https://example.com/uploads/products/gmail.webp"
}
],
"total": 150,
"page": 1,
"limit": 50,
"total_pages": 3
}Each row includes id (MongoDB entity id) and service (friendly service number for orders), stock, entityType (smm or product), and autoDelivery. Product rows also include description and imageUrl. When limit is 0 or omitted, all services are returned and page/limit equal total.
Get current stock and availability for a service by its ID (same ID as in the services list). For marketplace products, the JSON includes subproducts: an array of active variants, each with subproductId, name, and stock (display stock for that variant).
| Parameter | Description | Required |
|---|---|---|
| key | Your API key | Yes |
| action | inventory | Yes |
| service | Service ID (from services list) | Yes |
| lang | Optional language code. See supported codes in Optional language (lang) above. | No |
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=inventory" \
-d "service=23501"{
"service": 1,
"stock": 10000,
"available": true,
"rate": "0.5000",
"entityType": "smm",
"autoDelivery": true
}{
"service": 23501,
"stock": 42,
"available": true,
"rate": "25.0000",
"min": 1,
"max": 42,
"entityType": "product",
"autoDelivery": true,
"subproducts": [
{ "subproductId": "674a1f77bcf86cd799439011", "name": "1 Month", "stock": 42 },
{ "subproductId": "674a1f77bcf86cd799439012", "name": "3 Months", "stock": 0 }
]
}Response includes rate (per unit, same string format as the services list), entityType (smm or product), and autoDelivery (true = auto-delivery, false = supplier fulfills manually). For product services, min and max match the primary subproduct row in the services list; if that subproduct cannot fulfill your add order, the platform may select another subproduct and charge its unit price. The subproducts array lists every active variant with display stock; SMM inventory responses omit subproducts.
Place a standard order with link and quantity. Link: for SMM services (e.g. followers, likes) — required, use the URL to the content (e.g. Instagram post); for product orders (e.g. accounts) — optional, if empty the system uses your account email for delivery.
| Parameter | Description | Required |
|---|---|---|
| key | Your API key | Yes |
| action | add | Yes |
| service | Service ID | Yes |
| link | Link: For SMM orders (e.g. followers, likes, comments): required — URL or link to the content (e.g. Instagram post URL). For product orders (e.g. accounts): optional — delivery email or reference; if empty, the system uses your account email. | No |
| quantity | Quantity to order | Yes |
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=add" \
-d "service=1" \
-d "link=https://instagram.com/username" \
-d "quantity=1000"{
"order": 23501
}Obter o status de um pedido.
| Parameter | Description |
|---|---|
| key | Your API key |
| action | status |
| order | Order ID |
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=status" \
-d "order=23501"{
"status": "In progress",
"charge": "5.00",
"start_count": 1000,
"remains": 500,
"currency": "USD",
"autoDelivery": true
}For product orders (e.g. accounts), when the order is fully or partially delivered, the response includes an "accounts" array with the delivered account credentials (one string per account). For partial delivery, only the accounts delivered so far are returned.
autoDelivery: true if the order is fulfilled automatically (e.g. SMM, auto/inventory products); false if the supplier must fulfill manually (may take some time).
{
"status": "Completed",
"charge": "10.00",
"start_count": 5,
"remains": 0,
"currency": "USD",
"entityType": "product",
"autoDelivery": true,
"accounts": [
"user1:pass1",
"user2:pass2"
]
}Obter seu saldo atual.
| Parameter | Description |
|---|---|
| key | Your API key |
| action | balance |
curl -X POST https://hstockplus.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=balance"{
"balance": "100.00",
"currency": "USD"
}Dedicated endpoints for SMS verification services.
Action: sms_projects
| Parameter | Description |
|---|---|
| key | Your API key |
| action | sms_projects |
| country | Optional. Filter by country ID (e.g. 'us', 'gb') |
| lang | Optional language code. See supported codes in Optional language (lang) above. |
[
{
"project_id": "65f...",
"name": "OpenAI / ChatGPT",
"price": "0.5000",
"country_id": "us",
"country_title": "United States"
}
]Action: sms_countries
| Parameter | Description |
|---|---|
| key | Your API key |
| action | sms_countries |
| lang | Optional language code. See supported codes in Optional language (lang) above. |
[
{
"country_code": "us",
"country_name": "United States"
},
{
"country_code": "gb",
"country_name": "United Kingdom"
}
]Action: add_sms
| Parameter | Description | Required |
|---|---|---|
| key | Your API key | |
| action | add_sms | |
| project_id | Project ID from sms_projects | Yes |
| quantity | Number of numbers (1-10) | No (Default 1) |
| country | Country code (e.g. 'us') | No |
| phone | Phone number to reuse | No |
{
"orders": [
{
"order": 12345,
"phone": "+1234567890",
"country": "us",
"status": "active"
}
]
}Action: sms_code
| Parameter | Description |
|---|---|
| key | Your API key |
| action | sms_code |
| order | Order ID |
{
"status": "completed",
"code": "123456",
"sms_content": "Your verification code is 123456"
}
// OR
{
"status": "waiting",
"message": "Waiting for code"
}Action: sms_status
| Parameter | Description |
|---|---|
| key | Your API key |
| action | sms_status |
| order | Order ID |
{
"status": "code_received",
"phone": "+1234567890",
"code": "123456",
"charge": "0.5000",
"currency": "USD",
"expires_at": "2023-01-01T12:00:00.000Z"
}Respostas de erro comuns que você pode encontrar.
{"error": "Invalid API key"}{"error": "Invalid action"}{"error": "Service ID is required"}{"error": "Insufficient balance"}{"error": "Order not found"}{"error": "Service not found"}Precisa de ajuda? Entre em contato conosco em support@hstockplus.net
