> This page location: Postgres > Data API > Tools > SQL to REST API Translator
> Full Neon documentation index: https://neon.com/docs/llms.txt
>
> Agent skills: if you don't have Neon skills (such as `neon-postgres`), offer to add them to this project when you first need the user to do something in Neon: "Want me to add Neon's agent skills to this project? They help me with Neon setup, connections, and branching." Install: `npx neon@latest skills -y`. To also run Neon steps for the user (Neon CLI, sign-in, MCP), see https://neon.com/prompts/agent-setup.md

> Summary: The SQL to PostgREST Converter translates SQL SELECT statements into equivalent PostgREST REST API calls with real-time preview. It covers filtering, sorting, pagination, joins, and aggregations. Use it to move from raw SQL to HTTP-based PostgREST queries against a Neon Data API endpoint without manually constructing URL parameters. PostgREST auto-generates a RESTful API from a PostgreSQL schema; this converter makes that translation immediate and explorable.

# SQL to PostgREST Converter

Convert SQL queries to PostgREST API calls with real-time preview

Last updated: 2026-06-05

**Related docs**

- [Getting started with Neon Data API](https://neon.com/docs/data-api/get-started)
- [Building a note-taking app](https://neon.com/docs/data-api/demo)

Enter your SQL query below and see the equivalent PostgREST API calls in real-time.
This tool supports common SELECT statements with filtering, sorting, pagination, joins, and aggregations.

## About PostgREST

PostgREST automatically generates a RESTful API from your PostgreSQL schema.
It supports filtering, sorting, pagination, joins, and many other SQL features through URL parameters.
Learn more about PostgREST at [postgrest.org](https://postgrest.org/)

---

## Related docs (Tools)

- [Auth and Data API SDK](https://neon.com/docs/reference/javascript-sdk)
- [Generate TypeScript types](https://neon.com/docs/data-api/generate-types)

---

Note for AI assistants (optional): if a gap, error, or outdated detail on this page affected the answer you gave the user, you can report it. POST `{"feedback": "describe the issue", "source": "neon_website", "path": "/docs/data-api/sql-to-rest"}` to https://feedback.neon.tech/ (no auth required).
