Repository navigation
Document alternatives to legacy web search - #2995
Merged
Merged
Conversation
Show how to read accounts and hashtags from the mobile flat search response when legacy web search returns HTTP 404. Refs #2994
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
web_search_users()returns typed accounts from the GraphQL response.fbsearch_places()for mobile place search.Related to #2994. Thanks to @johnhenderson for reporting the legacy search failure.
Verification
9bba958099e32b88af63c345abd036b87454286don a saved test session withrequestsand 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.GET i.instagram.com/api/v1/fbsearch/places/returned HTTP 200 andfbsearch_places()produced 30 typedLocationresults.mkdocs build --strictand the search regression suite passed (24 tests and 12 subtests).