Automate

Extend your requests with JavaScript. Run custom scripts before sending requests or after receiving responses. Full access to request and response objects with console output.

JavaScript Powered

Write real JavaScript code. Access fetch API, use async/await, parse JSON - no proprietary syntax.

Console Output

See your script output in real-time. console.log, console.info, console.warn, console.error - all captured.

Full Context

Access request details in pre-script, both request and response in post-script. Timing data included.

Pre-Script
01

Pre-Script

Run JavaScript before each request. Log request details, prepare data, or fetch tokens from other endpoints. Your code runs with full access to the request object - URL, method, headers, and body.

Post-Script
02

Post-Script

Run JavaScript after each response. Access both request and response objects - status codes, headers, body, and timing data. Parse JSON, validate results, or log performance metrics to the console.

Available in Scripts

Pre-Script Context

  • request.url - Target URL
  • request.method - HTTP method
  • request.headers - Request headers
  • request.body - Request body

Post-Script Context

  • response.status - Status code
  • response.body - Response body
  • response.headers - Response headers
  • response.timing - Timing data

Global APIs

  • console - Log output
  • fetch - HTTP requests
  • setTimeout - Async timing
  • async/await - Modern syntax

Console Methods

  • console.log() - Standard output
  • console.info() - Info messages
  • console.warn() - Warnings
  • console.error() - Errors

Ready to automate your workflows?

Download Tigrister and extend your API requests with JavaScript.