# Request Query Params Example

> Learn how to access URL query parameters with g.req.query in API Maker using a clear example.

Source: https://docs.apimaker.dev/v1/examples/req/query/reqQueryParams.html

To get the value of requested query params, use `g.req.query`.

```ts
const req_query = g.req.query;
```

## Related

- [The global object g](https://docs.apimaker.dev/v1/docs/pre-defined-terms/global-object-g.html) · [Custom APIs](https://docs.apimaker.dev/v1/docs/apis-all/custom-apis/user-created-custom-api.html)
