Getting Started
Getting Started
Installation
Installation
Inspect Traffic
Inspect Traffic
HTTP Rules (Modify Traffic)
HTTP Rules (Modify Traffic)
Overview
Request Modification — Redirect URL (Map Local, Map Remote)
Request Modification — Replace Strings (Switch Hosts, API Endpoints)
Request Modification — Modify Headers
Request Modification — Modify Request Body
Response Modification — Modify Response Body
Request Modification — Modify Query Params
Request Modification — Modify User Agents
Request Modification — Delay Request
Request Modification — Map Local
Request Modification — Map Remote
Response Modification — Modify DOM/Inject scripts
Response Modification — Cancel Rule
Predefined Functions
Organizing Rule — Grouping
Organizing Rule — Import/Export Rules from File
Organizing Rule — Pause/Resume Requestly
Organizing Rule — Rule Operators
Organizing Rule — Advance Targeting
Organizing Rule — Sharing Rules
Organizing Rule — Pinning Rules
GraphQL - Modify Request & Response
Import / Export — Charles Proxy Rules
Test Rules — Test URL Condition
Test Rules — Test this Rule
Session Book
Session Book
File Server
File Server
Public API
Public API
Guides
Guides
TroubleShooting
TroubleShooting
Subscription & Billing
Subscription & Billing
Getting Started
Getting Started
Installation
Installation
Inspect Traffic
Inspect Traffic
HTTP Rules (Modify Traffic)
HTTP Rules (Modify Traffic)
Overview
Request Modification — Redirect URL (Map Local, Map Remote)
Request Modification — Replace Strings (Switch Hosts, API Endpoints)
Request Modification — Modify Headers
Request Modification — Modify Request Body
Response Modification — Modify Response Body
Request Modification — Modify Query Params
Response Modification — Modify DOM/Inject scripts
Request Modification — Modify User Agents
Request Modification — Delay Request
Response Modification — Cancel Rule
Organizing Rule — Grouping
Organizing Rule — Import/Export Rules from File
Organizing Rule — Pause/Resume Requestly
Organizing Rule — Rule Operators
Organizing Rule — Advance Targeting
Organizing Rule — Sharing Rules
Request Modification — Map Local
Request Modification — Map Remote
Organizing Rule — Pinning Rules
GraphQL - Modify Request & Response
Import / Export — Charles Proxy Rules
Test Rules — Test URL Condition
Predefined Functions
Test Rules — Test this Rule
File Server
File Server
Public API
Public API
Guides
Guides
Session Book
Session Book
Subscription & Billing
Subscription & Billing
Predefined Functions
The following lists each built-in functions which Requestly supports and provides a short description of each one.
Predefined functions are not usable with source conditions. They can only be used with output values.
rq_rand(num_digits)
Returns a random number with the given number of digits (num_digits) passed as the parameter. Max num_digits can be 8.
Supported Rule Types: Headers Rule, Redirect Rule, Replace Rule, QueryParam Rule
Eg: rq_rand(5) → 12345
rq_encode(val)
Returns the value encoded using encodeURIComponent
Supported Rule Types: Headers Rule, Redirect Rule, Replace Rule, QueryParam Rule
rq_decode(val)
Returns the value encoded using decodeURIComponent
Supported Rule Types: Headers Rule, Redirect Rule, Replace Rule, QueryParam Rule
rq_increment(num, step=1)
Returns the a number incremented by then step (Addition method)
Supported Rule Types: Headers Rule, Redirect Rule, Replace Rule, QueryParam Rule
Eg: rq_increment(3, 5) → 8
rq_decrement(num, step=1)
Returns the a number decremented by the step (Subtraction method)
Supported Rule Types: Headers Rule, Redirect Rule, Replace Rule, QueryParam Rule
Eg: rq_decrement(5, 3) → 2
rq_request_initiator_origin()
Returns the origin from where the current request is initiated.
Supported Rule Types: Headers Rule, Redirect Rule, Replace Rule, QueryParam Rule