Skip to content

Instantly share code, notes, and snippets.

@rajinwonderland
Last active January 29, 2019 22:04
Show Gist options
  • Save rajinwonderland/12415ba6333ca1b826a574a93dfea2dd to your computer and use it in GitHub Desktop.
Save rajinwonderland/12415ba6333ca1b826a574a93dfea2dd to your computer and use it in GitHub Desktop.
Top Headlines Request Params – NestJS GraphQL Example
Name Type Description Required/Default
q `string string[]` Keywords or a phrase to search for.
country ae ar at au be bg br ca ch cn co cu cz de eg fr gb gr hk hu id ie il in it jp kr lt lv ma mx my ng nl no nz ph pl pt ro rs ru sa se sg si sk th tr tw ua us ve za The 2-letter ISO 3166-1 code of the country you want to get headlines for. false
category business entertainment general health science sports technology . The category you want to get headlines for. false
sources `string string[]` A comma-seperated string of identifiers for the news sources or blogs you want headlines from. Use the /sources endpoint to locate these programmatically or look at the sources index.
pageSize int The number of results to return per page (request). 20 is the default, 100 is the maximum. false
page int Use this to page through the results if the total results found is greater than the page size. false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment