Protected
apiProtected
paramsCalls the SearchAPI.
Accepts an input query and fetches the result from SearchApi.
Search query.
NOTE: This method is the core search handler and processes various types of search results including Google organic results, videos, jobs, and images.
Protected
buildBuilds a URL for the SearchApi request.
A string representing the built URL.
Converts the SearchApi instance to JSON. This method is not implemented and will throw an error if called.
Throws an error.
Static
lc_
SearchApi Class Definition.
Provides a wrapper around the SearchApi.
Ensure you've set the SEARCHAPI_API_KEY environment variable for authentication. You can obtain a free API key from https://www.searchapi.io/.
Example