Skip to content

Search with API vs Search with Twitter Web #175

Answered by alkihis
hexiro asked this question in Q&A
Discussion options

You must be logged in to vote

Hi :)

Some characters have a special meaning in Twitter Search API, including / and :.
You need to wrap them into quotes:

const results = await client.search('steam"://"rungame"/"730');

If your search is made to match exactly what you've specified, you can directly wrap everything into quotes:

const results = await client.search('"steam://rungame/730"');

A correct URL-encoding is already made by the lib, you don't need to do it by yourself :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hexiro
Comment options

Answer selected by hexiro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants