We provide GraphQL API for solana programs instead of REST API because GraphQL is flexible, fast and developer-friendly. You can choose to query for the exact data you want from the program accounts and get it faster.
How to get data from GraphQL API?
Using curl
You can use a simple curl command to pass the query and get your desired data.