API Methods
API
HTTP Method
API URL
Response format
POST
https://my.persiansmm.com/api/v2
JSON
Service list
Parameters
key
action
Description
Your API key
services
Example response
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "First Category",
"rate": "0.90",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true
},
{
"service": 2,
"name": "Comments",
"type": "Custom Comments",
"category": "Second Category",
"rate": "8",
"min": "10",
"max": "1500",
"refill": false,
"cancel": true
}
]
Add order
Parameters
key
action
service
link
quantity
runs (optional)
interval (optional)
Description
Your API key
add
Service ID
Link to page
Needed quantity
Runs to deliver
Interval in minutes
Parameters
key
action
service
link
comments
Description
Your API key
add
Service ID
Link to page
Comments list separated by \r\n or \n
Parameters
key
action
service
username
min
max
posts (optional)
old_posts (optional)
delay
expiry (optional)
Description
Your API key
add
Service ID
Username
Quantity min
Quantity max
Use this parameter if you want to limit the number of new (future) posts that will be parsed and for which orders will be created. If posts parameter is not set, the subscription will be created for an unlimited number of posts.
Number of existing posts that will be parsed and for which orders will be created, can be used if this option is available for the service.
Delay in minutes. Possible values: 0, 5, 10, 15, 20, 30, 40, 50, 60, 90, 120, 150, 180, 210, 240, 270, 300, 360, 420, 480, 540, 600
Expiry date. Format d/m/Y
Example response
{
"order": 23501
}
Order status
Parameters
key
action
order
Description
Your API key
status
Order ID
Example response
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
Multiple orders status
Parameters
key
action
orders
Description
Your API key
status
Order IDs (separated by a comma, up to 100 IDs)
Example response
{
"1": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"10": {
"error": "Incorrect order ID"
},
"100": {
"charge": "1.44219",
"start_count": "234",
"status": "In progress",
"remains": "10",
"currency": "USD"
}
}
Create refill
Parameters
key
action
order
Description
Your API key
refill
Order ID
Example response
{
"refill": "1"
}
Create multiple refill
Parameters
key
action
orders
Description
Your API key
refill
Order IDs (separated by a comma, up to 100 IDs)
Example response
[
{
"order": 1,
"refill": 1
},
{
"order": 2,
"refill": 2
},
{
"order": 3,
"refill": {
"error": "Incorrect order ID"
}
}
]
Get refill status
Parameters
key
action
refill
Description
Your API key
refill_status
Refill ID
Example response
{
"status": "Completed"
}
Get multiple refill status
Parameters
key
action
refills
Description
Your API key
refill_status
Refill IDs (separated by a comma, up to 100 IDs)
Example response
[
{
"refill": 1,
"status": "Completed"
},
{
"refill": 2,
"status": "Rejected"
},
{
"refill": 3,
"status": {
"error": "Refill not found"
}
}
]
Create cancel
Parameters
key
action
orders
Description
Your API key
cancel
Order IDs (separated by a comma, up to 100 IDs)
Example response
[
{
"order": 9,
"cancel": {
"error": "Incorrect order ID"
}
},
{
"order": 2,
"cancel": 1
}
]
User balance
Parameters
key
action
Description
Your API key
balance
Example response
{
"balance": "100.84292",
"currency": "USD"
}
Text copied