© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
14 replies
kevbamboo

No API key found in request.

🟡javascript
no 'apikey' request header or url param was found.
I'm completely new to supabase and js so I was mostly asking chatgpt but it doesn't work for this

in js:
const supabaseURL = "myurl";
const supabaseKey = "secret key";
const supabaseClient = supabase.createClient(supabaseURL, supabaseKey);

(async () => {
  const { data, error } = await supabaseClient.from("profiles").select("*");
  console.log("Test data:", data, "Error:", error);
})();
const supabaseURL = "myurl";
const supabaseKey = "secret key";
const supabaseClient = supabase.createClient(supabaseURL, supabaseKey);

(async () => {
  const { data, error } = await supabaseClient.from("profiles").select("*");
  console.log("Test data:", data, "Error:", error);
})();


In html:
 <script src="https://unpkg.com/@supabase/supabase-js@2"></script>
    <script src="myjs.js"></script>
 <script src="https://unpkg.com/@supabase/supabase-js@2"></script>
    <script src="myjs.js"></script>
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

401 'No API key found in request'
SupabaseSSupabase / help-and-questions
2mo ago
Twitter provider - No API key found in request
SupabaseSSupabase / help-and-questions
4y ago
{"message":"No API key found in request","hint":"No `apikey` request header or url param was found."
SupabaseSSupabase / help-and-questions
4mo ago
[SOLVED] No api key found - despite having api key in params
SupabaseSSupabase / help-and-questions
4y ago