Trouble with quote marks
I'm using this script to import json via an API with the API call in the following format:
https://api.scaleserp.com/search?api_key=MY_API_KEY&q="test+search"&google_domain=google.co.uk&location=United+Kingdom&gl=uk&hl=en&search_type=news&time_period=custom&time_period_min=6/1/2021&time_period_max=7/31/2021&page=1&num=100&output=json
I need the quote marks ("test search") to get the API in question to deliver an exact match from a Google search but for some reason the script doesn't like it. It works perfectly well without the quote marks but that doesn't give me the exact match results I need. I can also get the required output by simply pasting that API call into a browser so for some reason the script just doesn't like the quotes.
Any ideas how I can fix this?
Ian
Maybe try replacing those with single quotes.
any solution for that, tried with single quotes but doesn't work either
Yes, use the encoded format for the quote mark I.e. %22 instead of “