Frequently Asked
Questions
Everything about the API, the plans and your account, in one place. Still stuck? Write to contact@gnews.io and we will help.
Getting started
https://gnews.io/api/v4/search?q=example&lang=en&apikey=YOUR_API_KEY. You can also build and run requests without writing any code from the API Playground in your dashboard. The full parameter reference is in the documentation. /api/v4/search) runs a full-text query across articles, with boolean operators, date ranges, language and country filters, sorting and pagination. Top Headlines (/api/v4/top-headlines) returns the current top stories for a category such as general, world, nation, business, technology, entertainment, sports, science or health. Both are documented at docs.gnews.io. Plans and free trial
News data and coverage
from and to parameters. On the Free plan, results are limited to the last 30 days; older articles are removed from the response and the API tells you how many were dropped. content field contains the full text of the article. On the Free plan the content is truncated to a short excerpt. You can also request a truncated excerpt on any plan by adding truncate=content to your request. source object (name, homepage URL and, on the Search endpoint, country), so you can filter or group results on your side. nullable parameter, for example nullable=image,description. Use it when you want maximum coverage and can handle missing fields. totalArticles is the number of articles matching your query; the response only contains one page of them. Raise max (up to the limit of your plan: 10 on Free, 25 on Essential, 50 on Business, 100 on Enterprise) and walk through the results with page. Pagination stops at 1,000 articles per query, so narrow the query with filters or a date range to go deeper. Using the API
apikey=YOUR_API_KEY, or send it in the X-Api-Key HTTP header. The header is the better choice on a server, as the key then stays out of logs and referrer headers. A missing or invalid key returns 401 Unauthorized. q parameter accepts up to 200 characters and supports quoted phrases for an exact match, AND, OR, NOT and parentheses for grouping. Two words separated by a space are combined with AND by default, and OR binds more tightly than AND, so use parentheses when you mix them. Remember to URL-encode the query. On the Search endpoint, in=title,description,content controls which fields are searched. 400- the request is malformed; check parameter names, values and query syntax.401- the API key is missing or invalid.403- your daily quota is used up; it resets at 00:00 UTC.429- too many requests per second; throttle your calls or back off and retry.500- an error on our side; retry shortly.503- temporary maintenance; retry in a few minutes.
403 Forbidden and returns no more data until the counter resets, which happens every day at 00:00 UTC. Unused requests do not carry over to the next day. You can follow your usage on your dashboard, and upgrade at any time from Change plan if you need more headroom. 429 Too Many Requests, so spread out bursts or retry with exponential backoff. localhost, so browser requests from a deployed site are blocked. Keep in mind that a key used in front-end code is visible to anyone, so for a public site it is safer to call the API from your own backend and forward the results. 401 Unauthorized until you deploy the new one. Rotate when you are ready to update your projects right away, and copy the new key from the same page. Libraries and integrations
Billing and subscription
- Go to Change plan, from the sidebar or from the Plan & Billing page.
- Pick the plan and the billing frequency you want.
- Review the billing summary shown in the confirmation window, then confirm.
The change takes effect immediately, and your new limits apply to your next request.
- Open Plan & Billing.
- In the Subscription section, click Cancel subscription.
- Tell us in a few words why you are leaving, then confirm.
You keep full access until the end of the period you have already paid for, and your account then returns to the Free plan. Changed your mind before that date? Click Resume subscription on the same page. Cancelling during a free trial means you are never charged.
Account and support
- If you have an active subscription, cancel it first on the Plan & Billing page and wait until the paid period is over.
- Open the Account page and click Delete account.
- Type DELETE in the confirmation field and confirm.
Deletion is permanent: your API key stops working and all data attached to the account is erased.
Students and education
- Create your free account at gnews.io/register.
- Fill in the form at the bottom of this page from your student email address.
- Describe your project or research and the institution you are attending.
We review each request manually and reply by email with the next steps once your plan is ready.
Switching from another news API
totalArticles plus an articles array whose items carry title, description, content, url, image, publishedAt, lang and a source object. Most migrations amount to swapping the base URL, renaming a few query parameters and remapping those fields. The documentation and the official libraries cover the rest. Google News API
Ready to build
with the best news API?
Get your free API key and make your first request in minutes.