The JQ API

A powerful HTTP API for processing JSON data using jq filter expressions. Perfect for data transformation, filtering, and extraction tasks.

API Endpoints

POST /process - Process JSON with jq filter

Interactive API Tester

• No account required - any UUID can be used as an API key

• Unique UUIDs are rate limited to 1,000 requests per day

• Anonymous usage (no token) limited to 100 requests per day

Examples

Extract Field from Object

Input: {"name": "John", "age": 30}
Filter: .name
Output: "John"

Filter Array

Input: [1, 2, 3, 4, 5]
Filter: .[] | select(. > 2)
Output: [3, 4, 5]

Transform Object

Input: {"firstName": "John", "lastName": "Doe"}
Filter: { fullName: (.firstName + " " + .lastName) }
Output: {"fullName": "John Doe"}

cURL Usage

Basic Request

curl -X POST https://thejqapi.com/process \
  -H "Content-Type: application/json" \
  -d '{"input": {"name": "John", "age": 30}, "filter": ".name"}'

With Authentication

curl -X POST https://thejqapi.com/process \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-token" \
  -d '{"input": [1,2,3,4,5], "filter": ".[] | select(. > 2)"}'

📖 jq Documentation

For comprehensive jq filter syntax and functions, visit the official documentation.

View jq Manual

📚 API Documentation

Complete API reference with examples, error codes, and usage guidelines.

View API Docs

Need higher rate limits? If you need more than 1,000 requests per day for your UUID, please contact us at contact@thejqapi.com