# NEAR Query API Beta Is Now Open for Apps Building on B.O.S Pagoda has officially opened the Beta version of NEAR Query API, a fully managed serverless infrastructure offering NEAR blockchain #indexers, storage, and GraphQL endpoints. Developers can now build indexers for any smart contract using JavaScript and the [NEAR Lake Primitives library](https://www.npmjs.com/package/@near-lake/primitives), and store data in custom SQL schemas, all without needing to manage any infrastructure. This approach significantly simplifies the way developers interact with blockchain data and empowers them to build B.O.S applications with great user experiences. NEAR Query API allows developers to store indexer code on-chain and receive an auto-provisioned database with GraphQL API and indexed historical data, continuously updated through an indexer service that closely tracks the blockchain. The GraphQL API supports paginated and aggregate queries such as *count*, *avg*, *min*, etc. It also enables subscriptions through web sockets, allowing you to create user interfaces that update data without page refresh. With QueryAPI, you can quickly get GraphQL endpoints and use them directly in your dApps to enrich the user experience and improve user interface performance. In the latest release, Pagoda moved to a more scalable and stable infrastructure and [open-sourced the code](https://github.com/near/queryapi) to make it easy to run it yourself and contribute to future development. ### **Sample Indexers** Additionally, Pagoda introduced several sample indexers: * A [social feed indexer](https://near.org/dataplatform.near/widget/QueryApi.App?selectedIndexerPath=dataplatform.near/social_feed&view=editor-window) for posts, likes, and comments with a corresponding [component](https://near.org/dataplatform.near/widget/QueryApi.Feed). This API currently powers the activity feed on near.org. * A [B.O.S component indexer](https://near.org/dataplatform.near/widget/QueryApi.App?selectedIndexerPath=roshaan.near/widget-activity-feed&view=editor-window) with a [widget feed](https://near.org/roshaan.near/widget/query-api-widget-feed) that updates automatically with every commit using WebSockets. **User Interface** The NEAR Query API’s [user-friendly interface](https://near.org/dataplatform.near/widget/QueryApi.App), built using B.O.S components, provides easy access to all indexers and key features of the platform that streamline the process of building indexers: * Access to all indexers built on the platform. Developers can learn from practical examples as indexers’ code and schemas are stored on-chain. * Edit code online with autocomplete for easy access to block data and SQL tables for efficient development. * Debug indexers on any block using the browser console for a familiar debugging experience. * Build GraphQL queries using the GraphiQL playground. * Auto-generate JSX code for swift B.O.S component development. * Monitor indexer status and access logs written from JavaScript code. * Start historical indexing from any block. **Documentation** Pagoda created [documentation](https://docs.near.org/bos/queryapi/intro) for QueryAPI to help you get started. Take a look at [how it works](https://docs.near.org/bos/queryapi/how-it-works), read about [indexer functions](https://docs.near.org/bos/queryapi/index-functions), the [context object](https://docs.near.org/bos/queryapi/context-object), and check out the [tutorials](https://docs.near.org/bos/tutorial/indexer-tutorials/posts-indexer). To provide more insight into the capabilities of the NEAR Query API, the product team has prepared a walkthrough video that you can watch [here](https://youtu.be/VwO6spk8D58). **Invitation to Beta Testing** Pagoda invites developers to register their interest in closed Beta testing of NEAR Query API. If you are interested in indexing smart contracts on Mainnet with moderate transactions per day, the team is eager to engage with you and help you get started. Please use [this link](http://bit.ly/near-queryapi-beta) to register your interest. **Build full-stack JavaScript dApps on NEAR** On NEAR, JavaScript developers can build smart contracts with low gas fees as well as create fast and decentralized user interfaces on the B.O.S, powered by QueryAPI, and all without needing to worry about cloud infrastructure. As a next step, Pagoda will be working with B.O.S developers on improving the developer experience of building, debugging, using, and maintaining indexers, as well as performance and scalability to prepare for general availability later this year. Join in this exciting new chapter of smart contract indexing with NEAR Query API!