All API endpoints are relative to a base URL, which is added as a "prefix" to all API endpoints. This approach avoids the need to always define absolute URLs for endpoints, and increases API portability by simply changing the base URL.
To enter a base URL:
- Navigate to the Provider Dashboard (My APIs).
- In the sidebar, click the Definition tab for your API.
- Click the API Specs tab.
- Click the Settings tab.
- Under Base URL, click Configure.
- In the Edit Base URL dialog, enter a base URL (such as https:// example.com) and click Save.
You can update your base URL from this page at any time. If you are interested in setting up multi-base URLs, check out our guide here.
Notice that the screenshot at the top of the this page includes "Version v1" near the top of the screenshot. All APIs in RapidAPI can be versioned. To learn more about this, see Versioning Your API.
Updated about 1 year ago