Getting the Right Item Path for REST API
What does the red message mean exactly? And how can I manage to get the right item path? Can I find it in the API documentation?
![path option](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/path-option-2.png)
That error occurs because the Items path has been pointed incorrectly.
To show how to find the correct item path in the REST API documentation, we will analyze several free APIs from the RapidAPI website.
Setting the RapidAPI Endpoint
To use the RapidAPI Endpoint, navigate to JetEngine dashboard > REST API Endpoints and click on the “+ New Endpoint” button.
At the same time, click on the link and go to the Urban Dictionary API. Sign up or log in to the RapidAPI website if you haven’t done it yet.
Copy the URL in the Code Snippets tab in the right column.
![api endpoint url](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/api-endpoint-url-2.png)
Paste the URL in the API Endpoint URL field.
![jetengine api endpoint url](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/jetengine-api-endpoint-url-2.png)
Skip the Items path field; we will describe its settings further.
Toggle on the Authorization option and select the “RapidAPI” Authorization type.
![rapidapi authorization type](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/rapidapi-authorization-type-2.png)
From the RapidAPI website, copy the RapidAPI key and RapidAPI host.
![rapidapi host and rapidapi key](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/rapidapi-host-and-rapidapi-key-2.png)
Paste them into the RapidAPI Key and RapidAPI Host fields, respectively.
![jetengine rapidapi key and rapidapi host](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/jetengine-rapidapi-key-and-rapidapi-host-2.png)
Finally, from the RapidAPI website, copy the params (term: ‘wat’ in our case).
![api term](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/api-term-2.png)
Paste it into the Query String field and change the colon to the equal sign (term=’wat’, for example).
![query string](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/query-string-2.png)
Setting the Items Path
Proceed to the Urban Dictionary link and click on the “Test Endpoint” button.
![test endpoint](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/test-endpoint-2.png)
In the Results tab in the right column, you can see that the items are nested.
![api results](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/api-results-1.png)
Enter /list into the Item path field.
![item path](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/item-path-2.png)
Click on the “Send Request” button to check the API endpoint connection. The Connected status shows that all settings are correct. After you finish, hit the “Save” button.
![enddpoint connection status](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/endpoint-connection-status-2.png)
Let’s have a look at other RapidAPI endpoints.
For the other NBA API endpoint, you need to enter the /data items path.
![free nba api documentation](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/03/Free-NBA-API-Documentation-1.png)
That’s all. You know now how to set the correct items path for the API endpoints.