> For the complete documentation index, see [llms.txt](https://react-use-api.gitbook.io/react-use-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://react-use-api.gitbook.io/react-use-api/api/request-function.md).

# Request Function

### **Code**

```jsx
const [data, state, request] = useApi(config, options)

// request the API data again
request(config?: ReactUseApi.Config, keepState = false)
```

### **Request Arguments**

A function allows requesting API data again. This function will trigger re-render.

| Name      | Type               | Default                         | Description                                                                                                                       |
| --------- | ------------------ | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| config    | ReactUseApi.Config | The config passed from useApi() | An axios' config object to fetch API data.                                                                                        |
| keepState | boolean            | false                           | Set to true to maintain current state data, which facilitates combining previous data with current data, such as table list data. |
