# SQL to PostgREST Converter

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

**Related docs**

- [Getting started with Neon Data API](/guides/postgres-data-api-get-started)
- [Building a note-taking app](/guides/postgres-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 pages

- [Managed Better Auth and Data API SDK](./postgres-reference-javascript-sdk.md)
- [Generate TypeScript types from your database schema](./postgres-data-api-generate-types.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
