Home › Meta Model API lesson 2: Search grounding

Meta Model API lesson 2: Search grounding

Last checked

Search grounding lets the model search the live web and answer with inline citations, with no search index or retrieval pipeline of your own.

Step by step

  1. Use client.responses.create (search grounding only works on the Responses API, not Chat Completions).
  2. Add tools=[{"type": "web_search"}].
  3. The model decides whether a search is needed and runs it on Meta's side.
  4. Read the url_citation annotations: each points at the text it supports and the source URL.
  5. Turn the citations into footnotes or links for your users.

Try it: examples

Good to know

Sources (official pages, read Nov 8, 2026)

Written from Meta's official documentation and product pages; we don't run hands-on tests. Features and limits vary by plan and country.

Report an error on this page