#Can help me to find firecrawl server API URL ? Where is it ?
6 messages · Page 1 of 1 (latest)
The Firecrawl API base URL is:
https://api.firecrawl.dev/v2
You can use it with any of the v2 endpoints, for example:
curl -X POST https://api.firecrawl.dev/v2/scrape \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"url": "https://example.com",
"formats": ["markdown"]
}'
You can grab your API key from the dashboard at https://firecrawl.dev/app/api-keys, and the full API reference is available at https://docs.firecrawl.dev/api-reference/introduction.
Let me know if you have any other questions!
thank you very much , but I don't know why I still can not integrate API Key I get this error ? Do you know what it is please ?
Hi Amy,
That error from Dify (ToolProviderCredentialValidation, 'line 1 column 1 (char 0)') means the validation step received an empty or non-JSON response when testing your credentials. A few things to check:
- Make sure the API URL is exactly https://api.firecrawl.dev/v2 with no trailing slash and no extra spaces.
- Re-copy your API key from https://firecrawl.dev/app/api-keys and paste it fresh into Dify. Hidden whitespace or a truncated paste is the most common cause of this error.
- Confirm the key starts with fc- and has not been revoked or rotated.
To verify the key itself is working outside of Dify, you can test it directly:
curl -X POST https://api.firecrawl.dev/v2/scrape \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{"url": "https://example.com", "formats": ["markdown"]}'
If that curl returns a valid JSON response, the key is good and the issue is with how Dify is storing/sending the credential (usually whitespace). If the curl also fails, send me the error and I will dig in further.
how to test it directly ? where do I past these codes ?