> ## Documentation Index
> Fetch the complete documentation index at: https://www.anything.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# New York Times

> Access articles, reviews, and data from The New York Times

The New York Times API provides access to articles, book and movie reviews, bestseller lists, and other content from one of the world's leading news sources.

## Overview

<CardGroup cols={2}>
  <Card title="Create Account" icon="user">
    Sign up for a NYTimes Developer account
  </Card>

  <Card title="Get API Key" icon="key">
    Generate your NYTimes API key
  </Card>

  <Card title="Copy into Anything" icon="plug">
    Add your API key to Anything's secrets
  </Card>
</CardGroup>

## Account Creation

<Steps>
  <Step title="Visit NYTimes Developer Portal">
    Go to [developer.nytimes.com](https://developer.nytimes.com/) and click "Sign In" in the top right corner

    <img src="https://mintcdn.com/create/VE4G9m6I567_bcO7/images/nytimes/homepage.png?fit=max&auto=format&n=VE4G9m6I567_bcO7&q=85&s=7472c4ef4009f599b2125cbfb5bef2f3" style={{ borderRadius: '0.5rem', width: '624px', height: '303px' }} width="2820" height="1336" data-path="images/nytimes/homepage.png" />
  </Step>

  <Step title="Register for an Account">
    * Fill in your email, password, and personal information
    * Accept the terms of service
    * Verify your email address

    <img src="https://mintcdn.com/create/VE4G9m6I567_bcO7/images/nytimes/signup.png?fit=max&auto=format&n=VE4G9m6I567_bcO7&q=85&s=90d3339605bc19ef45e6700d5dee6e2f" style={{ borderRadius: '0.5rem',width: '350px', height: '303px' }} width="908" height="934" data-path="images/nytimes/signup.png" />
  </Step>
</Steps>

## Generate API Key

<Steps>
  <Step title="Create a New App">
    1. Log in to your NYTimes Developer account
    2. Navigate to "Apps" in your dashboard
    3. Click "New App" button

    <img src="https://mintcdn.com/create/VE4G9m6I567_bcO7/images/nytimes/newapp.png?fit=max&auto=format&n=VE4G9m6I567_bcO7&q=85&s=0e34a0a93392c70f9dded8f78f670a69" style={{ borderRadius: '0.5rem' }} width="2820" height="830" data-path="images/nytimes/newapp.png" />
  </Step>

  <Step title="Configure Your App">
    1. Enter a name for your application
    2. Select which APIs you need access to (e.g., Article Search, Top Stories)
    3. Provide a brief description of your application

    <img src="https://mintcdn.com/create/VE4G9m6I567_bcO7/images/nytimes/settings.png?fit=max&auto=format&n=VE4G9m6I567_bcO7&q=85&s=6e2a24a6a2212293a18c44a38a9826ae" style={{ borderRadius: '0.5rem' }} width="1920" height="1428" data-path="images/nytimes/settings.png" />
  </Step>

  <Step title="Get Your API Key">
    1. After creating your app, you'll receive your API key
    2. Copy the secret API key from your app details page

    <img src="https://mintcdn.com/create/VE4G9m6I567_bcO7/images/nytimes/apigen.png?fit=max&auto=format&n=VE4G9m6I567_bcO7&q=85&s=d549a3421e5804ffbc6fa726649d2bdf" style={{ borderRadius: '0.5rem' }} width="1918" height="1358" data-path="images/nytimes/apigen.png" />

    <Warning>
      Keep your API key secure - it grants access to your NYTimes API quota
    </Warning>
  </Step>
</Steps>

## Troubleshooting

<Steps>
  <Step title="Authorize for each API">
    1.If you are getting unauthorized errors, you may need to visit each API to manually authorize.
    2\. Go back to [https://developer.nytimes.com/apis](https://developer.nytimes.com/apis).
    3\. For each API that your app enabled, visit their respective API Pages and click Authorize in the top right corner.

    <img src="https://mintcdn.com/create/VE4G9m6I567_bcO7/images/nytimes/manualauth.png?fit=max&auto=format&n=VE4G9m6I567_bcO7&q=85&s=1e2a6b92886b9916125cee46f4e1b05d" style={{ borderRadius: '0.5rem' }} width="2408" height="1006" data-path="images/nytimes/manualauth.png" />
  </Step>
</Steps>

## Add to Anything project

<Steps>
  <Step title="Add the integration">
    1. In your Anything project, type `/` in the chat
    2. Select "NYTimes" from the menu
  </Step>

  <Step title="Add your API key">
    1. Paste your NYTimes API key into the "NYTIMES\_API\_KEY" field

    <Tip>
      Need a new key? Generate one in your NYTimes Developer dashboard.
    </Tip>
  </Step>

  <Step title="Use it">
    You can now use prompts with the integration to access NYTimes content.

    Some examples:

    * `Get the latest top stories using /NYTimes`
    * `Search for articles about climate change with /NYTimes`
    * `Create a news aggregator using /NYTimes`

    <Warning>
      The API limits how often your app can fetch data. If your app loads the same data often, ask the agent to save it locally so it doesn't re-fetch every time.
    </Warning>

    Example prompt for optimization:

    ```
    When using /NYTimes, save the article data so my app doesn't have to fetch it again
    ```
  </Step>
</Steps>

<Tip>
  Your New York Times integration is now ready! Use the `/NYTimes` command in chat to access articles and content.
</Tip>
