Excel like a finance pro.
← The libraryPractice · 2 questions →
Web function
WEBSERVICE
Returns data from a web service URL as text.
Rarely usedDifficulty 1400 · AdvancedUsage rank #362 of 520
When to use it
Fetches the text at a URL: an API response, an XML feed, a page. Pair with FILTERXML to pull values out of XML.
The shape of it
- Syntax
=WEBSERVICE(url)
Worked examples
Call an API
=WEBSERVICE("https://api.example.com/rates?base=USD") → {"base":"USD","rates":{"EUR":0.92,…}}
The raw response as text.
Parse a feed
=FILTERXML(WEBSERVICE("https://example.com/feed.xml"),"//item/title") → headlines
XML parsed into a list.
Check a response
=LEN(WEBSERVICE(A1)) → 4,812
Size of the response, a quick check that the call worked.
Worth knowing
- Only GET requests; no headers or authentication beyond what fits in the URL.
- Responses are limited to 32,767 characters.
- Power Query is the better tool for anything scheduled or authenticated.
Where it goes wrong
- #VALUE! when the site is unreachable, blocks Excel, or returns more than the limit.
- Not available on Mac or Excel Online.
- Recalculates with the workbook, which can hammer an API.
Related
Learn the moves here — or let Wauvel run them on your numbers.
Meet your AI CFO →One CFO-grade Excel tip a week
A short, practical email for finance operators — functions, shortcuts, and the moves that save an afternoon. Free, unsubscribe anytime.