RapidAPI connection help

Hello,
I am attempting to use this rapidapi.com with the http - make a request for this:
neither of the links work.

For this API: answer-the-public – I might not be doing this correctly?

GET /general/google HTTP/1.1
X-Rapidapi-Key: c76e7a68ddmshc5fba4049faf7ebp11a1aajsn45ec564cf62d
X-Rapidapi-Host: answer-the-public1.p.rapidapi.com
Host: answer-the-public1.p.rapidapi.com

How to call an API on RapidAPI

Use the HTTP “Make an API Key Auth Request” module.

Create a new keychain connection and insert your RapidAPI API Key.

Key: <YOUR_RAPIDAPI_KEY>
API Key parameter name: X-RapidAPI-Key

You can reuse this RapidAPI keychain for all API calls to RapidAPI – you’ll just need to change the X-RapidAPI-Host value based on the API you are calling.

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

Example

Output

Module Export

You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.

  1. Copy the JSON code below by clicking the copy button when you mouseover the top-right of the code block

  2. Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the canvas.

  3. Click on each imported module and save it for validation. You may be prompted to remap some variables and connections.

Click to Expand Module Export Code

JSON - Copy and Paste this directly in the scenario editor

{"subflows":[{"flow":[{"id":97,"module":"http:ActionSendDataAPIKeyAuth","version":3,"parameters":{"auth":28615,"handleErrors":true},"mapper":{"url":"https://answer-the-public1.p.rapidapi.com/general/google","serializeUrl":false,"method":"get","headers":[{"name":"X-Rapidapi-Host","value":"answer-the-public1.p.rapidapi.com"}],"qs":[],"bodyType":"","parseResponse":true,"timeout":"20","shareCookies":false,"ca":"","rejectUnauthorized":true,"followRedirect":true,"useQuerystring":false,"gzip":true,"useMtls":false,"followAllRedirects":false},"metadata":{"designer":{"x":60,"y":788},"parameters":[{"name":"auth","type":"keychain:apikeyauth","label":"Credentials","required":true},{"name":"handleErrors","type":"boolean","label":"Evaluate all states as errors (except for 2xx and 3xx )","required":true}]}}]}],"metadata":{"version":1}}

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

Sorry, I’m new to this stuff.

Does this look correct:

{
“name”: “SSB - Answer The Public RapidAPI”,

{“subflows”:[{“flow”:[{“id”:97,“module”:“http:ActionSendDataAPIKeyAuth”,“version”:3,“parameters”:{“auth”:28615,“handleErrors”:true},“mapper”:{“url”:“https://answer-the-public1.p.rapidapi.com/general/google",“serializeUrl”:false,“method”:“get”,“headers”:[{“name”:“X-Rapidapi-Host”,“value”:“answer-the-public1.p.rapidapi.com”}],“qs”:[],“bodyType”:“”,“parseResponse”:true,“timeout”:“20”,“shareCookies”:false,“ca”:“”,“rejectUnauthorized”:true,“followRedirect”:true,“useQuerystring”:false,“gzip”:true,“useMtls”:false,“followAllRedirects”:false},“metadata”:{“designer”:{“x”:60,“y”:788},“parameters”:[{“name”:“auth”,“type”:“keychain:apikeyauth”,“label”:“Credentials”,“required”:true},{“name”:“handleErrors”,“type”:“boolean”,“label”:"Evaluate all states as errors (except for 2xx and 3xx )”,“required”:true}]}}]}],“metadata”:{“version”:1}}

"flow": [
    {
        "id": 5,
        "module": "http:ActionSendDataAPIKeyAuth",
        "version": 3,
        "parameters": {
            "auth": 51210,
            "handleErrors": false
        },
        "mapper": {
            "url": "https://answer-the-public1.p.rapidapi.com/general/google",
            "serializeUrl": false,
            "method": "get",
            "headers": [],
            "qs": [

That doesn’t look correct.

1. This forum might have or already changed your text

When pasting text into this forum, you should format the JSON or example text using the rich-text editor, otherwise the forum software might modify the displayed text, and you might get incorrect answers from others because of it.

Some things this forum software might do to mangle your text:

– remove extra spaces (which may be necessary)
– convert links to titles (when copied is incorrect)
– incorrect joined links
– convert single and double quotes to smart angled quotes ()
– emojis
– etc.

This interferes with you receiving correct answers, because it:

– makes JSON invalid (you can verify when copy-paste into https://jsonformatter.org)
– makes incorrect text examples when we need to build a pattern for text parsing

2. To prevent this in future, please format text in code blocks

These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

3. You might need to re-copy the original text

Once the post has been submitted, it’s too late to format it since it’s already butchered, and you need to make a re-copy of the text, and format it before submitting the forum post.

Please let us know once you have corrected the issue. This will avoid others potentially providing wrong answers based on incorrect text in your question.

Thank you!

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

Please let me know what to fix:

{
“name”: “SSB - Answer The Public RapidAPI”,

{“subflows”:[{“flow”:[{“id”:97,“module”:“http:ActionSendDataAPIKeyAuth”,“version”:3,“parameters”:{“auth”:28615,“handleErrors”:true},“mapper”:{“url”:“https://answer-the-public1.p.rapidapi.com/general/google",“serializeUrl”:false,“method”:“get”,“headers”:[{“name”:“X-Rapidapi-Host”,“value”:“answer-the-public1.p.rapidapi.com”}],“qs”:[],“bodyType”:“”,“parseResponse”:true,“timeout”:“20”,“shareCookies”:false,“ca”:“”,“rejectUnauthorized”:true,“followRedirect”:true,“useQuerystring”:false,“gzip”:true,“useMtls”:false,“followAllRedirects”:false},“metadata”:{“designer”:{“x”:60,“y”:788},“parameters”:[{“name”:“auth”,“type”:“keychain:apikeyauth”,“label”:“Credentials”,“required”:true},{“name”:“handleErrors”,“type”:“boolean”,“label”:"Evaluate all states as errors (except for 2xx and 3xx )”,“required”:true}]}}]}],“metadata”:{“version”:1}}

Make a new copy. You cannot copy from this forum since your text is already destroyed.

To allow us to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Please share screenshots of your scenario, any error messages, relevant module fields, and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario Blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Following these steps will allow others to assist you here. Thanks!

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

Please review the image?
Its the script you gave me to insert.
It shows there is an error
Is the script you provided in the correct location?

You have to follow the instructions in my module export section to paste the example into your scenario editor.

Then, you still have to set up the connection correctly.

If you need further assistance, please provide the following:

  • Screenshots of setting up the connection.

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!