# Speeding Up Ansible NetBox Inventory with Caching and Fewer API Lookups

DevFeed: [Speeding Up Ansible NetBox Inventory with Caching and Fewer API Lookups](<https://devfeed.tech/articles/speed-up-ansible-s-netbox-inventory-30861.md>)

Original publisher: [Read original article](<https://www.packetcoders.io/speed-up-ansible-s-netbox-inventory/>)

Author: Rick Donato

Published: 2026-05-05T09:00:12Z

Content type: tutorial

Language: en

Sources: [Packet Coders - Learn Network Automation](<https://devfeed.tech/sources/packet-coders-learn-network-automation.md>)

Topics: [Ansible](<https://devfeed.tech/topics/ansible.md>), [NetBox](<https://devfeed.tech/topics/netbox.md>), [API](<https://devfeed.tech/topics/api.md>), [Caching](<https://devfeed.tech/topics/caching.md>)

Tags: [ansible](<https://devfeed.tech/tags/ansible.md>), [api](<https://devfeed.tech/tags/api.md>), [caching](<https://devfeed.tech/tags/caching.md>), [netbox](<https://devfeed.tech/tags/netbox.md>), [tips](<https://devfeed.tech/tags/tips.md>)

## AI overview

This tip explains how to improve Ansible NetBox inventory load times by enabling caching and disabling unused extra lookups in the netbox.netbox.nb_inventory plugin. These changes reduce calls to NetBox API endpoints.

## Source excerpt

NetBox/Ansible Tip: The netbox.netbox.nb_inventory plugin pulls data from multiple NetBox API endpoints. Enable caching and disable unused extra lookups to reduce API calls and improve inventory load times. Here's what you need to add to your NetBox inventory plugin file: # Cache inventory data cache: