Skip to content

Document alternatives to legacy web search - #2995

Merged
subzeroid merged 1 commit into
masterfrom
docs/search-topsearch-2994
Dec 1, 2026
Merged

subzeroid merged 1 commit into
masterfrom
docs/search-topsearch-2994

Conversation

@subzeroid

Copy link
Copy Markdown
Owner

Summary

  • Explain the HTTP 404 seen on the legacy web search routes and show how to read accounts and hashtags from the flat mobile search response.
  • Clarify that web_search_users() returns typed accounts from the GraphQL response.
  • Document the legacy dependency in location-name lookup and the exact-PK fallback. Point readers to fbsearch_places() for mobile place search.

Related to #2994. Thanks to @johnhenderson for reporting the legacy search failure.

Verification

  • Ran the Search guide example from commit 9bba958099e32b88af63c345abd036b87454286d on a saved test session with requests and TLS verification. The account check returned HTTP 200. GET i.instagram.com/api/v1/fbsearch/topsearch_flat/ returned HTTP 200 and 20 entries, which the example split into 15 accounts and five hashtags.
  • On the same commit and session, GET i.instagram.com/api/v1/fbsearch/places/ returned HTTP 200 and fbsearch_places() produced 30 typed Location results.
  • mkdocs build --strict and the search regression suite passed (24 tests and 12 subtests).

Show how to read accounts and hashtags from the mobile flat search
response when legacy web search returns HTTP 404.

Refs #2994
@subzeroid
subzeroid merged commit e108e04 into master Dec 1, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant