Best solution is to import data from 3rd party API into your database. By this you do not need to rely on any API.
Your page performance will also be increased as it will reduce external request.
So you need to do one time job to fetch all the data from API, stores it into your database. For flag image, if API is providing you image, then it must be in base64 which you can directly store in your Database table.
Related Posts:
- Redesigning Custom Post Type “Add New” page
- WooCommerce store with ~30,000 products [closed]
- Can we hook a static method of a class to add_action inside that class?
- Is there any record of installed plugins in the database?
- Install an external plugin within the current plugin
- How can I remove a hooked action created by a plugin?
- Being notified when some YouTube video in some post becomes unavailable
- Custom headers for the WordPress plugin directory
- Is it possible to run plugin code when a multisite blog is deleted?
- plugin wants to update to wrong plugin
- How can I add a custom header to a custom template in a plugin without using the theme folders
- Trying to avoid including wp-load.php
- Stackoverflow type of badge plugin giving warnings in WordPress 3.5
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- How to add terms to a post depending on its title?
- Twillio How To Send SMS for Custom Post Type
- Woocommerce category description as subtitle
- Custom values are not translated
- What Triggers a Plugin Update Alert
- Make the plugin directory recognize new version numbers
- Plugin.php: PHP Notice: Undefined offset: 0 in
- How to include admin-ajax when loading external javascript
- WooCommerce Dynamic Cart Pricing
- Upgrading WordPress 4.0 asks for FTP password
- Change the name of an installed plugin
- WP deregister, register and enqueue dequeue
- prefix table and plugins
- Remove action from a plugin class, forced to use global instance
- Where do I add a new table’s name in wpdb?
- Is there a way to lock certain pages from being edited by anyone other then the admin?
- WordPress ajax call for not logged in users, doesn’t work
- Duplicate a Multi-Site Subdomain
- How to get last_updated and newest_blogs in WP 3.0
- WP Mail SMTP: What do the SSL/TLS options mean? [closed]
- Accessing plugin functionality within WP REST API
- why in my wordpress admin panel the membership option is not showing
- How to create popup same as wordpress popup feature
- Add multiple attributes to product from php
- Moving WordPress from host without FTP?
- custom plugin – custom post type -Selectable options for User
- What Plugin Do You Use to Turn WordPress based site to A Blog Aggregator
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- How to make first_name and last_name required fields in user profile?
- Security issues with WP sites
- Add get_option to jquery
- like to keep reading plugin
- Check if email address exists front end with AJAX in a plugin
- Error uploading plugin zip file
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- Network: retrieve a list of latest posts
- How to review WordPress website php version compatibility?
- How to add page using HTML, CSS and JS?
- How to Know if a Plugin can be used with my Theme [closed]
- Translate database content using __($message) function
- Any way to change the actual filename of an image from media manager?
- Can we use a webservice with WordPress?
- WooCommerce get_price returning wrong price when used via ajax
- Add Extra codes by plugin
- CMB2 Repeatable Group & JSON API
- How I can get custom field’s current value?
- Using custom JS plugins with WordPress?
- WordPress on AWS with ELB
- Edit default comments page in WP Admin
- WordPress Popular Posts Table Size Is Getting Big [closed]
- New User Form – Custom Menu Page
- rt media plugin count not working in shortcode [closed]
- Want wp_get_post_terms return in arbitrarily order, how to do?
- How to resize images due to container width automatically server side/without CSS
- Checking instances of scripts in wp_head
- How to access data in wordpress database externally using php
- Add javascript to wp_head with call to plugin options?
- Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)
- Admin Theme customization
- How to redirect a URL with parameters?
- How to create a managed image repository in wordpress
- Anonymous Postings
- Using a function to change favorites listing
- wordpress json api not working
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- Outbound link autometic converted into linkdirect , and not opening
- Run plugins only on certain pages
- wordpress, search form using ajax
- how to add a button next to the wordpress view button?
- How can I prevent my plugin go development trunk [closed]
- (FES EDD) New vendor submission page is blank
- Problem with PHP wordpress, Undefined index: in C:\xampp\htdocs\wordpress\wp-content\plugins\epoch\classes\core.php on line 190 [closed]
- Contributive page where people logged in can write
- Contact Form 7 Get Image Function [closed]
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- `plugins_api()`: why does a commercial plugin changelog link result in a tailing plugins repo check and 500 error? [closed]
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- After plugin activation all users marked as Spam
- Best place for if/else piece of code related to custom plugin?
- How do you assign a UUID to posts/products/comments/reviews?
- how to do login using woocommerce rest api From android
- How to create a code editor for my plugin .?
- Reoccurring 404 Errors on all subpages
- Installing plugins and using complex folder structure with child theme in WordPress
- Manually set a custom admin sub-menu selected?
- password_reset hook is not working