Skip to content

Issues pulling word based queries #10

@KFWins2022

Description

@KFWins2022

Hey!

I am looking to pull all of the data from the Open FDA API specific to grapefruit interactions with drugs. I am trying to pull one down, then expanding it. Here is my code:

fdatest = fda_query("/drug/event.json") %>%
fda_api_key(MYKEY) %>%
fda_filter("drug.interactions", "Grapefruit") %>%
fda_search() %>%
fda_limit(1) %>%
fda_exec()
print(fdatest)

  1. It isn't working. I found the API site that said drug interactions are likely where you find the information that you'll need to filter.
  2. How can I loop it to pull more inquries. Will I use fda_skip and reset it? Would that look like this (Say I pull 100 at a time):

skip <- [1, 100]
fda_skip{skip)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions