title: API Request to RAPID API gives StatusCode: 401,
body: <pre><code>import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
  
  const cryptoApiHeaders = {
    'x-rapidapi-key': 'coinranking1.p.rapidapi.com',
    'x-rapidapi-host': '935af67341msh072d3f07b71a1f8p1cb0b5jsn44961d90a001',
  };
  
  const baseUrl = 'https://coinranking1.p.rapidapi.com';
  
  const createRequest = (url) =&gt; ({ url, headers: cryptoApiHeaders });
  
  export const cryptoApi = createApi({
    reducerPath: 'cryptoApi',
    baseQuery: fetchBaseQuery({ baseUrl }),
    endpoints: (builder) =&gt; ({
      getCryptos: builder.query({
        query: () =&gt; createRequest('/coins'),
      }),
    }),
  });
  
  export const { useGetCryptosQuery } = cryptoApi;
  </code></pre>
  <p>** I tried to connect api from RapidApi but I keep getting 401 unauthorized.
  I couldn't figured out by myself :3 someone help me please
  **</p>