How are search results sorted, and what do relevance and wgt mean?
Use articlesSortBy to choose the order: date (default, newest first), rel (relevance), sourceImportance and others listed in the documentation. articlesSortByAsc reverses the order.
- relevance shows how well an article matches your query. It is the sum of the contributions of the query conditions - each keyword contributes 1 or more depending on how many times it is mentioned, and similarly for concepts and categories. A higher value means a better match; there is no maximum. When sorting by relevance, articles that match more of your phrases, or mention them more often, come first.
- wgt is an internal value used for sorting and has no further meaning.
- The order of keywords in your query doesn't affect the ranking.
To see the most important stories rather than single articles, use events (see "How do I get top headlines or breaking news?").