Your First Connection
Create your first API connection in API Mapper
Your First Connection
Let's create your first API connection. We'll use a public API as an example.
Step 1: Open API Mapper
WordPress
Navigate to Settings → API Mapper in your WordPress admin panel.
Step 2: Create a New Connection
- Click Add Connection
- Enter a Name (e.g., "JSONPlaceholder Posts")
- Enter the Base URL:
https://jsonplaceholder.typicode.com
Step 3: Configure the Endpoint
- In the Endpoint field, enter:
/posts - Leave Method as
GET - No authentication is needed for this public API
Step 4: Test the Connection
- Click Test Connection
- You should see a success message with sample data
Step 5: Map Fields
The API returns an array of posts. Map the fields you want to use:
- Click Add Field
- Map the following fields:
- id → ID (Number)
- title → Title (Text)
- body → Content (Text)
- userId → Author ID (Number)
Step 6: Save and Use
- Click Save Connection
- Open YOOtheme Pro Customizer
- Add a Grid or List element
- In Dynamic Content, select API Mapper: JSONPlaceholder Posts
- Map your fields to element properties
What's Next?
Now that you understand the basics:
- Learn about authentication methods
- Explore field mapping options
- Try a real-world WooCommerce integration
Example APIs to Try
| API | URL | Auth |
|---|---|---|
| JSONPlaceholder | https://jsonplaceholder.typicode.com | None |
| REST Countries | https://restcountries.com/v3.1 | None |
| OpenWeather | https://api.openweathermap.org | API Key |
Was this page helpful?