0

I'm sending requests to Custom Search API like this:

GOOGLE_SEARCH_URL=f'https://www.googleapis.com/customsearch/v1?key={GOOGLE_SEARCH_API_KEY}&cx={SEARCH_ENGINE_ID}&q={encoded_text}'

The text in encoded_text could be very large sometimes, and I received a 413 error. What is the length limit for this parameter?

1
  • Can you add more context? if you can, please, provide a example code. Maybe is the library, the header request or something like that Commented Dec 23, 2024 at 4:10

1 Answer 1

1

From the documentation, the limit on the length of the Custom Search API request should be within 2048 characters.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.