Quick Start

  1. Open HeronTool's "Query" tool page.
  2. Paste a full URL or query string (e.g., ?page=2&sort=asc) into the input box.
  3. Click "Parse" – the tool automatically splits parameter names and values into a clear table.
  4. For encoding, switch to "Encode" mode, enter raw string, click "Encode" to get safe URL format.

Build & Modify Queries

  • In "Build" mode, add parameter names and values line by line; the tool generates a proper query string in real-time.
  • To modify existing parameters, directly edit values in the table and click "Regenerate" to update the URL.
  • Supports batch operations: copy table content to Excel, modify, paste back – efficient for many parameters.

Advanced Tips & Integration

  • For complex data extraction, combine with HeronTool's JSONPath tool: first get API response via the query tool, then copy JSON to JSONPath extractor, and use expressions (e.g., $.items[0].id) to precisely filter fields.
  • When encoding, note that & and = must retain semantics; HeronTool automatically distinguishes key-value pairs to avoid wrong escaping.
  • Clean up unnecessary parameters to reduce request payload and improve API call performance.

FAQ

Q: Parsed Chinese parameters become garbled. What to do?
A: In Encode mode, first click "Decode" to revert encoding, then parse – this ensures proper display.

Q: How to quickly test multiple query variants?
A: Use Build mode to duplicate parameter sets; each time click "Generate" to copy the result, then paste into browser or curl command line.

Q: How do JSONPath and the query tool work together?
A: First, parse URL params to get the target API endpoint, then call the API, and finally use JSONPath to extract specific data from the response.