{{$category.method}}| Expression | Example Result |
|---|---|
{{$person.fullName}} | Rachel Wheeler |
{{$internet.email}} | Arno.Huels33@yahoo.com |
{{$commerce.productName}} | Elegant Plastic Bike |
| Use Case | Expression | Description |
|---|---|---|
| Integer range | {{$number.int(min=0,max=10000)}} | Random integer between 0 and 10,000 |
| Readable phone | {{$phone.number(style='human')}} | Human-readable phone format |
| Multiple of N | {{$number.int(multipleOf=3)}} | Integer divisible by 3 |
| Array element | {{$helpers.arrayElement(['red','blue','green'])}} | Random color from array |
| Date range | {{$date.between(from='2024-01-01',to='2024-12-31',format='yyyy-MM-dd')}} | Date between specified range |
{{$location.streetAddress}}, {{$location.city}}, {{$location.state}}, {{$location.zipCode}}, {{$location.country}}8507 Hudson Alley, Rochester, Wisconsin, 96512, United States| Parameter Type | Description |
|---|---|
| Query parameters | URL query strings |
| Path parameters | Dynamic URL segments |
| Header parameters | HTTP headers |
| Cookie parameters | Cookie values |
| Body parameters | JSON body fields (via JSON path) |
{{variables}}{
"data": [
{% for i in range(0, 20) %}
{% if i>1 %},{% endif %}
{
"id": {{i}},
"firstname": "{{$person.firstName}}",
"lastname": "{{$person.lastName}}"
}
{% endfor %}
],
"success": true
}"success": true field| Syntax | Purpose |
|---|---|
{{$...}} | Invokes Faker.js for random values |
{% for ... %} | Nunjucks loop structure |
{{i}} | Nunjucks loop variable (not an Apidog variable) |
| Property | Purpose | Default |
|---|---|---|
| HTTP Status Code | Simulate errors or special cases | 200 |
| Response Delay | Simulate network latency (milliseconds) | 0 |